7.55/2.68 YES 7.55/2.70 proof of /export/starexec/sandbox/benchmark/theBenchmark.c 7.55/2.70 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 7.55/2.70 7.55/2.70 7.55/2.70 Termination of the given C Problem could be proven: 7.55/2.70 7.55/2.70 (0) C Problem 7.55/2.70 (1) CToIRSProof [EQUIVALENT, 0 ms] 7.55/2.70 (2) IntTRS 7.55/2.70 (3) TerminationGraphProcessor [SOUND, 52 ms] 7.55/2.70 (4) IntTRS 7.55/2.70 (5) IntTRSCompressionProof [EQUIVALENT, 29 ms] 7.55/2.70 (6) IntTRS 7.55/2.70 (7) IntTRSUnneededArgumentFilterProof [EQUIVALENT, 0 ms] 7.55/2.70 (8) IntTRS 7.55/2.70 (9) TerminationGraphProcessor [EQUIVALENT, 3 ms] 7.55/2.70 (10) IntTRS 7.55/2.70 (11) IntTRSCompressionProof [EQUIVALENT, 0 ms] 7.55/2.70 (12) IntTRS 7.55/2.70 (13) PolynomialOrderProcessor [EQUIVALENT, 0 ms] 7.55/2.70 (14) YES 7.55/2.70 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (0) 7.55/2.70 Obligation: 7.55/2.70 c file /export/starexec/sandbox/benchmark/theBenchmark.c 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (1) CToIRSProof (EQUIVALENT) 7.55/2.70 Parsed C Integer Program as IRS. 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (2) 7.55/2.70 Obligation: 7.55/2.70 Rules: 7.55/2.70 f1(x, y, z, n) -> f2(x_1, y, z, n) :|: TRUE 7.55/2.70 f2(x1, x2, x3, x4) -> f3(x1, x5, x3, x4) :|: TRUE 7.55/2.70 f3(x6, x7, x8, x9) -> f4(x6, x7, x10, x9) :|: TRUE 7.55/2.70 f4(x11, x12, x13, x14) -> f5(x11, x12, x13, x15) :|: TRUE 7.55/2.70 f6(x16, x17, x18, x19) -> f7(arith, x17, x18, x19) :|: TRUE && arith = 2 * x16 + x17 7.55/2.70 f7(x20, x21, x22, x23) -> f8(x20, x22, x22, x23) :|: TRUE 7.55/2.70 f8(x24, x25, x26, x27) -> f9(x24, x25, x26, x27) :|: TRUE 7.55/2.70 f9(x44, x45, x46, x47) -> f10(x44, x45, x48, x47) :|: TRUE && x48 = x46 + 1 7.55/2.70 f5(x32, x33, x34, x35) -> f6(x32, x33, x34, x35) :|: x32 + x33 >= 0 && x32 <= x35 7.55/2.70 f10(x36, x37, x38, x39) -> f5(x36, x37, x38, x39) :|: TRUE 7.55/2.70 f5(x40, x41, x42, x43) -> f11(x40, x41, x42, x43) :|: x40 + x41 < 0 7.55/2.70 f5(x49, x50, x51, x52) -> f11(x49, x50, x51, x52) :|: x49 > x52 7.55/2.70 Start term: f1(x, y, z, n) 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (3) TerminationGraphProcessor (SOUND) 7.55/2.70 Constructed the termination graph and obtained one non-trivial SCC. 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (4) 7.55/2.70 Obligation: 7.55/2.70 Rules: 7.55/2.70 f5(x32, x33, x34, x35) -> f6(x32, x33, x34, x35) :|: x32 + x33 >= 0 && x32 <= x35 7.55/2.70 f10(x36, x37, x38, x39) -> f5(x36, x37, x38, x39) :|: TRUE 7.55/2.70 f9(x44, x45, x46, x47) -> f10(x44, x45, x48, x47) :|: TRUE && x48 = x46 + 1 7.55/2.70 f8(x24, x25, x26, x27) -> f9(x24, x25, x26, x27) :|: TRUE 7.55/2.70 f7(x20, x21, x22, x23) -> f8(x20, x22, x22, x23) :|: TRUE 7.55/2.70 f6(x16, x17, x18, x19) -> f7(arith, x17, x18, x19) :|: TRUE && arith = 2 * x16 + x17 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (5) IntTRSCompressionProof (EQUIVALENT) 7.55/2.70 Compressed rules. 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (6) 7.55/2.70 Obligation: 7.55/2.70 Rules: 7.55/2.70 f7(x20:0, x21:0, x22:0, x23:0) -> f7(2 * x20:0 + x22:0, x22:0, x22:0 + 1, x23:0) :|: x20:0 + x22:0 >= 0 && x23:0 >= x20:0 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (7) IntTRSUnneededArgumentFilterProof (EQUIVALENT) 7.55/2.70 Some arguments are removed because they cannot influence termination. We removed arguments according to the following replacements: 7.55/2.70 7.55/2.70 f7(x1, x2, x3, x4) -> f7(x1, x3, x4) 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (8) 7.55/2.70 Obligation: 7.55/2.70 Rules: 7.55/2.70 f7(x20:0, x22:0, x23:0) -> f7(2 * x20:0 + x22:0, x22:0 + 1, x23:0) :|: x20:0 + x22:0 >= 0 && x23:0 >= x20:0 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (9) TerminationGraphProcessor (EQUIVALENT) 7.55/2.70 Constructed the termination graph and obtained one non-trivial SCC. 7.55/2.70 7.55/2.70 f7(x20:0, x22:0, x23:0) -> f7(2 * x20:0 + x22:0, x22:0 + 1, x23:0) :|: x20:0 + x22:0 >= 0 && x23:0 >= x20:0 7.55/2.70 has been transformed into 7.55/2.70 f7(x20:0, x22:0, x23:0) -> f7(2 * x20:0 + x22:0, x22:0 + 1, x23:0) :|: x23:0 = x8 && (x22:0 = x7 + 1 && (x20:0 = 2 * x6 + x7 && (x20:0 + x22:0 >= 0 && x23:0 >= x20:0))) && x6 + x7 >= 0 && x8 >= x6. 7.55/2.70 7.55/2.70 7.55/2.70 f7(x20:0, x22:0, x23:0) -> f7(2 * x20:0 + x22:0, x22:0 + 1, x23:0) :|: x23:0 = x8 && (x22:0 = x7 + 1 && (x20:0 = 2 * x6 + x7 && (x20:0 + x22:0 >= 0 && x23:0 >= x20:0))) && x6 + x7 >= 0 && x8 >= x6 and 7.55/2.70 f7(x20:0, x22:0, x23:0) -> f7(2 * x20:0 + x22:0, x22:0 + 1, x23:0) :|: x23:0 = x8 && (x22:0 = x7 + 1 && (x20:0 = 2 * x6 + x7 && (x20:0 + x22:0 >= 0 && x23:0 >= x20:0))) && x6 + x7 >= 0 && x8 >= x6 7.55/2.70 have been merged into the new rule 7.55/2.70 f7(x21, x22, x23) -> f7(2 * (2 * x21 + x22) + (x22 + 1), x22 + 1 + 1, x23) :|: x23 = x24 && (x22 = x25 + 1 && (x21 = 2 * x26 + x25 && (x21 + x22 >= 0 && x23 >= x21))) && x26 + x25 >= 0 && x24 >= x26 && (x23 = x27 && (x22 + 1 = x28 + 1 && (2 * x21 + x22 = 2 * x29 + x28 && (2 * x21 + x22 + (x22 + 1) >= 0 && x23 >= 2 * x21 + x22))) && x29 + x28 >= 0 && x27 >= x29) 7.55/2.70 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (10) 7.55/2.70 Obligation: 7.55/2.70 Rules: 7.55/2.70 f7(x30, x31, x32) -> f7(4 * x30 + 3 * x31 + 1, x31 + 2, x32) :|: TRUE && x32 + -1 * x33 = 0 && x31 + -1 * x34 = 1 && x30 + -2 * x35 + -1 * x34 = 0 && x30 + x31 >= 0 && x32 + -1 * x30 >= 0 && x35 + x34 >= 0 && x33 + -1 * x35 >= 0 && x32 + -1 * x36 = 0 && x31 + -1 * x37 = 0 && 2 * x30 + x31 + -2 * x38 + -1 * x37 = 0 && x32 + -2 * x30 + -1 * x31 >= 0 && x38 + x37 >= 0 && x36 + -1 * x38 >= 0 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (11) IntTRSCompressionProof (EQUIVALENT) 7.55/2.70 Compressed rules. 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (12) 7.55/2.70 Obligation: 7.55/2.70 Rules: 7.55/2.70 f7(x30:0, x31:0, x32:0) -> f7(4 * x30:0 + 3 * x31:0 + 1, x31:0 + 2, x32:0) :|: x38:0 + x37:0 >= 0 && x36:0 + -1 * x38:0 >= 0 && x32:0 + -2 * x30:0 + -1 * x31:0 >= 0 && 2 * x30:0 + x31:0 + -2 * x38:0 + -1 * x37:0 = 0 && x31:0 + -1 * x37:0 = 0 && x32:0 + -1 * x36:0 = 0 && x33:0 + -1 * x35:0 >= 0 && x35:0 + x34:0 >= 0 && x32:0 + -1 * x30:0 >= 0 && x30:0 + x31:0 >= 0 && x30:0 + -2 * x35:0 + -1 * x34:0 = 0 && x32:0 + -1 * x33:0 = 0 && x31:0 + -1 * x34:0 = 1 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (13) PolynomialOrderProcessor (EQUIVALENT) 7.55/2.70 Found the following polynomial interpretation: 7.55/2.70 [f7(x, x1, x2)] = -x + x2 7.55/2.70 7.55/2.70 The following rules are decreasing: 7.55/2.70 f7(x30:0, x31:0, x32:0) -> f7(4 * x30:0 + 3 * x31:0 + 1, x31:0 + 2, x32:0) :|: x38:0 + x37:0 >= 0 && x36:0 + -1 * x38:0 >= 0 && x32:0 + -2 * x30:0 + -1 * x31:0 >= 0 && 2 * x30:0 + x31:0 + -2 * x38:0 + -1 * x37:0 = 0 && x31:0 + -1 * x37:0 = 0 && x32:0 + -1 * x36:0 = 0 && x33:0 + -1 * x35:0 >= 0 && x35:0 + x34:0 >= 0 && x32:0 + -1 * x30:0 >= 0 && x30:0 + x31:0 >= 0 && x30:0 + -2 * x35:0 + -1 * x34:0 = 0 && x32:0 + -1 * x33:0 = 0 && x31:0 + -1 * x34:0 = 1 7.55/2.70 The following rules are bounded: 7.55/2.70 f7(x30:0, x31:0, x32:0) -> f7(4 * x30:0 + 3 * x31:0 + 1, x31:0 + 2, x32:0) :|: x38:0 + x37:0 >= 0 && x36:0 + -1 * x38:0 >= 0 && x32:0 + -2 * x30:0 + -1 * x31:0 >= 0 && 2 * x30:0 + x31:0 + -2 * x38:0 + -1 * x37:0 = 0 && x31:0 + -1 * x37:0 = 0 && x32:0 + -1 * x36:0 = 0 && x33:0 + -1 * x35:0 >= 0 && x35:0 + x34:0 >= 0 && x32:0 + -1 * x30:0 >= 0 && x30:0 + x31:0 >= 0 && x30:0 + -2 * x35:0 + -1 * x34:0 = 0 && x32:0 + -1 * x33:0 = 0 && x31:0 + -1 * x34:0 = 1 7.55/2.70 7.55/2.70 ---------------------------------------- 7.55/2.70 7.55/2.70 (14) 7.55/2.70 YES 7.93/2.74 EOF