5.16/2.30 MAYBE 5.16/2.31 proof of /export/starexec/sandbox2/benchmark/theBenchmark.c 5.16/2.31 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 5.16/2.31 5.16/2.31 5.16/2.31 Termination of the given C Problem could not be shown: 5.16/2.31 5.16/2.31 (0) C Problem 5.16/2.31 (1) CToLLVMProof [EQUIVALENT, 171 ms] 5.16/2.31 (2) LLVM problem 5.16/2.31 5.16/2.31 5.16/2.31 ---------------------------------------- 5.16/2.31 5.16/2.31 (0) 5.16/2.31 Obligation: 5.16/2.31 c file /export/starexec/sandbox2/benchmark/theBenchmark.c 5.16/2.31 ---------------------------------------- 5.16/2.31 5.16/2.31 (1) CToLLVMProof (EQUIVALENT) 5.16/2.31 Compiled c-file /export/starexec/sandbox2/benchmark/theBenchmark.c to LLVM. 5.16/2.31 ---------------------------------------- 5.16/2.31 5.16/2.31 (2) 5.16/2.31 Obligation: 5.16/2.31 LLVM Problem 5.16/2.31 5.16/2.31 Aliases: 5.16/2.31 5.16/2.31 Data layout: 5.16/2.31 5.16/2.31 "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.16/2.31 5.16/2.31 Machine: 5.16/2.31 5.16/2.31 "x86_64-pc-linux-gnu" 5.16/2.31 5.16/2.31 Type definitions: 5.16/2.31 5.16/2.31 Global variables: 5.16/2.31 5.16/2.31 Function declarations and definitions: 5.16/2.31 5.16/2.31 *BasicFunctionTypename: "__VERIFIER_nondet_int" returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 5.16/2.31 *BasicFunctionTypename: "cstrncat" linkageType: EXTERNALLY_VISIBLE returnParam: *i8 parameters: (s1 *i8, s2 *i8, n i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 5.16/2.31 0: 5.16/2.31 %1 = alloca *i8, align 8 5.16/2.31 %2 = alloca *i8, align 8 5.16/2.31 %3 = alloca i32, align 4 5.16/2.31 %s = alloca *i8, align 8 5.16/2.31 store %s1, %1 5.16/2.31 store %s2, %2 5.16/2.31 store %n, %3 5.16/2.31 %4 = load %1 5.16/2.31 store %4, %s 5.16/2.31 br %5 5.16/2.31 5: 5.16/2.31 %6 = load %s 5.16/2.31 %7 = load %6 5.16/2.31 %8 = sext i8 %7 to i32 5.16/2.31 %9 = icmp ne %8 0 5.16/2.31 br %9, %10, %13 5.16/2.31 10: 5.16/2.31 %11 = load %s 5.16/2.31 %12 = getelementptr %11, 1 5.16/2.31 store %12, %s 5.16/2.31 br %5 5.16/2.31 13: 5.16/2.31 br %14 5.16/2.31 14: 5.16/2.31 %15 = load %3 5.16/2.31 %16 = icmp ne %15 0 5.16/2.31 br %16, %17, %24 5.16/2.31 17: 5.16/2.31 %18 = load %2 5.16/2.31 %19 = getelementptr %18, 1 5.16/2.31 store %19, %2 5.16/2.31 %20 = load %18 5.16/2.31 %21 = load %s 5.16/2.31 store %20, %21 5.16/2.31 %22 = sext i8 %20 to i32 5.16/2.31 %23 = icmp ne %22 0 5.16/2.31 br %24 5.16/2.31 24: 5.16/2.31 %25 = phi [0, %14], [%23, %17] 5.16/2.31 br %25, %26, %31 5.16/2.31 26: 5.16/2.31 %27 = load %3 5.16/2.31 %28 = add %27 -1 5.16/2.31 store %28, %3 5.16/2.31 %29 = load %s 5.16/2.31 %30 = getelementptr %29, 1 5.16/2.31 store %30, %s 5.16/2.31 br %14 5.16/2.31 31: 5.16/2.31 %32 = load %s 5.16/2.31 %33 = load %32 5.16/2.31 %34 = sext i8 %33 to i32 5.16/2.31 %35 = icmp ne %34 0 5.16/2.31 br %35, %36, %38 5.16/2.31 36: 5.16/2.31 %37 = load %s 5.16/2.31 store 0, %37 5.16/2.31 br %38 5.16/2.31 38: 5.16/2.31 %39 = load %1 5.16/2.31 ret %39 5.16/2.31 5.16/2.31 *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 5.16/2.31 0: 5.16/2.31 %1 = alloca i32, align 4 5.16/2.31 %s1 = alloca *i8, align 8 5.16/2.31 %s2 = alloca *i8, align 8 5.16/2.31 %n = alloca i32, align 4 5.16/2.31 store 0, %1 5.16/2.31 %2 = call i32 @__VERIFIER_nondet_int() 5.16/2.31 store %2, %n 5.16/2.31 %3 = load %s1 5.16/2.31 %4 = load %s2 5.16/2.31 %5 = load %n 5.16/2.31 %6 = call *i8 @cstrncat(*i8 %3, *i8 %4, i32 %5) 5.16/2.31 ret 0 5.16/2.31 5.16/2.31 5.16/2.31 Analyze Termination of all function calls matching the pattern: 5.16/2.31 main() 5.27/2.40 EOF