/export/starexec/sandbox2/solver/bin/starexec_run_c /export/starexec/sandbox2/benchmark/theBenchmark.c /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- MAYBE proof of /export/starexec/sandbox2/benchmark/theBenchmark.c # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty Termination of the given C Problem could not be shown: (0) C Problem (1) CToLLVMProof [EQUIVALENT, 173 ms] (2) LLVM problem ---------------------------------------- (0) Obligation: c file /export/starexec/sandbox2/benchmark/theBenchmark.c ---------------------------------------- (1) CToLLVMProof (EQUIVALENT) Compiled c-file /export/starexec/sandbox2/benchmark/theBenchmark.c to LLVM. ---------------------------------------- (2) Obligation: LLVM Problem Aliases: Data layout: "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Machine: "x86_64-pc-linux-gnu" Type definitions: struct.node --> BasicStructureType(elementType: i32, elementType: *struct.node) Global variables: Function declarations and definitions: *BasicFunctionTypename: "malloc" returnParam: *i8 noalias parameters: (i64) variableLength: false visibilityType: DEFAULT callingConvention: ccc *BasicFunctionTypename: "__VERIFIER_nondet_int" returnParam: i32 parameters: () variableLength: true visibilityType: DEFAULT callingConvention: ccc *BasicFunctionTypename: "__VERIFIER_error" returnParam: BasicVoidType parameters: () variableLength: true visibilityType: DEFAULT callingConvention: ccc *BasicFunctionTypename: "free" returnParam: BasicVoidType parameters: (*i8) variableLength: false visibilityType: DEFAULT callingConvention: ccc *BasicFunctionTypename: "exit" linkageType: EXTERNALLY_VISIBLE returnParam: BasicVoidType parameters: (s i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 store %s, %1 br %2 2: br %2 3: ret void *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 %a = alloca *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node), align 8 %t = alloca *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node), align 8 %p = alloca *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node), align 8 %i = alloca i32, align 4 store 0, %1 %2 = call noalias *i8 @malloc(i64 16) nounwind %3 = bitcast *i8 %2 to *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node) store %3, %a %4 = load %a %5 = icmp eq %4 null br %5, %6, %7 6: Unnamed Call-Instruction = call BasicVoidType @exit(i32 1) noreturn nounwind unreachable 7: %8 = load %a store %8, %p store 0, %i br %9 9: %10 = load %i %11 = icmp slt %10 30 br %11, %12, %15 12: %13 = call i32 (...)* @__VERIFIER_nondet_int() %14 = icmp ne %13 0 br %15 15: %16 = phi [0, %9], [%14, %12] br %16, %17, %35 17: %18 = load %i %19 = load %p %20 = getelementptr %19, 0, 0 store %18, %20 %21 = call noalias *i8 @malloc(i64 16) nounwind %22 = bitcast *i8 %21 to *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node) store %22, %t %23 = load %t %24 = icmp eq %23 null br %24, %25, %26 25: Unnamed Call-Instruction = call BasicVoidType @exit(i32 1) noreturn nounwind unreachable 26: %27 = load %t %28 = load %p %29 = getelementptr %28, 0, 1 store %27, %29 %30 = load %p %31 = getelementptr %30, 0, 1 %32 = load %31 store %32, %p %33 = load %i %34 = add %33 1 store %34, %i br %9 35: %36 = load %i %37 = load %p %38 = getelementptr %37, 0, 0 store %36, %38 %39 = load %p %40 = getelementptr %39, 0, 1 store null, %40 %41 = load %a store %41, %p store 0, %i br %42 42: %43 = load %p %44 = icmp ne %43 null br %44, %45, %59 45: %46 = load %p %47 = getelementptr %46, 0, 0 %48 = load %47 %49 = load %i %50 = icmp ne %48 %49 br %50, %51, %53 51: br %52 52: Unnamed Call-Instruction = call BasicVoidType (...)* @__VERIFIER_error() noreturn unreachable 53: %54 = load %p %55 = getelementptr %54, 0, 1 %56 = load %55 store %56, %p %57 = load %i %58 = add %57 1 store %58, %i br %42 59: %60 = load %a store %60, %p br %61 61: %62 = load %p %63 = icmp ne %62 null br %63, %64, %71 64: %65 = load %p %66 = getelementptr %65, 0, 1 %67 = load %66 store %67, %t %68 = load %p %69 = bitcast *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node) %68 to *i8 Unnamed Call-Instruction = call BasicVoidType @free(*i8 %69) nounwind %70 = load %t store %70, %p br %61 71: ret 0 Analyze Termination of all function calls matching the pattern: main()