16.74/5.48 YES 16.74/5.49 proof of /export/starexec/sandbox/benchmark/theBenchmark.c 16.74/5.49 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 16.74/5.49 16.74/5.49 16.74/5.49 Termination of the given C Problem could be proven: 16.74/5.49 16.74/5.49 (0) C Problem 16.74/5.49 (1) CToLLVMProof [EQUIVALENT, 175 ms] 16.74/5.49 (2) LLVM problem 16.74/5.49 (3) LLVMToTerminationGraphProof [EQUIVALENT, 1586 ms] 16.74/5.49 (4) LLVM Symbolic Execution Graph 16.74/5.49 (5) SymbolicExecutionGraphToSCCProof [SOUND, 0 ms] 16.74/5.49 (6) LLVM Symbolic Execution SCC 16.74/5.49 (7) SCC2IRS [SOUND, 56 ms] 16.74/5.49 (8) IntTRS 16.74/5.49 (9) IRS2T2 [EQUIVALENT, 0 ms] 16.74/5.49 (10) T2IntSys 16.74/5.49 (11) T2 [EQUIVALENT, 1423 ms] 16.74/5.49 (12) YES 16.74/5.49 16.74/5.49 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (0) 16.74/5.49 Obligation: 16.74/5.49 c file /export/starexec/sandbox/benchmark/theBenchmark.c 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (1) CToLLVMProof (EQUIVALENT) 16.74/5.49 Compiled c-file /export/starexec/sandbox/benchmark/theBenchmark.c to LLVM. 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (2) 16.74/5.49 Obligation: 16.74/5.49 LLVM Problem 16.74/5.49 16.74/5.49 Aliases: 16.74/5.49 16.74/5.49 Data layout: 16.74/5.49 16.74/5.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" 16.74/5.49 16.74/5.49 Machine: 16.74/5.49 16.74/5.49 "x86_64-pc-linux-gnu" 16.74/5.49 16.74/5.49 Type definitions: 16.74/5.49 16.74/5.49 Global variables: 16.74/5.49 16.74/5.49 Function declarations and definitions: 16.74/5.49 16.74/5.49 *BasicFunctionTypename: "__VERIFIER_nondet_int" returnParam: i32 parameters: () variableLength: true visibilityType: DEFAULT callingConvention: ccc 16.74/5.49 *BasicFunctionTypename: "main" linkageType: EXTERNALLY_VISIBLE returnParam: i32 parameters: () variableLength: false visibilityType: DEFAULT callingConvention: ccc 16.74/5.49 0: 16.74/5.49 %1 = alloca i32, align 4 16.74/5.49 %x = alloca i32, align 4 16.74/5.49 %y = alloca i32, align 4 16.74/5.49 %z = alloca i32, align 4 16.74/5.49 store 0, %1 16.74/5.49 %2 = call i32 (...)* @__VERIFIER_nondet_int() 16.74/5.49 store %2, %x 16.74/5.49 %3 = call i32 (...)* @__VERIFIER_nondet_int() 16.74/5.49 store %3, %y 16.74/5.49 %4 = call i32 (...)* @__VERIFIER_nondet_int() 16.74/5.49 store %4, %z 16.74/5.49 br %5 16.74/5.49 5: 16.74/5.49 %6 = load %x 16.74/5.49 %7 = icmp sgt %6 0 16.74/5.49 br %7, %8, %17 16.74/5.49 8: 16.74/5.49 %9 = load %x 16.74/5.49 %10 = load %y 16.74/5.49 %11 = add %9 %10 16.74/5.49 store %11, %x 16.74/5.49 %12 = load %y 16.74/5.49 %13 = load %z 16.74/5.49 %14 = add %12 %13 16.74/5.49 store %14, %y 16.74/5.49 %15 = load %z 16.74/5.49 %16 = add %15 -1 16.74/5.49 store %16, %z 16.74/5.49 br %5 16.74/5.49 17: 16.74/5.49 ret 0 16.74/5.49 16.74/5.49 16.74/5.49 Analyze Termination of all function calls matching the pattern: 16.74/5.49 main() 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (3) LLVMToTerminationGraphProof (EQUIVALENT) 16.74/5.49 Constructed symbolic execution graph for LLVM program and proved memory safety. 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (4) 16.74/5.49 Obligation: 16.74/5.49 SE Graph 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (5) SymbolicExecutionGraphToSCCProof (SOUND) 16.74/5.49 Splitted symbolic execution graph to 1 SCC. 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (6) 16.74/5.49 Obligation: 16.74/5.49 SCC 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (7) SCC2IRS (SOUND) 16.74/5.49 Transformed LLVM symbolic execution graph SCC into a rewrite problem. Log: 16.74/5.49 Generated rules. Obtained 17 rulesP rules: 16.74/5.49 f_159(v52, v53, v54, v55, v56, v57, v58, v62, 1, v59, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) -> f_160(v52, v53, v54, v55, v56, v57, v58, v62, 1, v59, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) :|: 0 < v62 16.74/5.49 f_160(v52, v53, v54, v55, v56, v57, v58, v62, 1, v59, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) -> f_162(v52, v53, v54, v55, v56, v57, v58, v62, 1, v59, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) :|: 0 = 0 16.74/5.49 f_162(v52, v53, v54, v55, v56, v57, v58, v62, 1, v59, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) -> f_164(v52, v53, v54, v55, v56, v57, v58, v62, 1, v59, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) :|: TRUE 16.74/5.49 f_164(v52, v53, v54, v55, v56, v57, v58, v62, 1, v59, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) -> f_166(v52, v53, v54, v55, v56, v57, v58, v62, 1, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) :|: 0 = 0 16.74/5.49 f_166(v52, v53, v54, v55, v56, v57, v58, v62, 1, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) -> f_167(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v61, v63, v65, v66, v67, v68, v69, 0, 3, 4) :|: 0 = 0 16.74/5.49 f_167(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v61, v63, v65, v66, v67, v68, v69, 0, 3, 4) -> f_168(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v61, v63, v65, v66, v67, v68, v69, 0, 3, 4) :|: v71 = v62 + v64 16.74/5.49 f_168(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v61, v63, v65, v66, v67, v68, v69, 0, 3, 4) -> f_169(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v61, v63, v65, v66, v67, v68, v69, 0, 3, 4) :|: TRUE 16.74/5.49 f_169(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v61, v63, v65, v66, v67, v68, v69, 0, 3, 4) -> f_170(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v63, v65, v66, v67, v68, v69, 0, 3, 4) :|: 0 = 0 16.74/5.49 f_170(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v63, v65, v66, v67, v68, v69, 0, 3, 4) -> f_171(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v63, v66, v67, v68, v69, 0, 3, 4) :|: 0 = 0 16.74/5.49 f_171(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v63, v66, v67, v68, v69, 0, 3, 4) -> f_172(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v63, v66, v67, v68, v69, 0, 3, 4) :|: v73 = v64 + v65 16.74/5.49 f_172(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v63, v66, v67, v68, v69, 0, 3, 4) -> f_173(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v63, v66, v67, v68, v69, 0, 3, 4) :|: TRUE 16.74/5.49 f_173(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v63, v66, v67, v68, v69, 0, 3, 4) -> f_174(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v66, v67, v68, v69, 0, 3, 4) :|: 0 = 0 16.74/5.49 f_174(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v66, v67, v68, v69, 0, 3, 4) -> f_175(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v75, v66, v67, v68, v69, 0, 3, 4) :|: 1 + v75 = v65 16.74/5.49 f_175(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v75, v66, v67, v68, v69, 0, 3, 4) -> f_176(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v75, v66, v67, v68, v69, 0, 3, 4) :|: TRUE 16.74/5.49 f_176(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v75, v66, v67, v68, v69, 0, 3, 4) -> f_177(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v75, v66, v67, v68, v69, 0, 3, 4) :|: TRUE 16.74/5.49 f_177(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v75, v66, v67, v68, v69, 0, 3, 4) -> f_158(v52, v53, v54, v55, v56, v57, v58, v62, 1, v64, v71, v65, v73, v75, v66, v67, v68, v69, 0, 3, 4) :|: TRUE 16.74/5.49 f_158(v52, v53, v54, v55, v56, v57, v58, v59, 1, v61, v62, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) -> f_159(v52, v53, v54, v55, v56, v57, v58, v62, 1, v59, v61, v63, v64, v65, v66, v67, v68, v69, 0, 3, 4) :|: 0 = 0 16.74/5.49 Combined rules. Obtained 1 rulesP rules: 16.74/5.49 f_159(v52:0, v53:0, v54:0, v55:0, v56:0, v57:0, v58:0, v62:0, 1, v59:0, v61:0, v63:0, v64:0, 1 + v75:0, v66:0, v67:0, v68:0, v69:0, 0, 3, 4) -> f_159(v52:0, v53:0, v54:0, v55:0, v56:0, v57:0, v58:0, v62:0 + v64:0, 1, v62:0, v64:0, 1 + v75:0, v64:0 + (1 + v75:0), v75:0, v66:0, v67:0, v68:0, v69:0, 0, 3, 4) :|: v62:0 > 0 16.74/5.49 Filtered unneeded arguments: 16.74/5.49 f_159(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21) -> f_159(x8, x13, x14) 16.74/5.49 Removed division, modulo operations, cleaned up constraints. Obtained 1 rules.P rules: 16.74/5.49 f_159(v62:0, v64:0, sum~cons_1~v75:0) -> f_159(v62:0 + v64:0, v64:0 + (1 + v75:0), v75:0) :|: v62:0 > 0 && sum~cons_1~v75:0 = 1 + v75:0 16.74/5.49 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (8) 16.74/5.49 Obligation: 16.74/5.49 Rules: 16.74/5.49 f_159(v62:0, v64:0, sum~cons_1~v75:0) -> f_159(v62:0 + v64:0, v64:0 + (1 + v75:0), v75:0) :|: v62:0 > 0 && sum~cons_1~v75:0 = 1 + v75:0 16.74/5.49 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (9) IRS2T2 (EQUIVALENT) 16.74/5.49 Transformed input IRS into an integer transition system.Used the following mapping from defined symbols to location IDs: 16.74/5.49 16.74/5.49 (f_159_3,1) 16.74/5.49 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (10) 16.74/5.49 Obligation: 16.74/5.49 START: 0; 16.74/5.49 16.74/5.49 FROM: 0; 16.74/5.49 TO: 1; 16.74/5.49 16.74/5.49 FROM: 1; 16.74/5.49 oldX0 := x0; 16.74/5.49 oldX1 := x1; 16.74/5.49 oldX2 := x2; 16.74/5.49 oldX3 := oldX2 - 1; 16.74/5.49 assume(oldX0 > 0 && oldX2 = 1 + oldX3); 16.74/5.49 x0 := oldX0 + oldX1; 16.74/5.49 x1 := oldX1 + (1 + oldX3); 16.74/5.49 x2 := oldX2 - 1; 16.74/5.49 TO: 1; 16.74/5.49 16.74/5.49 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (11) T2 (EQUIVALENT) 16.74/5.49 No proof given by T2 16.74/5.49 ---------------------------------------- 16.74/5.49 16.74/5.49 (12) 16.74/5.49 YES 16.93/5.52 EOF