/export/starexec/sandbox2/solver/bin/starexec_run_c /export/starexec/sandbox2/benchmark/theBenchmark.c /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox2/benchmark/theBenchmark.c # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty Termination of the given C Problem could be proven: (0) C Problem (1) CToLLVMProof [EQUIVALENT, 175 ms] (2) LLVM problem (3) LLVMToTerminationGraphProof [EQUIVALENT, 1986 ms] (4) LLVM Symbolic Execution Graph (5) SymbolicExecutionGraphToLassoProof [EQUIVALENT, 0 ms] (6) TRUE ---------------------------------------- (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: Global variables: Function declarations and definitions: *BasicFunctionTypename: "__VERIFIER_nondet_int" returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc *BasicFunctionTypename: "f" linkageType: EXTERNALLY_VISIBLE returnParam: BasicVoidType parameters: (d i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 %d_ref = alloca *i32, align 8 %x = alloca *i32, align 8 %y = alloca *i32, align 8 %k = alloca *i32, align 8 %z = alloca *i32, align 8 store %d, %1 %2 = alloca i8, numElementsLit: 4 %3 = bitcast *i8 %2 to *i32 store %3, %d_ref %4 = alloca i8, numElementsLit: 4 %5 = bitcast *i8 %4 to *i32 store %5, %x %6 = alloca i8, numElementsLit: 4 %7 = bitcast *i8 %6 to *i32 store %7, %y %8 = alloca i8, numElementsLit: 4 %9 = bitcast *i8 %8 to *i32 store %9, %k %10 = alloca i8, numElementsLit: 4 %11 = bitcast *i8 %10 to *i32 store %11, %z %12 = load %1 %13 = load %d_ref store %12, %13 %14 = load %x store 1, %14 %15 = load %y store 1, %15 %16 = load %k store 1, %16 %17 = load %z store 1, %17 %18 = load %k %19 = load %18 %20 = icmp sgt %19 1073741823 br %20, %21, %22 21: br %72 22: br %23 23: br %24 24: %25 = load %z %26 = load %25 %27 = load %k %28 = load %27 %29 = icmp slt %26 %28 br %29, %30, %35 30: %31 = load %z %32 = load %31 %33 = mul 2 %32 %34 = load %z store %33, %34 br %24 35: br %36 36: br %37 37: %38 = load %x %39 = load %38 %40 = icmp sgt %39 0 br %40, %41, %45 41: %42 = load %y %43 = load %42 %44 = icmp sgt %43 0 br %45 45: %46 = phi [0, %37], [%44, %41] br %46, %47, %72 47: %48 = call i32 @__VERIFIER_nondet_int() %49 = icmp ne %48 0 br %49, %50, %64 50: br %51 51: %52 = load %x %53 = load %52 %54 = load %d_ref %55 = load %54 %56 = sub %53 %55 %57 = load %x store %56, %57 %58 = call i32 @__VERIFIER_nondet_int() %59 = load %y store %58, %59 %60 = load %z %61 = load %60 %62 = sub %61 1 %63 = load %z store %62, %63 br %71 64: %65 = load %y %66 = load %65 %67 = load %d_ref %68 = load %67 %69 = sub %66 %68 %70 = load %y store %69, %70 br %71 71: br %37 72: ret void *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 store 0, %1 %2 = call i32 @__VERIFIER_nondet_int() %3 = icmp ne %2 0 br %3, %4, %5 4: Unnamed Call-Instruction = call BasicVoidType @f(i32 1) br %6 5: Unnamed Call-Instruction = call BasicVoidType @f(i32 2) br %6 6: %7 = load %1 ret %7 Analyze Termination of all function calls matching the pattern: main() ---------------------------------------- (3) LLVMToTerminationGraphProof (EQUIVALENT) Constructed symbolic execution graph for LLVM program and proved memory safety. ---------------------------------------- (4) Obligation: SE Graph ---------------------------------------- (5) SymbolicExecutionGraphToLassoProof (EQUIVALENT) Converted SEGraph to 0 independent lassos. ---------------------------------------- (6) TRUE