6.70/2.69 YES 6.70/2.70 proof of /export/starexec/sandbox/benchmark/theBenchmark.c 6.70/2.70 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 6.70/2.70 6.70/2.70 6.70/2.70 Termination of the given C Problem could be proven: 6.70/2.70 6.70/2.70 (0) C Problem 6.70/2.70 (1) CToLLVMProof [EQUIVALENT, 175 ms] 6.70/2.70 (2) LLVM problem 6.70/2.70 (3) LLVMToTerminationGraphProof [EQUIVALENT, 900 ms] 6.70/2.70 (4) LLVM Symbolic Execution Graph 6.70/2.70 (5) SymbolicExecutionGraphToLassoProof [EQUIVALENT, 0 ms] 6.70/2.70 (6) TRUE 6.70/2.70 6.70/2.70 6.70/2.70 ---------------------------------------- 6.70/2.70 6.70/2.70 (0) 6.70/2.70 Obligation: 6.70/2.70 c file /export/starexec/sandbox/benchmark/theBenchmark.c 6.70/2.70 ---------------------------------------- 6.70/2.70 6.70/2.70 (1) CToLLVMProof (EQUIVALENT) 6.70/2.70 Compiled c-file /export/starexec/sandbox/benchmark/theBenchmark.c to LLVM. 6.70/2.70 ---------------------------------------- 6.70/2.70 6.70/2.70 (2) 6.70/2.70 Obligation: 6.70/2.70 LLVM Problem 6.70/2.70 6.70/2.70 Aliases: 6.70/2.70 6.70/2.70 Data layout: 6.70/2.70 6.70/2.70 "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" 6.70/2.70 6.70/2.70 Machine: 6.70/2.70 6.70/2.70 "x86_64-pc-linux-gnu" 6.70/2.70 6.70/2.70 Type definitions: 6.70/2.70 6.70/2.70 Global variables: 6.70/2.70 6.70/2.70 Function declarations and definitions: 6.70/2.70 6.70/2.70 *BasicFunctionTypename: "__VERIFIER_nondet_int" returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 6.70/2.70 *BasicFunctionTypename: "test_fun" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: (x i32, y i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 6.70/2.70 0: 6.70/2.70 %1 = alloca i32, align 4 6.70/2.70 %2 = alloca i32, align 4 6.70/2.70 %3 = alloca i32, align 4 6.70/2.70 %x_ref = alloca *i32, align 8 6.70/2.70 %y_ref = alloca *i32, align 8 6.70/2.70 %c = alloca *i32, align 8 6.70/2.70 store %x, %2 6.70/2.70 store %y, %3 6.70/2.70 %4 = alloca i8, numElementsLit: 4 6.70/2.70 %5 = bitcast *i8 %4 to *i32 6.70/2.70 store %5, %x_ref 6.70/2.70 %6 = alloca i8, numElementsLit: 4 6.70/2.70 %7 = bitcast *i8 %6 to *i32 6.70/2.70 store %7, %y_ref 6.70/2.70 %8 = alloca i8, numElementsLit: 4 6.70/2.70 %9 = bitcast *i8 %8 to *i32 6.70/2.70 store %9, %c 6.70/2.70 %10 = load %2 6.70/2.70 %11 = load %x_ref 6.70/2.70 store %10, %11 6.70/2.70 %12 = load %3 6.70/2.70 %13 = load %y_ref 6.70/2.70 store %12, %13 6.70/2.70 %14 = load %c 6.70/2.70 store 0, %14 6.70/2.70 %15 = load %x_ref 6.70/2.70 %16 = load %15 6.70/2.70 %17 = icmp sle %16 0 6.70/2.70 br %17, %22, %18 6.70/2.70 18: 6.70/2.70 %19 = load %y_ref 6.70/2.70 %20 = load %19 6.70/2.70 %21 = icmp sle %20 0 6.70/2.70 br %21, %22, %28 6.70/2.70 22: 6.70/2.70 %23 = load %x_ref 6.70/2.70 %24 = load %23 6.70/2.70 %25 = load %y_ref 6.70/2.70 %26 = load %25 6.70/2.70 %27 = add %24 %26 6.70/2.70 store %27, %1 6.70/2.70 br %64 6.70/2.70 28: 6.70/2.70 br %29 6.70/2.70 29: 6.70/2.70 %30 = load %x_ref 6.70/2.70 %31 = load %30 6.70/2.70 %32 = icmp eq %31 0 6.70/2.70 %33 = xor %32 1 6.70/2.70 br %33, %34, %61 6.70/2.70 34: 6.70/2.70 %35 = load %x_ref 6.70/2.70 %36 = load %35 6.70/2.70 %37 = load %y_ref 6.70/2.70 %38 = load %37 6.70/2.70 %39 = icmp sgt %36 %38 6.70/2.70 br %39, %40, %44 6.70/2.70 40: 6.70/2.70 %41 = load %y_ref 6.70/2.70 %42 = load %41 6.70/2.70 %43 = load %x_ref 6.70/2.70 store %42, %43 6.70/2.70 br %56 6.70/2.70 44: 6.70/2.70 %45 = load %x_ref 6.70/2.70 %46 = load %45 6.70/2.70 %47 = icmp sle %46 0 6.70/2.70 br %47, %48, %51 6.70/2.70 48: 6.70/2.70 %49 = load %x_ref 6.70/2.70 %50 = load %49 6.70/2.70 store %50, %1 6.70/2.70 br %64 6.70/2.70 51: 6.70/2.70 %52 = load %x_ref 6.70/2.70 %53 = load %52 6.70/2.70 %54 = sub %53 1 6.70/2.70 %55 = load %x_ref 6.70/2.70 store %54, %55 6.70/2.70 br %56 6.70/2.70 56: 6.70/2.70 %57 = load %c 6.70/2.70 %58 = load %57 6.70/2.70 %59 = add %58 1 6.70/2.70 %60 = load %c 6.70/2.70 store %59, %60 6.70/2.70 br %29 6.70/2.70 61: 6.70/2.70 %62 = load %c 6.70/2.70 %63 = load %62 6.70/2.70 store %63, %1 6.70/2.70 br %64 6.70/2.70 64: 6.70/2.70 %65 = load %1 6.70/2.70 ret %65 6.70/2.70 6.70/2.70 *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 6.70/2.70 0: 6.70/2.70 %1 = alloca i32, align 4 6.70/2.70 store 0, %1 6.70/2.70 %2 = call i32 @__VERIFIER_nondet_int() 6.70/2.70 %3 = call i32 @__VERIFIER_nondet_int() 6.70/2.70 %4 = call i32 @test_fun(i32 %2, i32 %3) 6.70/2.70 ret %4 6.70/2.70 6.70/2.70 6.70/2.70 Analyze Termination of all function calls matching the pattern: 6.70/2.70 main() 6.70/2.70 ---------------------------------------- 6.70/2.70 6.70/2.70 (3) LLVMToTerminationGraphProof (EQUIVALENT) 6.70/2.70 Constructed symbolic execution graph for LLVM program and proved memory safety. 6.70/2.70 ---------------------------------------- 6.70/2.70 6.70/2.70 (4) 6.70/2.70 Obligation: 6.70/2.70 SE Graph 6.70/2.70 ---------------------------------------- 6.70/2.70 6.70/2.70 (5) SymbolicExecutionGraphToLassoProof (EQUIVALENT) 6.70/2.70 Converted SEGraph to 0 independent lassos. 6.70/2.70 ---------------------------------------- 6.70/2.70 6.70/2.70 (6) 6.70/2.70 TRUE 6.78/2.74 EOF