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