/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: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty Termination of the given C Problem could not be shown: (0) C Problem (1) CToLLVMProof [EQUIVALENT, 170 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 %i = alloca i32, align 4 %y = 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 store 0, %1 store 0, %i store 0, %y %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 br %9 9: %10 = load %i %11 = icmp slt %10 10 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, %34 17: %18 = load %i %19 = add %18 1 store %19, %i %20 = load %p %21 = getelementptr %20, 0, 0 store 1, %21 %22 = call noalias *i8 @malloc(i64 16) nounwind %23 = bitcast *i8 %22 to *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node) store %23, %t %24 = load %t %25 = icmp eq %24 null br %25, %26, %27 26: Unnamed Call-Instruction = call BasicVoidType @exit(i32 1) noreturn nounwind unreachable 27: %28 = load %t %29 = load %p %30 = getelementptr %29, 0, 1 store %28, %30 %31 = load %p %32 = getelementptr %31, 0, 1 %33 = load %32 store %33, %p br %9 34: br %35 35: %36 = load %y %37 = icmp slt %36 10 br %37, %38, %41 38: %39 = call i32 (...)* @__VERIFIER_nondet_int() %40 = icmp ne %39 0 br %41 41: %42 = phi [0, %35], [%40, %38] br %42, %43, %60 43: %44 = load %y %45 = add %44 1 store %45, %y %46 = load %p %47 = getelementptr %46, 0, 0 store 2, %47 %48 = call noalias *i8 @malloc(i64 16) nounwind %49 = bitcast *i8 %48 to *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node) store %49, %t %50 = load %t %51 = icmp eq %50 null br %51, %52, %53 52: Unnamed Call-Instruction = call BasicVoidType @exit(i32 1) noreturn nounwind unreachable 53: %54 = load %t %55 = load %p %56 = getelementptr %55, 0, 1 store %54, %56 %57 = load %p %58 = getelementptr %57, 0, 1 %59 = load %58 store %59, %p br %35 60: %61 = load %p %62 = getelementptr %61, 0, 0 store 3, %62 %63 = load %p %64 = getelementptr %63, 0, 1 store null, %64 store 0, %i store 0, %y %65 = load %a store %65, %p br %66 66: %67 = load %p %68 = getelementptr %67, 0, 0 %69 = load %68 %70 = icmp eq %69 1 br %70, %71, %77 71: %72 = load %i %73 = add %72 1 store %73, %i %74 = load %p %75 = getelementptr %74, 0, 1 %76 = load %75 store %76, %p br %66 77: br %78 78: %79 = load %p %80 = getelementptr %79, 0, 0 %81 = load %80 %82 = icmp eq %81 2 br %82, %83, %89 83: %84 = load %y %85 = add %84 1 store %85, %y %86 = load %p %87 = getelementptr %86, 0, 1 %88 = load %87 store %88, %p br %78 89: %90 = load %p %91 = getelementptr %90, 0, 0 %92 = load %91 %93 = icmp ne %92 3 br %93, %99, %94 94: %95 = load %i %96 = load %y %97 = add %95 %96 %98 = icmp sgt %97 20 br %98, %99, %101 99: br %100 100: Unnamed Call-Instruction = call BasicVoidType (...)* @__VERIFIER_error() noreturn unreachable 101: %102 = load %a store %102, %p br %103 103: %104 = load %p %105 = getelementptr %104, 0, 1 %106 = load %105 %107 = icmp ne %106 null br %107, %108, %115 108: %109 = load %p %110 = getelementptr %109, 0, 1 %111 = load %110 store %111, %t %112 = load %p %113 = bitcast *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node) %112 to *i8 Unnamed Call-Instruction = call BasicVoidType @free(*i8 %113) nounwind %114 = load %t store %114, %p br %103 115: %116 = load %p %117 = bitcast *BasicTypeName typeName: struct.nodeBasicStructureType(elementType: i32, elementType: *struct.node) %116 to *i8 Unnamed Call-Instruction = call BasicVoidType @free(*i8 %117) nounwind ret 0 Analyze Termination of all function calls matching the pattern: main()