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