/export/starexec/sandbox2/solver/bin/starexec_run_c /export/starexec/sandbox2/benchmark/theBenchmark.c /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- MAYBE proof of /export/starexec/sandbox2/benchmark/theBenchmark.c # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty Termination of the given C Problem could not be shown: (0) C Problem (1) CToLLVMProof [EQUIVALENT, 177 ms] (2) LLVM problem ---------------------------------------- (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: "fact" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: (n i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 %2 = alloca i32, align 4 store %n, %2 %3 = load %2 %4 = icmp sle %3 0 br %4, %5, %6 5: store 1, %1 br %12 6: %7 = load %2 %8 = load %2 %9 = sub %8 1 %10 = call i32 @fact(i32 %9) %11 = mul %7 %10 store %11, %1 br %12 12: %13 = load %1 ret %13 *BasicFunctionTypename: "binomialCoefficient" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: (n i32, k i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 %2 = alloca i32, align 4 store %n, %1 store %k, %2 %3 = load %1 %4 = call i32 @fact(i32 %3) %5 = load %2 %6 = call i32 @fact(i32 %5) %7 = load %1 %8 = load %2 %9 = sub %7 %8 %10 = call i32 @fact(i32 %9) %11 = mul %6 %10 %12 = sdiv %4 %11 ret %12 *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %z = alloca i32, align 4 %n = alloca i32, align 4 %k = alloca i32, align 4 store 0, %1 %2 = call i32 @__VERIFIER_nondet_int() store %2, %x %3 = load %x %4 = icmp slt %3 0 br %4, %5, %6 5: store 0, %1 br %42 6: %7 = call i32 @__VERIFIER_nondet_int() store %7, %y %8 = load %y %9 = icmp slt %8 0 br %9, %10, %11 10: store 0, %1 br %42 11: %12 = call i32 @__VERIFIER_nondet_int() store %12, %z store 0, %n br %13 13: %14 = load %n %15 = load %x %16 = icmp sle %14 %15 br %16, %17, %42 17: store 0, %k br %18 18: %19 = load %k %20 = load %x %21 = icmp sle %19 %20 br %21, %22, %38 22: %23 = load %k %24 = load %n %25 = icmp sle %23 %24 br %25, %26, %30 26: %27 = load %n %28 = load %k %29 = call i32 @binomialCoefficient(i32 %27, i32 %28) br %34 30: %31 = load %k %32 = load %n %33 = call i32 @binomialCoefficient(i32 %31, i32 %32) br %34 34: br %35 35: %36 = load %k %37 = add %36 1 store %37, %k br %18 38: br %39 39: %40 = load %n %41 = add %40 1 store %41, %n br %13 42: %43 = load %1 ret %43 Analyze Termination of all function calls matching the pattern: main()