YES proof of /export/starexec/sandbox2/benchmark/theBenchmark.c # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty Termination of the given C Problem could be proven: (0) C Problem (1) CToIRSProof [EQUIVALENT, 0 ms] (2) IntTRS (3) TerminationGraphProcessor [SOUND, 62 ms] (4) IntTRS (5) IntTRSCompressionProof [EQUIVALENT, 9 ms] (6) IntTRS (7) IntTRSUnneededArgumentFilterProof [EQUIVALENT, 0 ms] (8) IntTRS (9) PolynomialOrderProcessor [EQUIVALENT, 2 ms] (10) IntTRS (11) TerminationGraphProcessor [EQUIVALENT, 3 ms] (12) YES ---------------------------------------- (0) Obligation: c file /export/starexec/sandbox2/benchmark/theBenchmark.c ---------------------------------------- (1) CToIRSProof (EQUIVALENT) Parsed C Integer Program as IRS. ---------------------------------------- (2) Obligation: Rules: f1(c, x, y) -> f2(c, x_1, y) :|: TRUE f2(x1, x2, x3) -> f3(x1, x2, x4) :|: TRUE f3(x5, x6, x7) -> f4(0, x6, x7) :|: TRUE f6(x8, x9, x10) -> f9(x8, arith, x10) :|: TRUE && arith = x9 - 1 f10(x50, x51, x52) -> f13(x50, x51, x53) :|: TRUE && x53 = x52 - 1 f7(x14, x15, x16) -> f10(x14, x15, x16) :|: x16 > 0 f7(x17, x18, x19) -> f11(x17, x18, x19) :|: x19 <= 0 f13(x20, x21, x22) -> f12(x20, x21, x22) :|: TRUE f11(x23, x24, x25) -> f12(x23, x24, x25) :|: TRUE f5(x26, x27, x28) -> f6(x26, x27, x28) :|: x27 > 0 f5(x29, x30, x31) -> f7(x29, x30, x31) :|: x30 <= 0 f9(x32, x33, x34) -> f8(x32, x33, x34) :|: TRUE f12(x35, x36, x37) -> f8(x35, x36, x37) :|: TRUE f8(x54, x55, x56) -> f14(x57, x55, x56) :|: TRUE && x57 = x54 + 1 f4(x41, x42, x43) -> f5(x41, x42, x43) :|: x42 + x43 > 0 f14(x44, x45, x46) -> f4(x44, x45, x46) :|: TRUE f4(x47, x48, x49) -> f15(x47, x48, x49) :|: x48 + x49 <= 0 Start term: f1(c, x, y) ---------------------------------------- (3) TerminationGraphProcessor (SOUND) Constructed the termination graph and obtained one non-trivial SCC. ---------------------------------------- (4) Obligation: Rules: f4(x41, x42, x43) -> f5(x41, x42, x43) :|: x42 + x43 > 0 f14(x44, x45, x46) -> f4(x44, x45, x46) :|: TRUE f8(x54, x55, x56) -> f14(x57, x55, x56) :|: TRUE && x57 = x54 + 1 f9(x32, x33, x34) -> f8(x32, x33, x34) :|: TRUE f6(x8, x9, x10) -> f9(x8, arith, x10) :|: TRUE && arith = x9 - 1 f5(x26, x27, x28) -> f6(x26, x27, x28) :|: x27 > 0 f12(x35, x36, x37) -> f8(x35, x36, x37) :|: TRUE f13(x20, x21, x22) -> f12(x20, x21, x22) :|: TRUE f10(x50, x51, x52) -> f13(x50, x51, x53) :|: TRUE && x53 = x52 - 1 f7(x14, x15, x16) -> f10(x14, x15, x16) :|: x16 > 0 f5(x29, x30, x31) -> f7(x29, x30, x31) :|: x30 <= 0 f11(x23, x24, x25) -> f12(x23, x24, x25) :|: TRUE f7(x17, x18, x19) -> f11(x17, x18, x19) :|: x19 <= 0 ---------------------------------------- (5) IntTRSCompressionProof (EQUIVALENT) Compressed rules. ---------------------------------------- (6) Obligation: Rules: f8(x54:0, x55:0, x56:0) -> f8(x54:0 + 1, x55:0, x56:0) :|: x55:0 + x56:0 > 0 && x55:0 < 1 && x56:0 < 1 f8(x, x1, x2) -> f8(x + 1, x1, x2 - 1) :|: x1 + x2 > 0 && x1 < 1 && x2 > 0 f8(x3, x4, x5) -> f8(x3 + 1, x4 - 1, x5) :|: x4 + x5 > 0 && x4 > 0 ---------------------------------------- (7) IntTRSUnneededArgumentFilterProof (EQUIVALENT) Some arguments are removed because they cannot influence termination. We removed arguments according to the following replacements: f8(x1, x2, x3) -> f8(x2, x3) ---------------------------------------- (8) Obligation: Rules: f8(x55:0, x56:0) -> f8(x55:0, x56:0) :|: x55:0 + x56:0 > 0 && x55:0 < 1 && x56:0 < 1 f8(x1, x2) -> f8(x1, x2 - 1) :|: x1 + x2 > 0 && x1 < 1 && x2 > 0 f8(x4, x5) -> f8(x4 - 1, x5) :|: x4 + x5 > 0 && x4 > 0 ---------------------------------------- (9) PolynomialOrderProcessor (EQUIVALENT) Found the following polynomial interpretation: [f8(x, x1)] = x + x1 The following rules are decreasing: f8(x1, x2) -> f8(x1, x2 - 1) :|: x1 + x2 > 0 && x1 < 1 && x2 > 0 f8(x4, x5) -> f8(x4 - 1, x5) :|: x4 + x5 > 0 && x4 > 0 The following rules are bounded: f8(x55:0, x56:0) -> f8(x55:0, x56:0) :|: x55:0 + x56:0 > 0 && x55:0 < 1 && x56:0 < 1 f8(x1, x2) -> f8(x1, x2 - 1) :|: x1 + x2 > 0 && x1 < 1 && x2 > 0 f8(x4, x5) -> f8(x4 - 1, x5) :|: x4 + x5 > 0 && x4 > 0 ---------------------------------------- (10) Obligation: Rules: f8(x55:0, x56:0) -> f8(x55:0, x56:0) :|: x55:0 + x56:0 > 0 && x55:0 < 1 && x56:0 < 1 ---------------------------------------- (11) TerminationGraphProcessor (EQUIVALENT) Constructed the termination graph and obtained no non-trivial SCC(s). ---------------------------------------- (12) YES