/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, 176 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: "cstrncat" linkageType: EXTERNALLY_VISIBLE returnParam: *i8 parameters: (s1 *i8, s2 *i8, n i32) variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca *i8, align 8 %2 = alloca *i8, align 8 %3 = alloca i32, align 4 %s = alloca *i8, align 8 store %s1, %1 store %s2, %2 store %n, %3 %4 = load %1 store %4, %s br %5 5: %6 = load %s %7 = load %6 %8 = sext i8 %7 to i32 %9 = icmp ne %8 0 br %9, %10, %13 10: %11 = load %s %12 = getelementptr %11, 1 store %12, %s br %5 13: br %14 14: %15 = load %3 %16 = icmp ne %15 0 br %16, %17, %24 17: %18 = load %2 %19 = getelementptr %18, 1 store %19, %2 %20 = load %18 %21 = load %s store %20, %21 %22 = sext i8 %20 to i32 %23 = icmp ne %22 0 br %24 24: %25 = phi [0, %14], [%23, %17] br %25, %26, %31 26: %27 = load %3 %28 = add %27 -1 store %28, %3 %29 = load %s %30 = getelementptr %29, 1 store %30, %s br %14 31: %32 = load %s %33 = load %32 %34 = sext i8 %33 to i32 %35 = icmp ne %34 0 br %35, %36, %38 36: %37 = load %s store 0, %37 br %38 38: %39 = load %1 ret %39 *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 %length1 = alloca i32, align 4 %length2 = alloca i32, align 4 %n = alloca i32, align 4 %nondetString1 = alloca *i8, align 8 %nondetString2 = alloca *i8, align 8 store 0, %1 %2 = call i32 @__VERIFIER_nondet_int() store %2, %length1 %3 = call i32 @__VERIFIER_nondet_int() store %3, %length2 %4 = call i32 @__VERIFIER_nondet_int() store %4, %n %5 = load %length1 %6 = icmp slt %5 1 br %6, %7, %8 7: store 1, %length1 br %8 8: %9 = load %length2 %10 = icmp slt %9 1 br %10, %11, %12 11: store 1, %length2 br %12 12: %13 = load %n %14 = icmp slt %13 1 br %14, %15, %16 15: store 1, %n br %16 16: %17 = load %length1 %18 = load %n %19 = icmp slt %17 %18 br %19, %26, %20 20: %21 = load %length1 %22 = load %n %23 = sub %21 %22 %24 = load %length2 %25 = icmp slt %23 %24 br %25, %26, %27 26: store 0, %1 br %52 27: %28 = load %length1 %29 = sext i32 %28 to i64 %30 = mul %29 1 %31 = alloca i8, numElementsLit: %30 store %31, %nondetString1 %32 = load %length2 %33 = sext i32 %32 to i64 %34 = mul %33 1 %35 = alloca i8, numElementsLit: %34 store %35, %nondetString2 %36 = load %length1 %37 = load %n %38 = sub %36 %37 %39 = sub %38 1 %40 = sext i32 %39 to i64 %41 = load %nondetString1 %42 = getelementptr %41, %40 store 0, %42 %43 = load %length2 %44 = sub %43 1 %45 = sext i32 %44 to i64 %46 = load %nondetString2 %47 = getelementptr %46, %45 store 0, %47 %48 = load %nondetString1 %49 = load %nondetString2 %50 = load %n %51 = call *i8 @cstrncat(*i8 %48, *i8 %49, i32 %50) store 0, %1 br %52 52: %53 = load %1 ret %53 Analyze Termination of all function calls matching the pattern: main()