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