/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, 179 ms] (2) LLVM problem (3) LLVMToTerminationGraphProof [EQUIVALENT, 890 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: "test_fun" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: (x i32, y i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 %2 = alloca i32, align 4 %3 = alloca i32, align 4 %x_ref = alloca *i32, align 8 %y_ref = alloca *i32, align 8 %c = alloca *i32, align 8 store %x, %2 store %y, %3 %4 = alloca i8, numElementsLit: 4 %5 = bitcast *i8 %4 to *i32 store %5, %x_ref %6 = alloca i8, numElementsLit: 4 %7 = bitcast *i8 %6 to *i32 store %7, %y_ref %8 = alloca i8, numElementsLit: 4 %9 = bitcast *i8 %8 to *i32 store %9, %c %10 = load %2 %11 = load %x_ref store %10, %11 %12 = load %3 %13 = load %y_ref store %12, %13 %14 = load %c store 0, %14 %15 = load %x_ref %16 = load %15 %17 = icmp sle %16 0 br %17, %22, %18 18: %19 = load %y_ref %20 = load %19 %21 = icmp sle %20 0 br %21, %22, %28 22: %23 = load %x_ref %24 = load %23 %25 = load %y_ref %26 = load %25 %27 = add %24 %26 store %27, %1 br %64 28: br %29 29: %30 = load %x_ref %31 = load %30 %32 = icmp eq %31 0 %33 = xor %32 1 br %33, %34, %61 34: %35 = load %x_ref %36 = load %35 %37 = load %y_ref %38 = load %37 %39 = icmp sgt %36 %38 br %39, %40, %44 40: %41 = load %y_ref %42 = load %41 %43 = load %x_ref store %42, %43 br %56 44: %45 = load %x_ref %46 = load %45 %47 = icmp sle %46 0 br %47, %48, %51 48: %49 = load %x_ref %50 = load %49 store %50, %1 br %64 51: %52 = load %x_ref %53 = load %52 %54 = sub %53 1 %55 = load %x_ref store %54, %55 br %56 56: %57 = load %c %58 = load %57 %59 = add %58 1 %60 = load %c store %59, %60 br %29 61: %62 = load %c %63 = load %62 store %63, %1 br %64 64: %65 = load %1 ret %65 *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 = call i32 @__VERIFIER_nondet_int() %4 = call i32 @test_fun(i32 %2, i32 %3) ret %4 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