NO Initial ITS Start location: l8 0: l0 -> l1 : tmp2^0'=tmp2^post0, x^0'=x^post0, (x^0-x^post0 == 0 /\ tmp2^0-tmp2^post0 == 0), cost: 1 4: l1 -> l2 : tmp2^0'=tmp2^post4, x^0'=x^post4, (0 == 0 /\ -x^post4+x^0 == 0), cost: 1 1: l2 -> l3 : tmp2^0'=tmp2^post1, x^0'=x^post1, (tmp2^0 <= 0 /\ -tmp2^0 <= 0 /\ x^10 == 0 /\ tmp2^0-tmp2^post1 == 0 /\ -1+x^post1 == 0), cost: 1 2: l2 -> l0 : tmp2^0'=tmp2^post2, x^0'=x^post2, (1-tmp2^0 <= 0 /\ x^0-x^post2 == 0 /\ tmp2^0-tmp2^post2 == 0), cost: 1 3: l2 -> l0 : tmp2^0'=tmp2^post3, x^0'=x^post3, (tmp2^0-tmp2^post3 == 0 /\ 1+tmp2^0 <= 0 /\ -x^post3+x^0 == 0), cost: 1 5: l3 -> l4 : tmp2^0'=tmp2^post5, x^0'=x^post5, (x^0-x^post5 == 0 /\ tmp2^0-tmp2^post5 == 0), cost: 1 6: l4 -> l3 : tmp2^0'=tmp2^post6, x^0'=x^post6, (-x^post6+x^0 == 0 /\ tmp2^0-tmp2^post6 == 0), cost: 1 7: l5 -> l6 : tmp2^0'=tmp2^post7, x^0'=x^post7, (tmp2^0-tmp2^post7 == 0 /\ -x^post7+x^0 == 0), cost: 1 8: l7 -> l1 : tmp2^0'=tmp2^post8, x^0'=x^post8, (-1+x^post8 == 0 /\ tmp2^0-tmp2^post8 == 0), cost: 1 9: l8 -> l7 : tmp2^0'=tmp2^post9, x^0'=x^post9, (-x^post9+x^0 == 0 /\ tmp2^0-tmp2^post9 == 0), cost: 1 Removed unreachable rules and leafs Start location: l8 0: l0 -> l1 : tmp2^0'=tmp2^post0, x^0'=x^post0, (x^0-x^post0 == 0 /\ tmp2^0-tmp2^post0 == 0), cost: 1 4: l1 -> l2 : tmp2^0'=tmp2^post4, x^0'=x^post4, (0 == 0 /\ -x^post4+x^0 == 0), cost: 1 1: l2 -> l3 : tmp2^0'=tmp2^post1, x^0'=x^post1, (tmp2^0 <= 0 /\ -tmp2^0 <= 0 /\ x^10 == 0 /\ tmp2^0-tmp2^post1 == 0 /\ -1+x^post1 == 0), cost: 1 2: l2 -> l0 : tmp2^0'=tmp2^post2, x^0'=x^post2, (1-tmp2^0 <= 0 /\ x^0-x^post2 == 0 /\ tmp2^0-tmp2^post2 == 0), cost: 1 3: l2 -> l0 : tmp2^0'=tmp2^post3, x^0'=x^post3, (tmp2^0-tmp2^post3 == 0 /\ 1+tmp2^0 <= 0 /\ -x^post3+x^0 == 0), cost: 1 5: l3 -> l4 : tmp2^0'=tmp2^post5, x^0'=x^post5, (x^0-x^post5 == 0 /\ tmp2^0-tmp2^post5 == 0), cost: 1 6: l4 -> l3 : tmp2^0'=tmp2^post6, x^0'=x^post6, (-x^post6+x^0 == 0 /\ tmp2^0-tmp2^post6 == 0), cost: 1 8: l7 -> l1 : tmp2^0'=tmp2^post8, x^0'=x^post8, (-1+x^post8 == 0 /\ tmp2^0-tmp2^post8 == 0), cost: 1 9: l8 -> l7 : tmp2^0'=tmp2^post9, x^0'=x^post9, (-x^post9+x^0 == 0 /\ tmp2^0-tmp2^post9 == 0), cost: 1 Applied preprocessing Original rule: l0 -> l1 : tmp2^0'=tmp2^post0, x^0'=x^post0, (x^0-x^post0 == 0 /\ tmp2^0-tmp2^post0 == 0), cost: 1 New rule: l0 -> l1 : TRUE, cost: 1 Applied preprocessing Original rule: l2 -> l3 : tmp2^0'=tmp2^post1, x^0'=x^post1, (tmp2^0 <= 0 /\ -tmp2^0 <= 0 /\ x^10 == 0 /\ tmp2^0-tmp2^post1 == 0 /\ -1+x^post1 == 0), cost: 1 New rule: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1 Applied preprocessing Original rule: l2 -> l0 : tmp2^0'=tmp2^post2, x^0'=x^post2, (1-tmp2^0 <= 0 /\ x^0-x^post2 == 0 /\ tmp2^0-tmp2^post2 == 0), cost: 1 New rule: l2 -> l0 : -1+tmp2^0 >= 0, cost: 1 Applied preprocessing Original rule: l2 -> l0 : tmp2^0'=tmp2^post3, x^0'=x^post3, (tmp2^0-tmp2^post3 == 0 /\ 1+tmp2^0 <= 0 /\ -x^post3+x^0 == 0), cost: 1 New rule: l2 -> l0 : 1+tmp2^0 <= 0, cost: 1 Applied preprocessing Original rule: l1 -> l2 : tmp2^0'=tmp2^post4, x^0'=x^post4, (0 == 0 /\ -x^post4+x^0 == 0), cost: 1 New rule: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 Applied preprocessing Original rule: l3 -> l4 : tmp2^0'=tmp2^post5, x^0'=x^post5, (x^0-x^post5 == 0 /\ tmp2^0-tmp2^post5 == 0), cost: 1 New rule: l3 -> l4 : TRUE, cost: 1 Applied preprocessing Original rule: l4 -> l3 : tmp2^0'=tmp2^post6, x^0'=x^post6, (-x^post6+x^0 == 0 /\ tmp2^0-tmp2^post6 == 0), cost: 1 New rule: l4 -> l3 : TRUE, cost: 1 Applied preprocessing Original rule: l7 -> l1 : tmp2^0'=tmp2^post8, x^0'=x^post8, (-1+x^post8 == 0 /\ tmp2^0-tmp2^post8 == 0), cost: 1 New rule: l7 -> l1 : x^0'=1, TRUE, cost: 1 Applied preprocessing Original rule: l8 -> l7 : tmp2^0'=tmp2^post9, x^0'=x^post9, (-x^post9+x^0 == 0 /\ tmp2^0-tmp2^post9 == 0), cost: 1 New rule: l8 -> l7 : TRUE, cost: 1 Simplified rules Start location: l8 10: l0 -> l1 : TRUE, cost: 1 14: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 11: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1 12: l2 -> l0 : -1+tmp2^0 >= 0, cost: 1 13: l2 -> l0 : 1+tmp2^0 <= 0, cost: 1 15: l3 -> l4 : TRUE, cost: 1 16: l4 -> l3 : TRUE, cost: 1 17: l7 -> l1 : x^0'=1, TRUE, cost: 1 18: l8 -> l7 : TRUE, cost: 1 Eliminating location l7 by chaining: Applied chaining First rule: l8 -> l7 : TRUE, cost: 1 Second rule: l7 -> l1 : x^0'=1, TRUE, cost: 1 New rule: l8 -> l1 : x^0'=1, TRUE, cost: 2 Applied deletion Removed the following rules: 17 18 Eliminating location l4 by chaining: Applied chaining First rule: l3 -> l4 : TRUE, cost: 1 Second rule: l4 -> l3 : TRUE, cost: 1 New rule: l3 -> l3 : TRUE, cost: 2 Applied deletion Removed the following rules: 15 16 Eliminated locations on linear paths Start location: l8 10: l0 -> l1 : TRUE, cost: 1 14: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 11: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1 12: l2 -> l0 : -1+tmp2^0 >= 0, cost: 1 13: l2 -> l0 : 1+tmp2^0 <= 0, cost: 1 20: l3 -> l3 : TRUE, cost: 2 19: l8 -> l1 : x^0'=1, TRUE, cost: 2 Applied nonterm Original rule: l3 -> l3 : TRUE, cost: 2 New rule: l3 -> [9] : TRUE, cost: NONTERM Applied acceleration Original rule: l3 -> l3 : TRUE, cost: 2 New rule: l3 -> l3 : TRUE, cost: 2*n0 Applied deletion Removed the following rules: 20 Accelerated simple loops Start location: l8 10: l0 -> l1 : TRUE, cost: 1 14: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 11: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1 12: l2 -> l0 : -1+tmp2^0 >= 0, cost: 1 13: l2 -> l0 : 1+tmp2^0 <= 0, cost: 1 21: l3 -> [9] : TRUE, cost: NONTERM 22: l3 -> l3 : TRUE, cost: 2*n0 19: l8 -> l1 : x^0'=1, TRUE, cost: 2 Applied chaining First rule: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1 Second rule: l3 -> [9] : TRUE, cost: NONTERM New rule: l2 -> [9] : tmp2^0 == 0, cost: NONTERM Applied chaining First rule: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1 Second rule: l3 -> l3 : TRUE, cost: 2*n0 New rule: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1+2*n0 Applied deletion Removed the following rules: 21 22 Chained accelerated rules with incoming rules Start location: l8 10: l0 -> l1 : TRUE, cost: 1 14: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 11: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1 12: l2 -> l0 : -1+tmp2^0 >= 0, cost: 1 13: l2 -> l0 : 1+tmp2^0 <= 0, cost: 1 23: l2 -> [9] : tmp2^0 == 0, cost: NONTERM 24: l2 -> l3 : x^0'=1, tmp2^0 == 0, cost: 1+2*n0 19: l8 -> l1 : x^0'=1, TRUE, cost: 2 Removed unreachable locations and irrelevant leafs Start location: l8 10: l0 -> l1 : TRUE, cost: 1 14: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 12: l2 -> l0 : -1+tmp2^0 >= 0, cost: 1 13: l2 -> l0 : 1+tmp2^0 <= 0, cost: 1 23: l2 -> [9] : tmp2^0 == 0, cost: NONTERM 19: l8 -> l1 : x^0'=1, TRUE, cost: 2 Eliminating location l2 by chaining: Applied chaining First rule: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 Second rule: l2 -> l0 : -1+tmp2^0 >= 0, cost: 1 New rule: l1 -> l0 : tmp2^0'=tmp2^post4, (0 == 0 /\ -1+tmp2^post4 >= 0), cost: 2 Applied simplification Original rule: l1 -> l0 : tmp2^0'=tmp2^post4, (0 == 0 /\ -1+tmp2^post4 >= 0), cost: 2 New rule: l1 -> l0 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 2 Applied chaining First rule: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 Second rule: l2 -> l0 : 1+tmp2^0 <= 0, cost: 1 New rule: l1 -> l0 : tmp2^0'=tmp2^post4, (0 == 0 /\ 1+tmp2^post4 <= 0), cost: 2 Applied simplification Original rule: l1 -> l0 : tmp2^0'=tmp2^post4, (0 == 0 /\ 1+tmp2^post4 <= 0), cost: 2 New rule: l1 -> l0 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 2 Applied chaining First rule: l1 -> l2 : tmp2^0'=tmp2^post4, 0 == 0, cost: 1 Second rule: l2 -> [9] : tmp2^0 == 0, cost: NONTERM New rule: l1 -> [9] : (0 == 0 /\ tmp2^post4 == 0), cost: NONTERM Applied simplification Original rule: l1 -> [9] : (0 == 0 /\ tmp2^post4 == 0), cost: NONTERM New rule: l1 -> [9] : tmp2^post4 == 0, cost: NONTERM Applied deletion Removed the following rules: 12 13 14 23 Eliminated locations on tree-shaped paths Start location: l8 10: l0 -> l1 : TRUE, cost: 1 25: l1 -> l0 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 2 26: l1 -> l0 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 2 27: l1 -> [9] : tmp2^post4 == 0, cost: NONTERM 19: l8 -> l1 : x^0'=1, TRUE, cost: 2 Eliminating location l0 by chaining: Applied chaining First rule: l1 -> l0 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 2 Second rule: l0 -> l1 : TRUE, cost: 1 New rule: l1 -> l1 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 3 Applied chaining First rule: l1 -> l0 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 2 Second rule: l0 -> l1 : TRUE, cost: 1 New rule: l1 -> l1 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 3 Applied deletion Removed the following rules: 10 25 26 Eliminated locations on tree-shaped paths Start location: l8 27: l1 -> [9] : tmp2^post4 == 0, cost: NONTERM 28: l1 -> l1 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 3 29: l1 -> l1 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 3 19: l8 -> l1 : x^0'=1, TRUE, cost: 2 Applied nonterm Original rule: l1 -> l1 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 3 New rule: l1 -> [10] : -1+tmp2^post4 >= 0, cost: NONTERM Applied acceleration Original rule: l1 -> l1 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 3 New rule: l1 -> l1 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 3*n4 Applied nonterm Original rule: l1 -> l1 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 3 New rule: l1 -> [10] : -1-tmp2^post4 >= 0, cost: NONTERM Applied acceleration Original rule: l1 -> l1 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 3 New rule: l1 -> l1 : tmp2^0'=tmp2^post4, -1-tmp2^post4 >= 0, cost: 3*n6 Applied simplification Original rule: l1 -> [10] : -1-tmp2^post4 >= 0, cost: NONTERM New rule: l1 -> [10] : 1+tmp2^post4 <= 0, cost: NONTERM Applied simplification Original rule: l1 -> l1 : tmp2^0'=tmp2^post4, -1-tmp2^post4 >= 0, cost: 3*n6 New rule: l1 -> l1 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 3*n6 Applied deletion Removed the following rules: 28 29 Accelerated simple loops Start location: l8 27: l1 -> [9] : tmp2^post4 == 0, cost: NONTERM 30: l1 -> [10] : -1+tmp2^post4 >= 0, cost: NONTERM 31: l1 -> l1 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 3*n4 34: l1 -> [10] : 1+tmp2^post4 <= 0, cost: NONTERM 35: l1 -> l1 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 3*n6 19: l8 -> l1 : x^0'=1, TRUE, cost: 2 Applied chaining First rule: l8 -> l1 : x^0'=1, TRUE, cost: 2 Second rule: l1 -> [10] : -1+tmp2^post4 >= 0, cost: NONTERM New rule: l8 -> [10] : TRUE, cost: NONTERM Applied chaining First rule: l8 -> l1 : x^0'=1, TRUE, cost: 2 Second rule: l1 -> l1 : tmp2^0'=tmp2^post4, -1+tmp2^post4 >= 0, cost: 3*n4 New rule: l8 -> l1 : tmp2^0'=tmp2^post4, x^0'=1, -1+tmp2^post4 >= 0, cost: 2+3*n4 Applied chaining First rule: l8 -> l1 : x^0'=1, TRUE, cost: 2 Second rule: l1 -> [10] : 1+tmp2^post4 <= 0, cost: NONTERM New rule: l8 -> [10] : TRUE, cost: NONTERM Applied chaining First rule: l8 -> l1 : x^0'=1, TRUE, cost: 2 Second rule: l1 -> l1 : tmp2^0'=tmp2^post4, 1+tmp2^post4 <= 0, cost: 3*n6 New rule: l8 -> l1 : tmp2^0'=tmp2^post4, x^0'=1, 1+tmp2^post4 <= 0, cost: 2+3*n6 Applied deletion Removed the following rules: 30 31 34 35 Chained accelerated rules with incoming rules Start location: l8 27: l1 -> [9] : tmp2^post4 == 0, cost: NONTERM 19: l8 -> l1 : x^0'=1, TRUE, cost: 2 36: l8 -> [10] : TRUE, cost: NONTERM 37: l8 -> l1 : tmp2^0'=tmp2^post4, x^0'=1, -1+tmp2^post4 >= 0, cost: 2+3*n4 38: l8 -> [10] : TRUE, cost: NONTERM 39: l8 -> l1 : tmp2^0'=tmp2^post4, x^0'=1, 1+tmp2^post4 <= 0, cost: 2+3*n6 Eliminating location l1 by chaining: Applied chaining First rule: l8 -> l1 : x^0'=1, TRUE, cost: 2 Second rule: l1 -> [9] : tmp2^post4 == 0, cost: NONTERM New rule: l8 -> [9] : tmp2^post4 == 0, cost: NONTERM Applied partial deletion Original rule: l8 -> l1 : tmp2^0'=tmp2^post4, x^0'=1, -1+tmp2^post4 >= 0, cost: 2+3*n4 New rule: l8 -> [11] : -1+tmp2^post4 >= 0, cost: 2+3*n4 Applied partial deletion Original rule: l8 -> l1 : tmp2^0'=tmp2^post4, x^0'=1, 1+tmp2^post4 <= 0, cost: 2+3*n6 New rule: l8 -> [11] : 1+tmp2^post4 <= 0, cost: 2+3*n6 Applied deletion Removed the following rules: 19 27 37 39 Eliminated locations on tree-shaped paths Start location: l8 36: l8 -> [10] : TRUE, cost: NONTERM 38: l8 -> [10] : TRUE, cost: NONTERM 40: l8 -> [9] : tmp2^post4 == 0, cost: NONTERM 41: l8 -> [11] : -1+tmp2^post4 >= 0, cost: 2+3*n4 42: l8 -> [11] : 1+tmp2^post4 <= 0, cost: 2+3*n6 Removed duplicate rules (ignoring updates) Start location: l8 38: l8 -> [10] : TRUE, cost: NONTERM 40: l8 -> [9] : tmp2^post4 == 0, cost: NONTERM 41: l8 -> [11] : -1+tmp2^post4 >= 0, cost: 2+3*n4 42: l8 -> [11] : 1+tmp2^post4 <= 0, cost: 2+3*n6 Computing asymptotic complexity Proved nontermination of rule 38 via SMT. Proved the following lower bound Complexity: Nonterm Cpx degree: Nonterm Solved cost: NONTERM Rule cost: NONTERM Rule guard: TRUE