4.44/2.01 MAYBE 4.44/2.02 proof of /export/starexec/sandbox/benchmark/theBenchmark.c 4.44/2.02 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 4.44/2.02 4.44/2.02 4.44/2.02 Termination of the given C Problem could not be shown: 4.44/2.02 4.44/2.02 (0) C Problem 4.44/2.02 (1) CToLLVMProof [EQUIVALENT, 174 ms] 4.44/2.02 (2) LLVM problem 4.44/2.02 4.44/2.02 4.44/2.02 ---------------------------------------- 4.44/2.02 4.44/2.02 (0) 4.44/2.02 Obligation: 4.44/2.02 c file /export/starexec/sandbox/benchmark/theBenchmark.c 4.44/2.02 ---------------------------------------- 4.44/2.02 4.44/2.02 (1) CToLLVMProof (EQUIVALENT) 4.44/2.02 Compiled c-file /export/starexec/sandbox/benchmark/theBenchmark.c to LLVM. 4.44/2.02 ---------------------------------------- 4.44/2.02 4.44/2.02 (2) 4.44/2.02 Obligation: 4.44/2.02 LLVM Problem 4.44/2.02 4.44/2.02 Aliases: 4.44/2.02 4.44/2.02 Data layout: 4.44/2.02 4.44/2.02 "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" 4.44/2.02 4.44/2.02 Machine: 4.44/2.02 4.44/2.02 "x86_64-pc-linux-gnu" 4.44/2.02 4.44/2.02 Type definitions: 4.44/2.02 4.44/2.02 Global variables: 4.44/2.02 4.44/2.02 Function declarations and definitions: 4.44/2.02 4.44/2.02 *BasicFunctionTypename: "__VERIFIER_nondet_int" returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 4.44/2.02 *BasicFunctionTypename: "malloc" returnParam: *i8 parameters: (i64) variableLength: false visibilityType: DEFAULT callingConvention: ccc 4.44/2.02 *BasicFunctionTypename: "__VERIFIER_nondet_String" linkageType: EXTERNALLY_VISIBLE returnParam: *i8 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 4.44/2.02 0: 4.44/2.02 %length = alloca i32, align 4 4.44/2.02 %nondetString = alloca *i8, align 8 4.44/2.02 %1 = call i32 @__VERIFIER_nondet_int() 4.44/2.02 store %1, %length 4.44/2.02 %2 = load %length 4.44/2.02 %3 = icmp slt %2 1 4.44/2.02 br %3, %4, %5 4.44/2.02 4: 4.44/2.02 store 1, %length 4.44/2.02 br %5 4.44/2.02 5: 4.44/2.02 %6 = load %length 4.44/2.02 %7 = sext i32 %6 to i64 4.44/2.02 %8 = mul %7 1 4.44/2.02 %9 = call *i8 @malloc(i64 %8) 4.44/2.02 store %9, %nondetString 4.44/2.02 %10 = load %length 4.44/2.02 %11 = sub %10 1 4.44/2.02 %12 = sext i32 %11 to i64 4.44/2.02 %13 = load %nondetString 4.44/2.02 %14 = getelementptr %13, %12 4.44/2.02 store 0, %14 4.44/2.02 %15 = load %nondetString 4.44/2.02 ret %15 4.44/2.02 4.44/2.02 *BasicFunctionTypename: "cstrchr" linkageType: EXTERNALLY_VISIBLE returnParam: *i8 parameters: (s *i8, c i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 4.44/2.02 0: 4.44/2.02 %1 = alloca *i8, align 8 4.44/2.02 %2 = alloca i32, align 4 4.44/2.02 store %s, %1 4.44/2.02 store %c, %2 4.44/2.02 br %3 4.44/2.02 3: 4.44/2.02 %4 = load %1 4.44/2.02 %5 = load %4 4.44/2.02 %6 = sext i8 %5 to i32 4.44/2.02 %7 = icmp ne %6 0 4.44/2.02 br %7, %8, %16 4.44/2.02 8: 4.44/2.02 %9 = load %1 4.44/2.02 %10 = load %9 4.44/2.02 %11 = sext i8 %10 to i32 4.44/2.02 %12 = load %2 4.44/2.02 %13 = trunc i32 %12 to i8 4.44/2.02 %14 = sext i8 %13 to i32 4.44/2.02 %15 = icmp ne %11 %14 4.44/2.02 br %16 4.44/2.02 16: 4.44/2.02 %17 = phi [0, %3], [%15, %8] 4.44/2.02 br %17, %18, %21 4.44/2.02 18: 4.44/2.02 %19 = load %1 4.44/2.02 %20 = getelementptr %19, 1 4.44/2.02 store %20, %1 4.44/2.02 br %3 4.44/2.02 21: 4.44/2.02 %22 = load %1 4.44/2.02 %23 = load %22 4.44/2.02 %24 = sext i8 %23 to i32 4.44/2.02 %25 = load %2 4.44/2.02 %26 = icmp eq %24 %25 4.44/2.02 br %26, %27, %29 4.44/2.02 27: 4.44/2.02 %28 = load %1 4.44/2.02 br %30 4.44/2.02 29: 4.44/2.02 br %30 4.44/2.02 30: 4.44/2.02 %31 = phi [%28, %27], [null, %29] 4.44/2.02 ret %31 4.44/2.02 4.44/2.02 *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 4.44/2.02 0: 4.44/2.02 %1 = alloca i32, align 4 4.44/2.02 store 0, %1 4.44/2.02 %2 = call *i8 @__VERIFIER_nondet_String() 4.44/2.02 %3 = call i32 @__VERIFIER_nondet_int() 4.44/2.02 %4 = call *i8 @cstrchr(*i8 %2, i32 %3) 4.44/2.02 %5 = load %4 4.44/2.02 %6 = sext i8 %5 to i32 4.44/2.02 ret %6 4.44/2.02 4.44/2.02 4.44/2.02 Analyze Termination of all function calls matching the pattern: 4.44/2.02 main() 4.63/2.05 EOF