16.15/5.00 YES 16.22/5.02 proof of /export/starexec/sandbox/benchmark/theBenchmark.c 16.22/5.02 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 16.22/5.02 16.22/5.02 16.22/5.02 Termination of the given C Problem could be proven: 16.22/5.02 16.22/5.02 (0) C Problem 16.22/5.02 (1) CToIRSProof [EQUIVALENT, 0 ms] 16.22/5.02 (2) IntTRS 16.22/5.02 (3) TerminationGraphProcessor [SOUND, 79 ms] 16.22/5.02 (4) IntTRS 16.22/5.02 (5) IntTRSCompressionProof [EQUIVALENT, 21 ms] 16.22/5.02 (6) IntTRS 16.22/5.02 (7) TerminationGraphProcessor [EQUIVALENT, 29 ms] 16.22/5.02 (8) AND 16.22/5.02 (9) IntTRS 16.22/5.02 (10) IntTRSCompressionProof [EQUIVALENT, 0 ms] 16.22/5.02 (11) IntTRS 16.22/5.02 (12) RankingReductionPairProof [EQUIVALENT, 0 ms] 16.22/5.02 (13) YES 16.22/5.02 (14) IntTRS 16.22/5.02 (15) IntTRSCompressionProof [EQUIVALENT, 0 ms] 16.22/5.02 (16) IntTRS 16.22/5.02 (17) PolynomialOrderProcessor [EQUIVALENT, 7 ms] 16.22/5.02 (18) YES 16.22/5.02 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (0) 16.22/5.02 Obligation: 16.22/5.02 c file /export/starexec/sandbox/benchmark/theBenchmark.c 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (1) CToIRSProof (EQUIVALENT) 16.22/5.02 Parsed C Integer Program as IRS. 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (2) 16.22/5.02 Obligation: 16.22/5.02 Rules: 16.22/5.02 f1(x, y, z) -> f2(x_1, y, z) :|: TRUE 16.22/5.02 f2(x1, x2, x3) -> f3(x1, x4, x3) :|: TRUE 16.22/5.02 f3(x5, x6, x7) -> f4(x5, x6, x8) :|: TRUE 16.22/5.02 f6(x9, x10, x11) -> f9(x9, x11, x11) :|: TRUE 16.22/5.02 f9(x12, x13, x14) -> f10(x15, x13, x14) :|: TRUE 16.22/5.02 f10(x16, x17, x18) -> f11(x16, x17, arith) :|: TRUE && arith = x16 - 1 16.22/5.02 f7(x50, x51, x52) -> f12(x50, x51, x53) :|: TRUE && x53 = x52 - 1 16.22/5.02 f12(x22, x23, x24) -> f13(x25, x23, x24) :|: TRUE 16.22/5.02 f13(x54, x55, x56) -> f14(x54, x57, x56) :|: TRUE && x57 = x54 - 1 16.22/5.02 f5(x29, x30, x31) -> f6(x29, x30, x31) :|: x30 > x29 16.22/5.02 f5(x32, x33, x34) -> f7(x32, x33, x34) :|: x33 <= x32 16.22/5.02 f11(x35, x36, x37) -> f8(x35, x36, x37) :|: TRUE 16.22/5.02 f14(x38, x39, x40) -> f8(x38, x39, x40) :|: TRUE 16.22/5.02 f4(x41, x42, x43) -> f5(x41, x42, x43) :|: x41 > 0 && x42 > 0 && x43 > 0 16.22/5.02 f8(x44, x45, x46) -> f4(x44, x45, x46) :|: TRUE 16.22/5.02 f4(x47, x48, x49) -> f15(x47, x48, x49) :|: x49 <= 0 16.22/5.02 f4(x58, x59, x60) -> f15(x58, x59, x60) :|: x58 <= 0 16.22/5.02 f4(x61, x62, x63) -> f15(x61, x62, x63) :|: x62 <= 0 16.22/5.02 Start term: f1(x, y, z) 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (3) TerminationGraphProcessor (SOUND) 16.22/5.02 Constructed the termination graph and obtained one non-trivial SCC. 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (4) 16.22/5.02 Obligation: 16.22/5.02 Rules: 16.22/5.02 f4(x41, x42, x43) -> f5(x41, x42, x43) :|: x41 > 0 && x42 > 0 && x43 > 0 16.22/5.02 f8(x44, x45, x46) -> f4(x44, x45, x46) :|: TRUE 16.22/5.02 f11(x35, x36, x37) -> f8(x35, x36, x37) :|: TRUE 16.22/5.02 f10(x16, x17, x18) -> f11(x16, x17, arith) :|: TRUE && arith = x16 - 1 16.22/5.02 f9(x12, x13, x14) -> f10(x15, x13, x14) :|: TRUE 16.22/5.02 f6(x9, x10, x11) -> f9(x9, x11, x11) :|: TRUE 16.22/5.02 f5(x29, x30, x31) -> f6(x29, x30, x31) :|: x30 > x29 16.22/5.02 f14(x38, x39, x40) -> f8(x38, x39, x40) :|: TRUE 16.22/5.02 f13(x54, x55, x56) -> f14(x54, x57, x56) :|: TRUE && x57 = x54 - 1 16.22/5.02 f12(x22, x23, x24) -> f13(x25, x23, x24) :|: TRUE 16.22/5.02 f7(x50, x51, x52) -> f12(x50, x51, x53) :|: TRUE && x53 = x52 - 1 16.22/5.02 f5(x32, x33, x34) -> f7(x32, x33, x34) :|: x33 <= x32 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (5) IntTRSCompressionProof (EQUIVALENT) 16.22/5.02 Compressed rules. 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (6) 16.22/5.02 Obligation: 16.22/5.02 Rules: 16.22/5.02 f8(x44:0, x45:0, x46:0) -> f8(x25:0, x25:0 - 1, x46:0 - 1) :|: x46:0 > 0 && x45:0 <= x44:0 && x45:0 > 0 && x44:0 > 0 16.22/5.02 f8(x, x1, x2) -> f8(x3, x2, x3 - 1) :|: x2 > 0 && x1 > x && x1 > 0 && x > 0 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (7) TerminationGraphProcessor (EQUIVALENT) 16.22/5.02 Constructed the termination graph and obtained 2 non-trivial SCCs. 16.22/5.02 16.22/5.02 f8(x, x1, x2) -> f8(x3, x2, x3 - 1) :|: x2 > 0 && x1 > x && x1 > 0 && x > 0 16.22/5.02 has been transformed into 16.22/5.02 f8(x, x1, x2) -> f8(x3, x2, x3 - 1) :|: x1 = x18 && (x2 > 0 && x1 > x && x1 > 0 && x > 0) && x18 > 0. 16.22/5.02 16.22/5.02 f8(x44:0, x45:0, x46:0) -> f8(x25:0, x25:0 - 1, x46:0 - 1) :|: x46:0 > 0 && x45:0 <= x44:0 && x45:0 > 0 && x44:0 > 0 16.22/5.02 has been transformed into 16.22/5.02 f8(x44:0, x45:0, x46:0) -> f8(x25:0, x25:0 - 1, x46:0 - 1) :|: x46:0 = x50 - 1 && (x46:0 > 0 && x45:0 <= x44:0 && x45:0 > 0 && x44:0 > 0) && x50 > 0. 16.22/5.02 16.22/5.02 16.22/5.02 f8(x, x1, x2) -> f8(x3, x2, x3 - 1) :|: x1 = x18 && (x2 > 0 && x1 > x && x1 > 0 && x > 0) && x18 > 0 and 16.22/5.02 f8(x, x1, x2) -> f8(x3, x2, x3 - 1) :|: x1 = x18 && (x2 > 0 && x1 > x && x1 > 0 && x > 0) && x18 > 0 16.22/5.02 have been merged into the new rule 16.22/5.02 f8(x30, x31, x32) -> f8(x33, x34 - 1, x33 - 1) :|: x31 = x35 && (x32 > 0 && x31 > x30 && x31 > 0 && x30 > 0) && x35 > 0 && (x32 = x36 && (x34 - 1 > 0 && x32 > x34 && x32 > 0 && x34 > 0) && x36 > 0) 16.22/5.02 16.22/5.02 f8(x44:0, x45:0, x46:0) -> f8(x25:0, x25:0 - 1, x46:0 - 1) :|: x46:0 = x50 - 1 && (x46:0 > 0 && x45:0 <= x44:0 && x45:0 > 0 && x44:0 > 0) && x50 > 0 and 16.22/5.02 f8(x44:0, x45:0, x46:0) -> f8(x25:0, x25:0 - 1, x46:0 - 1) :|: x46:0 = x50 - 1 && (x46:0 > 0 && x45:0 <= x44:0 && x45:0 > 0 && x44:0 > 0) && x50 > 0 16.22/5.02 have been merged into the new rule 16.22/5.02 f8(x62, x63, x64) -> f8(x65, x65 - 1, x64 - 1 - 1) :|: x64 = x66 - 1 && (x64 > 0 && x63 <= x62 && x63 > 0 && x62 > 0) && x66 > 0 && (x64 - 1 = x67 - 1 && (x64 - 1 > 0 && x68 - 1 <= x68 && x68 - 1 > 0 && x68 > 0) && x67 > 0) 16.22/5.02 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (8) 16.22/5.02 Complex Obligation (AND) 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (9) 16.22/5.02 Obligation: 16.22/5.02 Rules: 16.22/5.02 f8(x37, x38, x39) -> f8(x40, x41 + -1, x40 + -1) :|: TRUE && x38 + -1 * x42 = 0 && x39 >= 1 && x38 + -1 * x37 >= 1 && x38 >= 1 && x37 >= 1 && x42 >= 1 && x39 + -1 * x43 = 0 && x41 >= 2 && x39 + -1 * x41 >= 1 && x43 >= 1 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (10) IntTRSCompressionProof (EQUIVALENT) 16.22/5.02 Compressed rules. 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (11) 16.22/5.02 Obligation: 16.22/5.02 Rules: 16.22/5.02 f8(x37:0, x38:0, x39:0) -> f8(x40:0, x41:0 - 1, x40:0 - 1) :|: x39:0 + -1 * x41:0 >= 1 && x43:0 > 0 && x41:0 > 1 && x39:0 + -1 * x43:0 = 0 && x42:0 > 0 && x37:0 > 0 && x38:0 > 0 && x38:0 + -1 * x37:0 >= 1 && x38:0 + -1 * x42:0 = 0 && x39:0 > 0 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (12) RankingReductionPairProof (EQUIVALENT) 16.22/5.02 Interpretation: 16.22/5.02 [ f8 ] = -1/4*f8_1 + 1/4*f8_2 + 1/4*f8_3 16.22/5.02 16.22/5.02 The following rules are decreasing: 16.22/5.02 f8(x37:0, x38:0, x39:0) -> f8(x40:0, x41:0 - 1, x40:0 - 1) :|: x39:0 + -1 * x41:0 >= 1 && x43:0 > 0 && x41:0 > 1 && x39:0 + -1 * x43:0 = 0 && x42:0 > 0 && x37:0 > 0 && x38:0 > 0 && x38:0 + -1 * x37:0 >= 1 && x38:0 + -1 * x42:0 = 0 && x39:0 > 0 16.22/5.02 16.22/5.02 The following rules are bounded: 16.22/5.02 f8(x37:0, x38:0, x39:0) -> f8(x40:0, x41:0 - 1, x40:0 - 1) :|: x39:0 + -1 * x41:0 >= 1 && x43:0 > 0 && x41:0 > 1 && x39:0 + -1 * x43:0 = 0 && x42:0 > 0 && x37:0 > 0 && x38:0 > 0 && x38:0 + -1 * x37:0 >= 1 && x38:0 + -1 * x42:0 = 0 && x39:0 > 0 16.22/5.02 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (13) 16.22/5.02 YES 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (14) 16.22/5.02 Obligation: 16.22/5.02 Rules: 16.22/5.02 f8(x69, x70, x71) -> f8(x72, x72 + -1, x71 + -2) :|: TRUE && x71 + -1 * x73 = -1 && x70 + -1 * x69 <= 0 && x70 >= 1 && x69 >= 1 && x73 >= 1 && x71 + -1 * x74 = 0 && x71 >= 2 && 0 <= 1 && x75 >= 2 && x74 >= 1 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (15) IntTRSCompressionProof (EQUIVALENT) 16.22/5.02 Compressed rules. 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (16) 16.22/5.02 Obligation: 16.22/5.02 Rules: 16.22/5.02 f8(x69:0, x70:0, x71:0) -> f8(x72:0, x72:0 - 1, x71:0 - 2) :|: x75:0 > 1 && x74:0 > 0 && x71:0 > 1 && x71:0 + -1 * x74:0 = 0 && x73:0 > 0 && x69:0 > 0 && x70:0 > 0 && x71:0 + -1 * x73:0 = -1 && x70:0 + -1 * x69:0 <= 0 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (17) PolynomialOrderProcessor (EQUIVALENT) 16.22/5.02 Found the following polynomial interpretation: 16.22/5.02 [f8(x, x1, x2)] = -2 - x + x*x2 + x1 - x1*x2 - x2 + x2^2 16.22/5.02 16.22/5.02 The following rules are decreasing: 16.22/5.02 f8(x69:0, x70:0, x71:0) -> f8(x72:0, x72:0 - 1, x71:0 - 2) :|: x75:0 > 1 && x74:0 > 0 && x71:0 > 1 && x71:0 + -1 * x74:0 = 0 && x73:0 > 0 && x69:0 > 0 && x70:0 > 0 && x71:0 + -1 * x73:0 = -1 && x70:0 + -1 * x69:0 <= 0 16.22/5.02 The following rules are bounded: 16.22/5.02 f8(x69:0, x70:0, x71:0) -> f8(x72:0, x72:0 - 1, x71:0 - 2) :|: x75:0 > 1 && x74:0 > 0 && x71:0 > 1 && x71:0 + -1 * x74:0 = 0 && x73:0 > 0 && x69:0 > 0 && x70:0 > 0 && x71:0 + -1 * x73:0 = -1 && x70:0 + -1 * x69:0 <= 0 16.22/5.02 16.22/5.02 ---------------------------------------- 16.22/5.02 16.22/5.02 (18) 16.22/5.02 YES 16.24/5.06 EOF