/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: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty Termination of the given C Problem could not be shown: (0) C Problem (1) CToLLVMProof [EQUIVALENT, 175 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: "cstrncat" linkageType: EXTERNALLY_VISIBLE returnParam: *i8 parameters: (dst *i8, src *i8, n i64) variableLength: false visibilityType: DEFAULT callingConvention: ccc 0: %1 = alloca *i8, align 8 %2 = alloca *i8, align 8 %3 = alloca i64, align 8 %d = alloca *i8, align 8 %s = alloca *i8, align 8 store %dst, %1 store %src, %2 store %n, %3 %4 = load %3 %5 = icmp ne %4 0 br %5, %6, %35 6: %7 = load %1 store %7, %d %8 = load %2 store %8, %s br %9 9: %10 = load %d %11 = load %10 %12 = sext i8 %11 to i32 %13 = icmp ne %12 0 br %13, %14, %17 14: %15 = load %d %16 = getelementptr %15, 1 store %16, %d br %9 17: br %18 18: %19 = load %s %20 = getelementptr %19, 1 store %20, %s %21 = load %19 %22 = load %d store %21, %22 %23 = sext i8 %21 to i32 %24 = icmp eq %23 0 br %24, %25, %26 25: br %33 26: %27 = load %d %28 = getelementptr %27, 1 store %28, %d br %29 29: %30 = load %3 %31 = add %30 -1 store %31, %3 %32 = icmp ne %31 0 br %32, %18, %33 33: %34 = load %d store 0, %34 br %35 35: %36 = load %1 ret %36 *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 %53 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 = sext i32 %50 to i64 %52 = call *i8 @cstrncat(*i8 %48, *i8 %49, i64 %51) store 0, %1 br %53 53: %54 = load %1 ret %54 Analyze Termination of all function calls matching the pattern: main()