/export/starexec/sandbox/solver/bin/starexec_run_c /export/starexec/sandbox/benchmark/theBenchmark.c /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- MAYBE proof of /export/starexec/sandbox/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, 181 ms] (2) LLVM problem ---------------------------------------- (0) Obligation: c file /export/starexec/sandbox/benchmark/theBenchmark.c ---------------------------------------- (1) CToLLVMProof (EQUIVALENT) Compiled c-file /export/starexec/sandbox/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: "cstrncpy" 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 %dst = alloca *i8, align 8 %src = alloca *i8, align 8 %us = alloca *i8, align 8 %n2 = alloca i32, align 4 store %s1, %1 store %s2, %2 store %n, %3 %4 = load %1 store %4, %dst %5 = load %2 store %5, %src br %6 6: %7 = load %3 %8 = icmp sgt %7 0 br %8, %9, %31 9: %10 = load %3 %11 = add %10 -1 store %11, %3 %12 = load %src %13 = getelementptr %12, 1 store %13, %src %14 = load %12 %15 = load %dst %16 = getelementptr %15, 1 store %16, %dst store %14, %15 %17 = sext i8 %14 to i32 %18 = icmp eq %17 0 br %18, %19, %30 19: %20 = load %dst store %20, %us %21 = load %3 store %21, %n2 br %22 22: %23 = load %n2 %24 = add %23 -1 store %24, %n2 %25 = icmp ne %23 0 br %25, %26, %29 26: %27 = load %us %28 = getelementptr %27, 1 store %28, %us store 0, %27 br %22 29: br %31 30: br %6 31: %32 = load %1 ret %32 *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca i32, align 4 %length = alloca i32, align 4 %n = alloca i32, align 4 %nondetArea = alloca *i8, align 8 %nondetString = alloca *i8, align 8 store 0, %1 %2 = call i32 @__VERIFIER_nondet_int() store %2, %length %3 = call i32 @__VERIFIER_nondet_int() store %3, %n %4 = load %length %5 = icmp slt %4 1 br %5, %6, %7 6: store 1, %length br %7 7: %8 = load %n %9 = icmp slt %8 1 br %9, %10, %11 10: store 1, %n br %11 11: %12 = load %n %13 = sext i32 %12 to i64 %14 = mul %13 1 %15 = alloca i8, numElementsLit: %14 store %15, %nondetArea %16 = load %length %17 = sext i32 %16 to i64 %18 = mul %17 1 %19 = alloca i8, numElementsLit: %18 store %19, %nondetString %20 = load %length %21 = sub %20 1 %22 = sext i32 %21 to i64 %23 = load %nondetString %24 = getelementptr %23, %22 store 0, %24 %25 = load %nondetArea %26 = load %nondetString %27 = load %n %28 = call *i8 @cstrncpy(*i8 %25, *i8 %26, i32 %27) ret 0 Analyze Termination of all function calls matching the pattern: main()