WORST_CASE(Omega(1),?) ### Pre-processing the ITS problem ### Initial linear ITS problem Start location: l6 0: l0 -> l1 : oldX0^0'=oldX0^post_1, oldX1^0'=oldX1^post_1, oldX2^0'=oldX2^post_1, oldX3^0'=oldX3^post_1, oldX4^0'=oldX4^post_1, oldX5^0'=oldX5^post_1, x0^0'=x0^post_1, x1^0'=x1^post_1, x2^0'=x2^post_1, [ oldX0^post_1==x0^0 && oldX1^post_1==x1^0 && oldX2^post_1==x2^0 && oldX3^post_1==oldX3^post_1 && oldX4^post_1==oldX4^post_1 && oldX5^post_1==oldX5^post_1 && x0^post_1==oldX3^post_1 && x1^post_1==oldX4^post_1 && x2^post_1==oldX5^post_1 ], cost: 1 1: l2 -> l3 : oldX0^0'=oldX0^post_2, oldX1^0'=oldX1^post_2, oldX2^0'=oldX2^post_2, oldX3^0'=oldX3^post_2, oldX4^0'=oldX4^post_2, oldX5^0'=oldX5^post_2, x0^0'=x0^post_2, x1^0'=x1^post_2, x2^0'=x2^post_2, [ oldX0^post_2==x0^0 && oldX1^post_2==x1^0 && oldX2^post_2==x2^0 && x0^post_2==1+oldX0^post_2 && x1^post_2==oldX2^post_2 && x2^post_2==-1+oldX1^post_2 && oldX3^0==oldX3^post_2 && oldX4^0==oldX4^post_2 && oldX5^0==oldX5^post_2 ], cost: 1 2: l3 -> l0 : oldX0^0'=oldX0^post_3, oldX1^0'=oldX1^post_3, oldX2^0'=oldX2^post_3, oldX3^0'=oldX3^post_3, oldX4^0'=oldX4^post_3, oldX5^0'=oldX5^post_3, x0^0'=x0^post_3, x1^0'=x1^post_3, x2^0'=x2^post_3, [ oldX0^post_3==x0^0 && oldX1^post_3==x1^0 && oldX2^post_3==x2^0 && oldX1^post_3<=0 && x0^post_3==oldX0^post_3 && x1^post_3==oldX1^post_3 && x2^post_3==oldX2^post_3 && oldX3^0==oldX3^post_3 && oldX4^0==oldX4^post_3 && oldX5^0==oldX5^post_3 ], cost: 1 3: l3 -> l2 : oldX0^0'=oldX0^post_4, oldX1^0'=oldX1^post_4, oldX2^0'=oldX2^post_4, oldX3^0'=oldX3^post_4, oldX4^0'=oldX4^post_4, oldX5^0'=oldX5^post_4, x0^0'=x0^post_4, x1^0'=x1^post_4, x2^0'=x2^post_4, [ oldX0^post_4==x0^0 && oldX1^post_4==x1^0 && oldX2^post_4==x2^0 && 1<=oldX1^post_4 && x0^post_4==oldX0^post_4 && x1^post_4==oldX1^post_4 && x2^post_4==oldX2^post_4 && oldX3^0==oldX3^post_4 && oldX4^0==oldX4^post_4 && oldX5^0==oldX5^post_4 ], cost: 1 4: l4 -> l3 : oldX0^0'=oldX0^post_5, oldX1^0'=oldX1^post_5, oldX2^0'=oldX2^post_5, oldX3^0'=oldX3^post_5, oldX4^0'=oldX4^post_5, oldX5^0'=oldX5^post_5, x0^0'=x0^post_5, x1^0'=x1^post_5, x2^0'=x2^post_5, [ oldX0^post_5==x0^0 && oldX1^post_5==x1^0 && oldX2^post_5==x2^0 && oldX3^post_5==oldX3^post_5 && oldX4^post_5==oldX4^post_5 && x0^post_5==0 && x1^post_5==oldX3^post_5 && x2^post_5==oldX4^post_5 && oldX5^0==oldX5^post_5 ], cost: 1 5: l5 -> l4 : oldX0^0'=oldX0^post_6, oldX1^0'=oldX1^post_6, oldX2^0'=oldX2^post_6, oldX3^0'=oldX3^post_6, oldX4^0'=oldX4^post_6, oldX5^0'=oldX5^post_6, x0^0'=x0^post_6, x1^0'=x1^post_6, x2^0'=x2^post_6, [ oldX0^post_6==x0^0 && oldX1^post_6==x1^0 && oldX2^post_6==x2^0 && oldX3^post_6==oldX3^post_6 && oldX4^post_6==oldX4^post_6 && oldX5^post_6==oldX5^post_6 && x0^post_6==oldX3^post_6 && x1^post_6==oldX4^post_6 && x2^post_6==oldX5^post_6 ], cost: 1 6: l5 -> l1 : oldX0^0'=oldX0^post_7, oldX1^0'=oldX1^post_7, oldX2^0'=oldX2^post_7, oldX3^0'=oldX3^post_7, oldX4^0'=oldX4^post_7, oldX5^0'=oldX5^post_7, x0^0'=x0^post_7, x1^0'=x1^post_7, x2^0'=x2^post_7, [ oldX0^0==oldX0^post_7 && oldX1^0==oldX1^post_7 && oldX2^0==oldX2^post_7 && oldX3^0==oldX3^post_7 && oldX4^0==oldX4^post_7 && oldX5^0==oldX5^post_7 && x0^0==x0^post_7 && x1^0==x1^post_7 && x2^0==x2^post_7 ], cost: 1 7: l5 -> l0 : oldX0^0'=oldX0^post_8, oldX1^0'=oldX1^post_8, oldX2^0'=oldX2^post_8, oldX3^0'=oldX3^post_8, oldX4^0'=oldX4^post_8, oldX5^0'=oldX5^post_8, x0^0'=x0^post_8, x1^0'=x1^post_8, x2^0'=x2^post_8, [ oldX0^0==oldX0^post_8 && oldX1^0==oldX1^post_8 && oldX2^0==oldX2^post_8 && oldX3^0==oldX3^post_8 && oldX4^0==oldX4^post_8 && oldX5^0==oldX5^post_8 && x0^0==x0^post_8 && x1^0==x1^post_8 && x2^0==x2^post_8 ], cost: 1 8: l5 -> l2 : oldX0^0'=oldX0^post_9, oldX1^0'=oldX1^post_9, oldX2^0'=oldX2^post_9, oldX3^0'=oldX3^post_9, oldX4^0'=oldX4^post_9, oldX5^0'=oldX5^post_9, x0^0'=x0^post_9, x1^0'=x1^post_9, x2^0'=x2^post_9, [ oldX0^0==oldX0^post_9 && oldX1^0==oldX1^post_9 && oldX2^0==oldX2^post_9 && oldX3^0==oldX3^post_9 && oldX4^0==oldX4^post_9 && oldX5^0==oldX5^post_9 && x0^0==x0^post_9 && x1^0==x1^post_9 && x2^0==x2^post_9 ], cost: 1 9: l5 -> l3 : oldX0^0'=oldX0^post_10, oldX1^0'=oldX1^post_10, oldX2^0'=oldX2^post_10, oldX3^0'=oldX3^post_10, oldX4^0'=oldX4^post_10, oldX5^0'=oldX5^post_10, x0^0'=x0^post_10, x1^0'=x1^post_10, x2^0'=x2^post_10, [ oldX0^0==oldX0^post_10 && oldX1^0==oldX1^post_10 && oldX2^0==oldX2^post_10 && oldX3^0==oldX3^post_10 && oldX4^0==oldX4^post_10 && oldX5^0==oldX5^post_10 && x0^0==x0^post_10 && x1^0==x1^post_10 && x2^0==x2^post_10 ], cost: 1 10: l5 -> l4 : oldX0^0'=oldX0^post_11, oldX1^0'=oldX1^post_11, oldX2^0'=oldX2^post_11, oldX3^0'=oldX3^post_11, oldX4^0'=oldX4^post_11, oldX5^0'=oldX5^post_11, x0^0'=x0^post_11, x1^0'=x1^post_11, x2^0'=x2^post_11, [ oldX0^0==oldX0^post_11 && oldX1^0==oldX1^post_11 && oldX2^0==oldX2^post_11 && oldX3^0==oldX3^post_11 && oldX4^0==oldX4^post_11 && oldX5^0==oldX5^post_11 && x0^0==x0^post_11 && x1^0==x1^post_11 && x2^0==x2^post_11 ], cost: 1 11: l6 -> l5 : oldX0^0'=oldX0^post_12, oldX1^0'=oldX1^post_12, oldX2^0'=oldX2^post_12, oldX3^0'=oldX3^post_12, oldX4^0'=oldX4^post_12, oldX5^0'=oldX5^post_12, x0^0'=x0^post_12, x1^0'=x1^post_12, x2^0'=x2^post_12, [ oldX0^0==oldX0^post_12 && oldX1^0==oldX1^post_12 && oldX2^0==oldX2^post_12 && oldX3^0==oldX3^post_12 && oldX4^0==oldX4^post_12 && oldX5^0==oldX5^post_12 && x0^0==x0^post_12 && x1^0==x1^post_12 && x2^0==x2^post_12 ], cost: 1 Checking for constant complexity: The following rule is satisfiable with cost >= 1, yielding constant complexity: 11: l6 -> l5 : oldX0^0'=oldX0^post_12, oldX1^0'=oldX1^post_12, oldX2^0'=oldX2^post_12, oldX3^0'=oldX3^post_12, oldX4^0'=oldX4^post_12, oldX5^0'=oldX5^post_12, x0^0'=x0^post_12, x1^0'=x1^post_12, x2^0'=x2^post_12, [ oldX0^0==oldX0^post_12 && oldX1^0==oldX1^post_12 && oldX2^0==oldX2^post_12 && oldX3^0==oldX3^post_12 && oldX4^0==oldX4^post_12 && oldX5^0==oldX5^post_12 && x0^0==x0^post_12 && x1^0==x1^post_12 && x2^0==x2^post_12 ], cost: 1 Removed unreachable and leaf rules: Start location: l6 1: l2 -> l3 : oldX0^0'=oldX0^post_2, oldX1^0'=oldX1^post_2, oldX2^0'=oldX2^post_2, oldX3^0'=oldX3^post_2, oldX4^0'=oldX4^post_2, oldX5^0'=oldX5^post_2, x0^0'=x0^post_2, x1^0'=x1^post_2, x2^0'=x2^post_2, [ oldX0^post_2==x0^0 && oldX1^post_2==x1^0 && oldX2^post_2==x2^0 && x0^post_2==1+oldX0^post_2 && x1^post_2==oldX2^post_2 && x2^post_2==-1+oldX1^post_2 && oldX3^0==oldX3^post_2 && oldX4^0==oldX4^post_2 && oldX5^0==oldX5^post_2 ], cost: 1 3: l3 -> l2 : oldX0^0'=oldX0^post_4, oldX1^0'=oldX1^post_4, oldX2^0'=oldX2^post_4, oldX3^0'=oldX3^post_4, oldX4^0'=oldX4^post_4, oldX5^0'=oldX5^post_4, x0^0'=x0^post_4, x1^0'=x1^post_4, x2^0'=x2^post_4, [ oldX0^post_4==x0^0 && oldX1^post_4==x1^0 && oldX2^post_4==x2^0 && 1<=oldX1^post_4 && x0^post_4==oldX0^post_4 && x1^post_4==oldX1^post_4 && x2^post_4==oldX2^post_4 && oldX3^0==oldX3^post_4 && oldX4^0==oldX4^post_4 && oldX5^0==oldX5^post_4 ], cost: 1 4: l4 -> l3 : oldX0^0'=oldX0^post_5, oldX1^0'=oldX1^post_5, oldX2^0'=oldX2^post_5, oldX3^0'=oldX3^post_5, oldX4^0'=oldX4^post_5, oldX5^0'=oldX5^post_5, x0^0'=x0^post_5, x1^0'=x1^post_5, x2^0'=x2^post_5, [ oldX0^post_5==x0^0 && oldX1^post_5==x1^0 && oldX2^post_5==x2^0 && oldX3^post_5==oldX3^post_5 && oldX4^post_5==oldX4^post_5 && x0^post_5==0 && x1^post_5==oldX3^post_5 && x2^post_5==oldX4^post_5 && oldX5^0==oldX5^post_5 ], cost: 1 5: l5 -> l4 : oldX0^0'=oldX0^post_6, oldX1^0'=oldX1^post_6, oldX2^0'=oldX2^post_6, oldX3^0'=oldX3^post_6, oldX4^0'=oldX4^post_6, oldX5^0'=oldX5^post_6, x0^0'=x0^post_6, x1^0'=x1^post_6, x2^0'=x2^post_6, [ oldX0^post_6==x0^0 && oldX1^post_6==x1^0 && oldX2^post_6==x2^0 && oldX3^post_6==oldX3^post_6 && oldX4^post_6==oldX4^post_6 && oldX5^post_6==oldX5^post_6 && x0^post_6==oldX3^post_6 && x1^post_6==oldX4^post_6 && x2^post_6==oldX5^post_6 ], cost: 1 8: l5 -> l2 : oldX0^0'=oldX0^post_9, oldX1^0'=oldX1^post_9, oldX2^0'=oldX2^post_9, oldX3^0'=oldX3^post_9, oldX4^0'=oldX4^post_9, oldX5^0'=oldX5^post_9, x0^0'=x0^post_9, x1^0'=x1^post_9, x2^0'=x2^post_9, [ oldX0^0==oldX0^post_9 && oldX1^0==oldX1^post_9 && oldX2^0==oldX2^post_9 && oldX3^0==oldX3^post_9 && oldX4^0==oldX4^post_9 && oldX5^0==oldX5^post_9 && x0^0==x0^post_9 && x1^0==x1^post_9 && x2^0==x2^post_9 ], cost: 1 9: l5 -> l3 : oldX0^0'=oldX0^post_10, oldX1^0'=oldX1^post_10, oldX2^0'=oldX2^post_10, oldX3^0'=oldX3^post_10, oldX4^0'=oldX4^post_10, oldX5^0'=oldX5^post_10, x0^0'=x0^post_10, x1^0'=x1^post_10, x2^0'=x2^post_10, [ oldX0^0==oldX0^post_10 && oldX1^0==oldX1^post_10 && oldX2^0==oldX2^post_10 && oldX3^0==oldX3^post_10 && oldX4^0==oldX4^post_10 && oldX5^0==oldX5^post_10 && x0^0==x0^post_10 && x1^0==x1^post_10 && x2^0==x2^post_10 ], cost: 1 10: l5 -> l4 : oldX0^0'=oldX0^post_11, oldX1^0'=oldX1^post_11, oldX2^0'=oldX2^post_11, oldX3^0'=oldX3^post_11, oldX4^0'=oldX4^post_11, oldX5^0'=oldX5^post_11, x0^0'=x0^post_11, x1^0'=x1^post_11, x2^0'=x2^post_11, [ oldX0^0==oldX0^post_11 && oldX1^0==oldX1^post_11 && oldX2^0==oldX2^post_11 && oldX3^0==oldX3^post_11 && oldX4^0==oldX4^post_11 && oldX5^0==oldX5^post_11 && x0^0==x0^post_11 && x1^0==x1^post_11 && x2^0==x2^post_11 ], cost: 1 11: l6 -> l5 : oldX0^0'=oldX0^post_12, oldX1^0'=oldX1^post_12, oldX2^0'=oldX2^post_12, oldX3^0'=oldX3^post_12, oldX4^0'=oldX4^post_12, oldX5^0'=oldX5^post_12, x0^0'=x0^post_12, x1^0'=x1^post_12, x2^0'=x2^post_12, [ oldX0^0==oldX0^post_12 && oldX1^0==oldX1^post_12 && oldX2^0==oldX2^post_12 && oldX3^0==oldX3^post_12 && oldX4^0==oldX4^post_12 && oldX5^0==oldX5^post_12 && x0^0==x0^post_12 && x1^0==x1^post_12 && x2^0==x2^post_12 ], cost: 1 Simplified all rules, resulting in: Start location: l6 1: l2 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, x0^0'=1+x0^0, x1^0'=x2^0, x2^0'=-1+x1^0, [], cost: 1 3: l3 -> l2 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, [ 1<=x1^0 ], cost: 1 4: l4 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 1 5: l5 -> l4 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, oldX3^0'=x0^post_6, oldX4^0'=oldX4^post_6, oldX5^0'=x2^post_6, x0^0'=x0^post_6, x1^0'=oldX4^post_6, x2^0'=x2^post_6, [], cost: 1 8: l5 -> l2 : [], cost: 1 9: l5 -> l3 : [], cost: 1 10: l5 -> l4 : [], cost: 1 11: l6 -> l5 : [], cost: 1 ### Simplification by acceleration and chaining ### Eliminated locations (on tree-shaped paths): Start location: l6 1: l2 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, x0^0'=1+x0^0, x1^0'=x2^0, x2^0'=-1+x1^0, [], cost: 1 3: l3 -> l2 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, [ 1<=x1^0 ], cost: 1 4: l4 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 1 12: l6 -> l4 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, oldX3^0'=x0^post_6, oldX4^0'=oldX4^post_6, oldX5^0'=x2^post_6, x0^0'=x0^post_6, x1^0'=oldX4^post_6, x2^0'=x2^post_6, [], cost: 2 13: l6 -> l2 : [], cost: 2 14: l6 -> l3 : [], cost: 2 15: l6 -> l4 : [], cost: 2 Eliminated locations (on tree-shaped paths): Start location: l6 1: l2 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, x0^0'=1+x0^0, x1^0'=x2^0, x2^0'=-1+x1^0, [], cost: 1 3: l3 -> l2 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, [ 1<=x1^0 ], cost: 1 13: l6 -> l2 : [], cost: 2 14: l6 -> l3 : [], cost: 2 16: l6 -> l3 : oldX0^0'=x0^post_6, oldX1^0'=oldX4^post_6, oldX2^0'=x2^post_6, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, oldX5^0'=x2^post_6, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 3 17: l6 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 3 Eliminated location l2 (as a last resort): Start location: l6 18: l3 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, x0^0'=1+x0^0, x1^0'=x2^0, x2^0'=-1+x1^0, [ 1<=x1^0 ], cost: 2 14: l6 -> l3 : [], cost: 2 16: l6 -> l3 : oldX0^0'=x0^post_6, oldX1^0'=oldX4^post_6, oldX2^0'=x2^post_6, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, oldX5^0'=x2^post_6, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 3 17: l6 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 3 19: l6 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, x0^0'=1+x0^0, x1^0'=x2^0, x2^0'=-1+x1^0, [], cost: 3 Accelerating simple loops of location 3. Accelerating the following rules: 18: l3 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, x0^0'=1+x0^0, x1^0'=x2^0, x2^0'=-1+x1^0, [ 1<=x1^0 ], cost: 2 Accelerated rule 18 with backward acceleration, yielding the new rule 20. Accelerated rule 18 with backward acceleration, yielding the new rule 21. [accelerate] Nesting with 2 inner and 1 outer candidates Removing the simple loops: 18. Accelerated all simple loops using metering functions (where possible): Start location: l6 20: l3 -> l3 : oldX0^0'=-1+2*x1^0+x0^0, oldX1^0'=1-x1^0+x2^0, oldX2^0'=0, x0^0'=2*x1^0+x0^0, x1^0'=0, x2^0'=-x1^0+x2^0, [ x1^0>=1 && 1<=1-x1^0+x2^0 ], cost: 4*x1^0 21: l3 -> l3 : oldX0^0'=-1+2*x2^0+x0^0, oldX1^0'=1, oldX2^0'=x1^0-x2^0, x0^0'=2*x2^0+x0^0, x1^0'=x1^0-x2^0, x2^0'=0, [ x2^0>=1 && 1<=1+x1^0-x2^0 ], cost: 4*x2^0 14: l6 -> l3 : [], cost: 2 16: l6 -> l3 : oldX0^0'=x0^post_6, oldX1^0'=oldX4^post_6, oldX2^0'=x2^post_6, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, oldX5^0'=x2^post_6, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 3 17: l6 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 3 19: l6 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, x0^0'=1+x0^0, x1^0'=x2^0, x2^0'=-1+x1^0, [], cost: 3 Chained accelerated rules (with incoming rules): Start location: l6 14: l6 -> l3 : [], cost: 2 16: l6 -> l3 : oldX0^0'=x0^post_6, oldX1^0'=oldX4^post_6, oldX2^0'=x2^post_6, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, oldX5^0'=x2^post_6, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 3 17: l6 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=0, x1^0'=x1^post_5, x2^0'=x2^post_5, [], cost: 3 19: l6 -> l3 : oldX0^0'=x0^0, oldX1^0'=x1^0, oldX2^0'=x2^0, x0^0'=1+x0^0, x1^0'=x2^0, x2^0'=-1+x1^0, [], cost: 3 22: l6 -> l3 : oldX0^0'=-1+2*x1^0+x0^0, oldX1^0'=1-x1^0+x2^0, oldX2^0'=0, x0^0'=2*x1^0+x0^0, x1^0'=0, x2^0'=-x1^0+x2^0, [ x1^0>=1 && 1<=1-x1^0+x2^0 ], cost: 2+4*x1^0 23: l6 -> l3 : oldX0^0'=-1+2*x1^post_5, oldX1^0'=1-x1^post_5+x2^post_5, oldX2^0'=0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, oldX5^0'=x2^post_6, x0^0'=2*x1^post_5, x1^0'=0, x2^0'=-x1^post_5+x2^post_5, [ x1^post_5>=1 && 1<=1-x1^post_5+x2^post_5 ], cost: 3+4*x1^post_5 24: l6 -> l3 : oldX0^0'=-1+2*x1^post_5, oldX1^0'=1-x1^post_5+x2^post_5, oldX2^0'=0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=2*x1^post_5, x1^0'=0, x2^0'=-x1^post_5+x2^post_5, [ x1^post_5>=1 && 1<=1-x1^post_5+x2^post_5 ], cost: 3+4*x1^post_5 25: l6 -> l3 : oldX0^0'=2*x2^0+x0^0, oldX1^0'=x1^0-x2^0, oldX2^0'=0, x0^0'=1+2*x2^0+x0^0, x1^0'=0, x2^0'=-1+x1^0-x2^0, [ x2^0>=1 && 1<=x1^0-x2^0 ], cost: 3+4*x2^0 26: l6 -> l3 : oldX0^0'=-1+2*x2^0+x0^0, oldX1^0'=1, oldX2^0'=x1^0-x2^0, x0^0'=2*x2^0+x0^0, x1^0'=x1^0-x2^0, x2^0'=0, [ x2^0>=1 && 1<=1+x1^0-x2^0 ], cost: 2+4*x2^0 27: l6 -> l3 : oldX0^0'=-1+2*x2^post_5, oldX1^0'=1, oldX2^0'=x1^post_5-x2^post_5, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, oldX5^0'=x2^post_6, x0^0'=2*x2^post_5, x1^0'=x1^post_5-x2^post_5, x2^0'=0, [ x2^post_5>=1 && 1<=1+x1^post_5-x2^post_5 ], cost: 3+4*x2^post_5 28: l6 -> l3 : oldX0^0'=-1+2*x2^post_5, oldX1^0'=1, oldX2^0'=x1^post_5-x2^post_5, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=2*x2^post_5, x1^0'=x1^post_5-x2^post_5, x2^0'=0, [ x2^post_5>=1 && 1<=1+x1^post_5-x2^post_5 ], cost: 3+4*x2^post_5 29: l6 -> l3 : oldX0^0'=-2+2*x1^0+x0^0, oldX1^0'=1, oldX2^0'=1-x1^0+x2^0, x0^0'=-1+2*x1^0+x0^0, x1^0'=1-x1^0+x2^0, x2^0'=0, [ -1+x1^0>=1 && 1<=2-x1^0+x2^0 ], cost: -1+4*x1^0 Removed unreachable locations (and leaf rules with constant cost): Start location: l6 22: l6 -> l3 : oldX0^0'=-1+2*x1^0+x0^0, oldX1^0'=1-x1^0+x2^0, oldX2^0'=0, x0^0'=2*x1^0+x0^0, x1^0'=0, x2^0'=-x1^0+x2^0, [ x1^0>=1 && 1<=1-x1^0+x2^0 ], cost: 2+4*x1^0 23: l6 -> l3 : oldX0^0'=-1+2*x1^post_5, oldX1^0'=1-x1^post_5+x2^post_5, oldX2^0'=0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, oldX5^0'=x2^post_6, x0^0'=2*x1^post_5, x1^0'=0, x2^0'=-x1^post_5+x2^post_5, [ x1^post_5>=1 && 1<=1-x1^post_5+x2^post_5 ], cost: 3+4*x1^post_5 24: l6 -> l3 : oldX0^0'=-1+2*x1^post_5, oldX1^0'=1-x1^post_5+x2^post_5, oldX2^0'=0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=2*x1^post_5, x1^0'=0, x2^0'=-x1^post_5+x2^post_5, [ x1^post_5>=1 && 1<=1-x1^post_5+x2^post_5 ], cost: 3+4*x1^post_5 25: l6 -> l3 : oldX0^0'=2*x2^0+x0^0, oldX1^0'=x1^0-x2^0, oldX2^0'=0, x0^0'=1+2*x2^0+x0^0, x1^0'=0, x2^0'=-1+x1^0-x2^0, [ x2^0>=1 && 1<=x1^0-x2^0 ], cost: 3+4*x2^0 26: l6 -> l3 : oldX0^0'=-1+2*x2^0+x0^0, oldX1^0'=1, oldX2^0'=x1^0-x2^0, x0^0'=2*x2^0+x0^0, x1^0'=x1^0-x2^0, x2^0'=0, [ x2^0>=1 && 1<=1+x1^0-x2^0 ], cost: 2+4*x2^0 27: l6 -> l3 : oldX0^0'=-1+2*x2^post_5, oldX1^0'=1, oldX2^0'=x1^post_5-x2^post_5, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, oldX5^0'=x2^post_6, x0^0'=2*x2^post_5, x1^0'=x1^post_5-x2^post_5, x2^0'=0, [ x2^post_5>=1 && 1<=1+x1^post_5-x2^post_5 ], cost: 3+4*x2^post_5 28: l6 -> l3 : oldX0^0'=-1+2*x2^post_5, oldX1^0'=1, oldX2^0'=x1^post_5-x2^post_5, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=2*x2^post_5, x1^0'=x1^post_5-x2^post_5, x2^0'=0, [ x2^post_5>=1 && 1<=1+x1^post_5-x2^post_5 ], cost: 3+4*x2^post_5 29: l6 -> l3 : oldX0^0'=-2+2*x1^0+x0^0, oldX1^0'=1, oldX2^0'=1-x1^0+x2^0, x0^0'=-1+2*x1^0+x0^0, x1^0'=1-x1^0+x2^0, x2^0'=0, [ -1+x1^0>=1 && 1<=2-x1^0+x2^0 ], cost: -1+4*x1^0 ### Computing asymptotic complexity ### Fully simplified ITS problem Start location: l6 22: l6 -> l3 : oldX0^0'=-1+2*x1^0+x0^0, oldX1^0'=1-x1^0+x2^0, oldX2^0'=0, x0^0'=2*x1^0+x0^0, x1^0'=0, x2^0'=-x1^0+x2^0, [ x1^0>=1 && 1<=1-x1^0+x2^0 ], cost: 2+4*x1^0 24: l6 -> l3 : oldX0^0'=-1+2*x1^post_5, oldX1^0'=1-x1^post_5+x2^post_5, oldX2^0'=0, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=2*x1^post_5, x1^0'=0, x2^0'=-x1^post_5+x2^post_5, [ x1^post_5>=1 && 1<=1-x1^post_5+x2^post_5 ], cost: 3+4*x1^post_5 25: l6 -> l3 : oldX0^0'=2*x2^0+x0^0, oldX1^0'=x1^0-x2^0, oldX2^0'=0, x0^0'=1+2*x2^0+x0^0, x1^0'=0, x2^0'=-1+x1^0-x2^0, [ x2^0>=1 && 1<=x1^0-x2^0 ], cost: 3+4*x2^0 26: l6 -> l3 : oldX0^0'=-1+2*x2^0+x0^0, oldX1^0'=1, oldX2^0'=x1^0-x2^0, x0^0'=2*x2^0+x0^0, x1^0'=x1^0-x2^0, x2^0'=0, [ x2^0>=1 && 1<=1+x1^0-x2^0 ], cost: 2+4*x2^0 28: l6 -> l3 : oldX0^0'=-1+2*x2^post_5, oldX1^0'=1, oldX2^0'=x1^post_5-x2^post_5, oldX3^0'=x1^post_5, oldX4^0'=x2^post_5, x0^0'=2*x2^post_5, x1^0'=x1^post_5-x2^post_5, x2^0'=0, [ x2^post_5>=1 && 1<=1+x1^post_5-x2^post_5 ], cost: 3+4*x2^post_5 29: l6 -> l3 : oldX0^0'=-2+2*x1^0+x0^0, oldX1^0'=1, oldX2^0'=1-x1^0+x2^0, x0^0'=-1+2*x1^0+x0^0, x1^0'=1-x1^0+x2^0, x2^0'=0, [ -1+x1^0>=1 && 1<=2-x1^0+x2^0 ], cost: -1+4*x1^0 Computing asymptotic complexity for rule 24 Resulting cost 0 has complexity: Unknown Computing asymptotic complexity for rule 28 Resulting cost 0 has complexity: Unknown Computing asymptotic complexity for rule 22 Resulting cost 0 has complexity: Unknown Computing asymptotic complexity for rule 25 Resulting cost 0 has complexity: Unknown Computing asymptotic complexity for rule 26 Resulting cost 0 has complexity: Unknown Computing asymptotic complexity for rule 29 Resulting cost 0 has complexity: Unknown Obtained the following overall complexity (w.r.t. the length of the input n): Complexity: Constant Cpx degree: 0 Solved cost: 1 Rule cost: 1 Rule guard: [ oldX0^0==oldX0^post_12 && oldX1^0==oldX1^post_12 && oldX2^0==oldX2^post_12 && oldX3^0==oldX3^post_12 && oldX4^0==oldX4^post_12 && oldX5^0==oldX5^post_12 && x0^0==x0^post_12 && x1^0==x1^post_12 && x2^0==x2^post_12 ] WORST_CASE(Omega(1),?)