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