NO ### Pre-processing the ITS problem ### Initial linear ITS problem Start location: l11 0: l0 -> l1 : Result_4^0'=Result_4^post_1, ___cil_tmp6_15^0'=___cil_tmp6_15^post_1, a_140^0'=a_140^post_1, a_16^0'=a_16^post_1, head_12^0'=head_12^post_1, i_11^0'=i_11^post_1, len_47^0'=len_47^post_1, length_10^0'=length_10^post_1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_1, t_17^0'=t_17^post_1, tmp_13^0'=tmp_13^post_1, tmp_20^0'=tmp_20^post_1, tmp___0_14^0'=tmp___0_14^post_1, x_18^0'=x_18^post_1, [ length_19^post_1==length_19^post_1 && head_12^post_1==0 && i_11^post_1==0 && Result_4^0==Result_4^post_1 && ___cil_tmp6_15^0==___cil_tmp6_15^post_1 && a_140^0==a_140^post_1 && a_16^0==a_16^post_1 && len_47^0==len_47^post_1 && length_10^0==length_10^post_1 && lt_21^0==lt_21^post_1 && t_17^0==t_17^post_1 && tmp_13^0==tmp_13^post_1 && tmp_20^0==tmp_20^post_1 && tmp___0_14^0==tmp___0_14^post_1 && x_18^0==x_18^post_1 ], cost: 1 1: l1 -> l2 : Result_4^0'=Result_4^post_2, ___cil_tmp6_15^0'=___cil_tmp6_15^post_2, a_140^0'=a_140^post_2, a_16^0'=a_16^post_2, head_12^0'=head_12^post_2, i_11^0'=i_11^post_2, len_47^0'=len_47^post_2, length_10^0'=length_10^post_2, length_19^0'=length_19^post_2, lt_21^0'=lt_21^post_2, t_17^0'=t_17^post_2, tmp_13^0'=tmp_13^post_2, tmp_20^0'=tmp_20^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=x_18^post_2, [ 0<=-2+length_10^0-i_11^0 && tmp___0_14^post_2==tmp___0_14^post_2 && tmp_13^post_2==tmp___0_14^post_2 && head_12^post_2==tmp_13^post_2 && i_11^post_2==1+i_11^0 && Result_4^0==Result_4^post_2 && ___cil_tmp6_15^0==___cil_tmp6_15^post_2 && a_140^0==a_140^post_2 && a_16^0==a_16^post_2 && len_47^0==len_47^post_2 && length_10^0==length_10^post_2 && length_19^0==length_19^post_2 && lt_21^0==lt_21^post_2 && t_17^0==t_17^post_2 && tmp_20^0==tmp_20^post_2 && x_18^0==x_18^post_2 ], cost: 1 2: l1 -> l3 : Result_4^0'=Result_4^post_3, ___cil_tmp6_15^0'=___cil_tmp6_15^post_3, a_140^0'=a_140^post_3, a_16^0'=a_16^post_3, head_12^0'=head_12^post_3, i_11^0'=i_11^post_3, len_47^0'=len_47^post_3, length_10^0'=length_10^post_3, length_19^0'=length_19^post_3, lt_21^0'=lt_21^post_3, t_17^0'=t_17^post_3, tmp_13^0'=tmp_13^post_3, tmp_20^0'=tmp_20^post_3, tmp___0_14^0'=tmp___0_14^post_3, x_18^0'=x_18^post_3, [ -1+length_10^0-i_11^0<=0 && ___cil_tmp6_15^post_3==head_12^0 && Result_4^1_1==___cil_tmp6_15^post_3 && tmp_20^post_3==Result_4^1_1 && Result_4^2_1==Result_4^2_1 && x_18^post_3==a_16^0 && x_18^post_3<=0 && 0<=x_18^post_3 && Result_4^3_1==Result_4^3_1 && Result_4^post_3==Result_4^post_3 && a_140^0==a_140^post_3 && a_16^0==a_16^post_3 && head_12^0==head_12^post_3 && i_11^0==i_11^post_3 && len_47^0==len_47^post_3 && length_10^0==length_10^post_3 && length_19^0==length_19^post_3 && lt_21^0==lt_21^post_3 && t_17^0==t_17^post_3 && tmp_13^0==tmp_13^post_3 && tmp___0_14^0==tmp___0_14^post_3 ], cost: 1 3: l2 -> l4 : Result_4^0'=Result_4^post_4, ___cil_tmp6_15^0'=___cil_tmp6_15^post_4, a_140^0'=a_140^post_4, a_16^0'=a_16^post_4, head_12^0'=head_12^post_4, i_11^0'=i_11^post_4, len_47^0'=len_47^post_4, length_10^0'=length_10^post_4, length_19^0'=length_19^post_4, lt_21^0'=lt_21^post_4, t_17^0'=t_17^post_4, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_20^post_4, tmp___0_14^0'=tmp___0_14^post_4, x_18^0'=x_18^post_4, [ 0<=len_47^0 && 0<=-2+length_10^0-i_11^0 && tmp___0_14^post_4==tmp___0_14^post_4 && tmp_13^post_4==tmp___0_14^post_4 && head_12^post_4==tmp_13^post_4 && i_11^post_4==1+i_11^0 && Result_4^0==Result_4^post_4 && ___cil_tmp6_15^0==___cil_tmp6_15^post_4 && a_140^0==a_140^post_4 && a_16^0==a_16^post_4 && len_47^0==len_47^post_4 && length_10^0==length_10^post_4 && length_19^0==length_19^post_4 && lt_21^0==lt_21^post_4 && t_17^0==t_17^post_4 && tmp_20^0==tmp_20^post_4 && x_18^0==x_18^post_4 ], cost: 1 5: l2 -> l6 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=___cil_tmp6_15^post_6, a_140^0'=a_140^post_6, a_16^0'=a_16^post_6, head_12^0'=head_12^post_6, i_11^0'=i_11^post_6, len_47^0'=len_47^post_6, length_10^0'=length_10^post_6, length_19^0'=length_19^post_6, lt_21^0'=lt_21^post_6, t_17^0'=t_17^post_6, tmp_13^0'=tmp_13^post_6, tmp_20^0'=tmp_20^post_6, tmp___0_14^0'=tmp___0_14^post_6, x_18^0'=x_18^post_6, [ 0<=len_47^0 && -1+length_10^0-i_11^0<=0 && ___cil_tmp6_15^post_6==head_12^0 && Result_4^1_2==___cil_tmp6_15^post_6 && 0<=len_47^0 && tmp_20^post_6==Result_4^1_2 && Result_4^post_6==Result_4^post_6 && 0<=len_47^0 && 0<=len_47^0 && 0<=len_47^0 && x_18^post_6==a_16^0 && 0<=len_47^0 && a_140^0==a_140^post_6 && a_16^0==a_16^post_6 && head_12^0==head_12^post_6 && i_11^0==i_11^post_6 && len_47^0==len_47^post_6 && length_10^0==length_10^post_6 && length_19^0==length_19^post_6 && lt_21^0==lt_21^post_6 && t_17^0==t_17^post_6 && tmp_13^0==tmp_13^post_6 && tmp___0_14^0==tmp___0_14^post_6 ], cost: 1 4: l4 -> l2 : Result_4^0'=Result_4^post_5, ___cil_tmp6_15^0'=___cil_tmp6_15^post_5, a_140^0'=a_140^post_5, a_16^0'=a_16^post_5, head_12^0'=head_12^post_5, i_11^0'=i_11^post_5, len_47^0'=len_47^post_5, length_10^0'=length_10^post_5, length_19^0'=length_19^post_5, lt_21^0'=lt_21^post_5, t_17^0'=t_17^post_5, tmp_13^0'=tmp_13^post_5, tmp_20^0'=tmp_20^post_5, tmp___0_14^0'=tmp___0_14^post_5, x_18^0'=x_18^post_5, [ Result_4^0==Result_4^post_5 && ___cil_tmp6_15^0==___cil_tmp6_15^post_5 && a_140^0==a_140^post_5 && a_16^0==a_16^post_5 && head_12^0==head_12^post_5 && i_11^0==i_11^post_5 && len_47^0==len_47^post_5 && length_10^0==length_10^post_5 && length_19^0==length_19^post_5 && lt_21^0==lt_21^post_5 && t_17^0==t_17^post_5 && tmp_13^0==tmp_13^post_5 && tmp_20^0==tmp_20^post_5 && tmp___0_14^0==tmp___0_14^post_5 && x_18^0==x_18^post_5 ], cost: 1 6: l6 -> l7 : Result_4^0'=Result_4^post_7, ___cil_tmp6_15^0'=___cil_tmp6_15^post_7, a_140^0'=a_140^post_7, a_16^0'=a_16^post_7, head_12^0'=head_12^post_7, i_11^0'=i_11^post_7, len_47^0'=len_47^post_7, length_10^0'=length_10^post_7, length_19^0'=length_19^post_7, lt_21^0'=lt_21^post_7, t_17^0'=t_17^post_7, tmp_13^0'=tmp_13^post_7, tmp_20^0'=tmp_20^post_7, tmp___0_14^0'=tmp___0_14^post_7, x_18^0'=x_18^post_7, [ 1+x_18^0<=0 && Result_4^0==Result_4^post_7 && ___cil_tmp6_15^0==___cil_tmp6_15^post_7 && a_140^0==a_140^post_7 && a_16^0==a_16^post_7 && head_12^0==head_12^post_7 && i_11^0==i_11^post_7 && len_47^0==len_47^post_7 && length_10^0==length_10^post_7 && length_19^0==length_19^post_7 && lt_21^0==lt_21^post_7 && t_17^0==t_17^post_7 && tmp_13^0==tmp_13^post_7 && tmp_20^0==tmp_20^post_7 && tmp___0_14^0==tmp___0_14^post_7 && x_18^0==x_18^post_7 ], cost: 1 7: l6 -> l7 : Result_4^0'=Result_4^post_8, ___cil_tmp6_15^0'=___cil_tmp6_15^post_8, a_140^0'=a_140^post_8, a_16^0'=a_16^post_8, head_12^0'=head_12^post_8, i_11^0'=i_11^post_8, len_47^0'=len_47^post_8, length_10^0'=length_10^post_8, length_19^0'=length_19^post_8, lt_21^0'=lt_21^post_8, t_17^0'=t_17^post_8, tmp_13^0'=tmp_13^post_8, tmp_20^0'=tmp_20^post_8, tmp___0_14^0'=tmp___0_14^post_8, x_18^0'=x_18^post_8, [ 1<=x_18^0 && Result_4^0==Result_4^post_8 && ___cil_tmp6_15^0==___cil_tmp6_15^post_8 && a_140^0==a_140^post_8 && a_16^0==a_16^post_8 && head_12^0==head_12^post_8 && i_11^0==i_11^post_8 && len_47^0==len_47^post_8 && length_10^0==length_10^post_8 && length_19^0==length_19^post_8 && lt_21^0==lt_21^post_8 && t_17^0==t_17^post_8 && tmp_13^0==tmp_13^post_8 && tmp_20^0==tmp_20^post_8 && tmp___0_14^0==tmp___0_14^post_8 && x_18^0==x_18^post_8 ], cost: 1 8: l7 -> l5 : Result_4^0'=Result_4^post_9, ___cil_tmp6_15^0'=___cil_tmp6_15^post_9, a_140^0'=a_140^post_9, a_16^0'=a_16^post_9, head_12^0'=head_12^post_9, i_11^0'=i_11^post_9, len_47^0'=len_47^post_9, length_10^0'=length_10^post_9, length_19^0'=length_19^post_9, lt_21^0'=lt_21^post_9, t_17^0'=t_17^post_9, tmp_13^0'=tmp_13^post_9, tmp_20^0'=tmp_20^post_9, tmp___0_14^0'=tmp___0_14^post_9, x_18^0'=x_18^post_9, [ t_17^post_9==x_18^0 && lt_21^1_1==lt_21^1_1 && x_18^post_9==lt_21^1_1 && lt_21^post_9==lt_21^post_9 && Result_4^0==Result_4^post_9 && ___cil_tmp6_15^0==___cil_tmp6_15^post_9 && a_140^0==a_140^post_9 && a_16^0==a_16^post_9 && head_12^0==head_12^post_9 && i_11^0==i_11^post_9 && len_47^0==len_47^post_9 && length_10^0==length_10^post_9 && length_19^0==length_19^post_9 && tmp_13^0==tmp_13^post_9 && tmp_20^0==tmp_20^post_9 && tmp___0_14^0==tmp___0_14^post_9 ], cost: 1 9: l5 -> l3 : Result_4^0'=Result_4^post_10, ___cil_tmp6_15^0'=___cil_tmp6_15^post_10, a_140^0'=a_140^post_10, a_16^0'=a_16^post_10, head_12^0'=head_12^post_10, i_11^0'=i_11^post_10, len_47^0'=len_47^post_10, length_10^0'=length_10^post_10, length_19^0'=length_19^post_10, lt_21^0'=lt_21^post_10, t_17^0'=t_17^post_10, tmp_13^0'=tmp_13^post_10, tmp_20^0'=tmp_20^post_10, tmp___0_14^0'=tmp___0_14^post_10, x_18^0'=x_18^post_10, [ 0<=a_140^0 && x_18^0<=0 && 0<=x_18^0 && Result_4^1_3==Result_4^1_3 && Result_4^post_10==Result_4^post_10 && ___cil_tmp6_15^0==___cil_tmp6_15^post_10 && a_140^0==a_140^post_10 && a_16^0==a_16^post_10 && head_12^0==head_12^post_10 && i_11^0==i_11^post_10 && len_47^0==len_47^post_10 && length_10^0==length_10^post_10 && length_19^0==length_19^post_10 && lt_21^0==lt_21^post_10 && t_17^0==t_17^post_10 && tmp_13^0==tmp_13^post_10 && tmp_20^0==tmp_20^post_10 && tmp___0_14^0==tmp___0_14^post_10 && x_18^0==x_18^post_10 ], cost: 1 10: l5 -> l9 : Result_4^0'=Result_4^post_11, ___cil_tmp6_15^0'=___cil_tmp6_15^post_11, a_140^0'=a_140^post_11, a_16^0'=a_16^post_11, head_12^0'=head_12^post_11, i_11^0'=i_11^post_11, len_47^0'=len_47^post_11, length_10^0'=length_10^post_11, length_19^0'=length_19^post_11, lt_21^0'=lt_21^post_11, t_17^0'=t_17^post_11, tmp_13^0'=tmp_13^post_11, tmp_20^0'=tmp_20^post_11, tmp___0_14^0'=tmp___0_14^post_11, x_18^0'=x_18^post_11, [ 0<=a_140^0 && Result_4^0==Result_4^post_11 && ___cil_tmp6_15^0==___cil_tmp6_15^post_11 && a_140^0==a_140^post_11 && a_16^0==a_16^post_11 && head_12^0==head_12^post_11 && i_11^0==i_11^post_11 && len_47^0==len_47^post_11 && length_10^0==length_10^post_11 && length_19^0==length_19^post_11 && lt_21^0==lt_21^post_11 && t_17^0==t_17^post_11 && tmp_13^0==tmp_13^post_11 && tmp_20^0==tmp_20^post_11 && tmp___0_14^0==tmp___0_14^post_11 && x_18^0==x_18^post_11 ], cost: 1 11: l9 -> l10 : Result_4^0'=Result_4^post_12, ___cil_tmp6_15^0'=___cil_tmp6_15^post_12, a_140^0'=a_140^post_12, a_16^0'=a_16^post_12, head_12^0'=head_12^post_12, i_11^0'=i_11^post_12, len_47^0'=len_47^post_12, length_10^0'=length_10^post_12, length_19^0'=length_19^post_12, lt_21^0'=lt_21^post_12, t_17^0'=t_17^post_12, tmp_13^0'=tmp_13^post_12, tmp_20^0'=tmp_20^post_12, tmp___0_14^0'=tmp___0_14^post_12, x_18^0'=x_18^post_12, [ 1+x_18^0<=0 && Result_4^0==Result_4^post_12 && ___cil_tmp6_15^0==___cil_tmp6_15^post_12 && a_140^0==a_140^post_12 && a_16^0==a_16^post_12 && head_12^0==head_12^post_12 && i_11^0==i_11^post_12 && len_47^0==len_47^post_12 && length_10^0==length_10^post_12 && length_19^0==length_19^post_12 && lt_21^0==lt_21^post_12 && t_17^0==t_17^post_12 && tmp_13^0==tmp_13^post_12 && tmp_20^0==tmp_20^post_12 && tmp___0_14^0==tmp___0_14^post_12 && x_18^0==x_18^post_12 ], cost: 1 12: l9 -> l10 : Result_4^0'=Result_4^post_13, ___cil_tmp6_15^0'=___cil_tmp6_15^post_13, a_140^0'=a_140^post_13, a_16^0'=a_16^post_13, head_12^0'=head_12^post_13, i_11^0'=i_11^post_13, len_47^0'=len_47^post_13, length_10^0'=length_10^post_13, length_19^0'=length_19^post_13, lt_21^0'=lt_21^post_13, t_17^0'=t_17^post_13, tmp_13^0'=tmp_13^post_13, tmp_20^0'=tmp_20^post_13, tmp___0_14^0'=tmp___0_14^post_13, x_18^0'=x_18^post_13, [ 1<=x_18^0 && Result_4^0==Result_4^post_13 && ___cil_tmp6_15^0==___cil_tmp6_15^post_13 && a_140^0==a_140^post_13 && a_16^0==a_16^post_13 && head_12^0==head_12^post_13 && i_11^0==i_11^post_13 && len_47^0==len_47^post_13 && length_10^0==length_10^post_13 && length_19^0==length_19^post_13 && lt_21^0==lt_21^post_13 && t_17^0==t_17^post_13 && tmp_13^0==tmp_13^post_13 && tmp_20^0==tmp_20^post_13 && tmp___0_14^0==tmp___0_14^post_13 && x_18^0==x_18^post_13 ], cost: 1 13: l10 -> l8 : Result_4^0'=Result_4^post_14, ___cil_tmp6_15^0'=___cil_tmp6_15^post_14, a_140^0'=a_140^post_14, a_16^0'=a_16^post_14, head_12^0'=head_12^post_14, i_11^0'=i_11^post_14, len_47^0'=len_47^post_14, length_10^0'=length_10^post_14, length_19^0'=length_19^post_14, lt_21^0'=lt_21^post_14, t_17^0'=t_17^post_14, tmp_13^0'=tmp_13^post_14, tmp_20^0'=tmp_20^post_14, tmp___0_14^0'=tmp___0_14^post_14, x_18^0'=x_18^post_14, [ t_17^post_14==x_18^0 && lt_21^1_2==lt_21^1_2 && x_18^post_14==lt_21^1_2 && lt_21^post_14==lt_21^post_14 && Result_4^0==Result_4^post_14 && ___cil_tmp6_15^0==___cil_tmp6_15^post_14 && a_140^0==a_140^post_14 && a_16^0==a_16^post_14 && head_12^0==head_12^post_14 && i_11^0==i_11^post_14 && len_47^0==len_47^post_14 && length_10^0==length_10^post_14 && length_19^0==length_19^post_14 && tmp_13^0==tmp_13^post_14 && tmp_20^0==tmp_20^post_14 && tmp___0_14^0==tmp___0_14^post_14 ], cost: 1 14: l8 -> l5 : Result_4^0'=Result_4^post_15, ___cil_tmp6_15^0'=___cil_tmp6_15^post_15, a_140^0'=a_140^post_15, a_16^0'=a_16^post_15, head_12^0'=head_12^post_15, i_11^0'=i_11^post_15, len_47^0'=len_47^post_15, length_10^0'=length_10^post_15, length_19^0'=length_19^post_15, lt_21^0'=lt_21^post_15, t_17^0'=t_17^post_15, tmp_13^0'=tmp_13^post_15, tmp_20^0'=tmp_20^post_15, tmp___0_14^0'=tmp___0_14^post_15, x_18^0'=x_18^post_15, [ Result_4^0==Result_4^post_15 && ___cil_tmp6_15^0==___cil_tmp6_15^post_15 && a_140^0==a_140^post_15 && a_16^0==a_16^post_15 && head_12^0==head_12^post_15 && i_11^0==i_11^post_15 && len_47^0==len_47^post_15 && length_10^0==length_10^post_15 && length_19^0==length_19^post_15 && lt_21^0==lt_21^post_15 && t_17^0==t_17^post_15 && tmp_13^0==tmp_13^post_15 && tmp_20^0==tmp_20^post_15 && tmp___0_14^0==tmp___0_14^post_15 && x_18^0==x_18^post_15 ], cost: 1 15: l11 -> l0 : Result_4^0'=Result_4^post_16, ___cil_tmp6_15^0'=___cil_tmp6_15^post_16, a_140^0'=a_140^post_16, a_16^0'=a_16^post_16, head_12^0'=head_12^post_16, i_11^0'=i_11^post_16, len_47^0'=len_47^post_16, length_10^0'=length_10^post_16, length_19^0'=length_19^post_16, lt_21^0'=lt_21^post_16, t_17^0'=t_17^post_16, tmp_13^0'=tmp_13^post_16, tmp_20^0'=tmp_20^post_16, tmp___0_14^0'=tmp___0_14^post_16, x_18^0'=x_18^post_16, [ Result_4^0==Result_4^post_16 && ___cil_tmp6_15^0==___cil_tmp6_15^post_16 && a_140^0==a_140^post_16 && a_16^0==a_16^post_16 && head_12^0==head_12^post_16 && i_11^0==i_11^post_16 && len_47^0==len_47^post_16 && length_10^0==length_10^post_16 && length_19^0==length_19^post_16 && lt_21^0==lt_21^post_16 && t_17^0==t_17^post_16 && tmp_13^0==tmp_13^post_16 && tmp_20^0==tmp_20^post_16 && tmp___0_14^0==tmp___0_14^post_16 && x_18^0==x_18^post_16 ], cost: 1 Checking for constant complexity: The following rule is satisfiable with cost >= 1, yielding constant complexity: 15: l11 -> l0 : Result_4^0'=Result_4^post_16, ___cil_tmp6_15^0'=___cil_tmp6_15^post_16, a_140^0'=a_140^post_16, a_16^0'=a_16^post_16, head_12^0'=head_12^post_16, i_11^0'=i_11^post_16, len_47^0'=len_47^post_16, length_10^0'=length_10^post_16, length_19^0'=length_19^post_16, lt_21^0'=lt_21^post_16, t_17^0'=t_17^post_16, tmp_13^0'=tmp_13^post_16, tmp_20^0'=tmp_20^post_16, tmp___0_14^0'=tmp___0_14^post_16, x_18^0'=x_18^post_16, [ Result_4^0==Result_4^post_16 && ___cil_tmp6_15^0==___cil_tmp6_15^post_16 && a_140^0==a_140^post_16 && a_16^0==a_16^post_16 && head_12^0==head_12^post_16 && i_11^0==i_11^post_16 && len_47^0==len_47^post_16 && length_10^0==length_10^post_16 && length_19^0==length_19^post_16 && lt_21^0==lt_21^post_16 && t_17^0==t_17^post_16 && tmp_13^0==tmp_13^post_16 && tmp_20^0==tmp_20^post_16 && tmp___0_14^0==tmp___0_14^post_16 && x_18^0==x_18^post_16 ], cost: 1 Removed unreachable and leaf rules: Start location: l11 0: l0 -> l1 : Result_4^0'=Result_4^post_1, ___cil_tmp6_15^0'=___cil_tmp6_15^post_1, a_140^0'=a_140^post_1, a_16^0'=a_16^post_1, head_12^0'=head_12^post_1, i_11^0'=i_11^post_1, len_47^0'=len_47^post_1, length_10^0'=length_10^post_1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_1, t_17^0'=t_17^post_1, tmp_13^0'=tmp_13^post_1, tmp_20^0'=tmp_20^post_1, tmp___0_14^0'=tmp___0_14^post_1, x_18^0'=x_18^post_1, [ length_19^post_1==length_19^post_1 && head_12^post_1==0 && i_11^post_1==0 && Result_4^0==Result_4^post_1 && ___cil_tmp6_15^0==___cil_tmp6_15^post_1 && a_140^0==a_140^post_1 && a_16^0==a_16^post_1 && len_47^0==len_47^post_1 && length_10^0==length_10^post_1 && lt_21^0==lt_21^post_1 && t_17^0==t_17^post_1 && tmp_13^0==tmp_13^post_1 && tmp_20^0==tmp_20^post_1 && tmp___0_14^0==tmp___0_14^post_1 && x_18^0==x_18^post_1 ], cost: 1 1: l1 -> l2 : Result_4^0'=Result_4^post_2, ___cil_tmp6_15^0'=___cil_tmp6_15^post_2, a_140^0'=a_140^post_2, a_16^0'=a_16^post_2, head_12^0'=head_12^post_2, i_11^0'=i_11^post_2, len_47^0'=len_47^post_2, length_10^0'=length_10^post_2, length_19^0'=length_19^post_2, lt_21^0'=lt_21^post_2, t_17^0'=t_17^post_2, tmp_13^0'=tmp_13^post_2, tmp_20^0'=tmp_20^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=x_18^post_2, [ 0<=-2+length_10^0-i_11^0 && tmp___0_14^post_2==tmp___0_14^post_2 && tmp_13^post_2==tmp___0_14^post_2 && head_12^post_2==tmp_13^post_2 && i_11^post_2==1+i_11^0 && Result_4^0==Result_4^post_2 && ___cil_tmp6_15^0==___cil_tmp6_15^post_2 && a_140^0==a_140^post_2 && a_16^0==a_16^post_2 && len_47^0==len_47^post_2 && length_10^0==length_10^post_2 && length_19^0==length_19^post_2 && lt_21^0==lt_21^post_2 && t_17^0==t_17^post_2 && tmp_20^0==tmp_20^post_2 && x_18^0==x_18^post_2 ], cost: 1 3: l2 -> l4 : Result_4^0'=Result_4^post_4, ___cil_tmp6_15^0'=___cil_tmp6_15^post_4, a_140^0'=a_140^post_4, a_16^0'=a_16^post_4, head_12^0'=head_12^post_4, i_11^0'=i_11^post_4, len_47^0'=len_47^post_4, length_10^0'=length_10^post_4, length_19^0'=length_19^post_4, lt_21^0'=lt_21^post_4, t_17^0'=t_17^post_4, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_20^post_4, tmp___0_14^0'=tmp___0_14^post_4, x_18^0'=x_18^post_4, [ 0<=len_47^0 && 0<=-2+length_10^0-i_11^0 && tmp___0_14^post_4==tmp___0_14^post_4 && tmp_13^post_4==tmp___0_14^post_4 && head_12^post_4==tmp_13^post_4 && i_11^post_4==1+i_11^0 && Result_4^0==Result_4^post_4 && ___cil_tmp6_15^0==___cil_tmp6_15^post_4 && a_140^0==a_140^post_4 && a_16^0==a_16^post_4 && len_47^0==len_47^post_4 && length_10^0==length_10^post_4 && length_19^0==length_19^post_4 && lt_21^0==lt_21^post_4 && t_17^0==t_17^post_4 && tmp_20^0==tmp_20^post_4 && x_18^0==x_18^post_4 ], cost: 1 5: l2 -> l6 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=___cil_tmp6_15^post_6, a_140^0'=a_140^post_6, a_16^0'=a_16^post_6, head_12^0'=head_12^post_6, i_11^0'=i_11^post_6, len_47^0'=len_47^post_6, length_10^0'=length_10^post_6, length_19^0'=length_19^post_6, lt_21^0'=lt_21^post_6, t_17^0'=t_17^post_6, tmp_13^0'=tmp_13^post_6, tmp_20^0'=tmp_20^post_6, tmp___0_14^0'=tmp___0_14^post_6, x_18^0'=x_18^post_6, [ 0<=len_47^0 && -1+length_10^0-i_11^0<=0 && ___cil_tmp6_15^post_6==head_12^0 && Result_4^1_2==___cil_tmp6_15^post_6 && 0<=len_47^0 && tmp_20^post_6==Result_4^1_2 && Result_4^post_6==Result_4^post_6 && 0<=len_47^0 && 0<=len_47^0 && 0<=len_47^0 && x_18^post_6==a_16^0 && 0<=len_47^0 && a_140^0==a_140^post_6 && a_16^0==a_16^post_6 && head_12^0==head_12^post_6 && i_11^0==i_11^post_6 && len_47^0==len_47^post_6 && length_10^0==length_10^post_6 && length_19^0==length_19^post_6 && lt_21^0==lt_21^post_6 && t_17^0==t_17^post_6 && tmp_13^0==tmp_13^post_6 && tmp___0_14^0==tmp___0_14^post_6 ], cost: 1 4: l4 -> l2 : Result_4^0'=Result_4^post_5, ___cil_tmp6_15^0'=___cil_tmp6_15^post_5, a_140^0'=a_140^post_5, a_16^0'=a_16^post_5, head_12^0'=head_12^post_5, i_11^0'=i_11^post_5, len_47^0'=len_47^post_5, length_10^0'=length_10^post_5, length_19^0'=length_19^post_5, lt_21^0'=lt_21^post_5, t_17^0'=t_17^post_5, tmp_13^0'=tmp_13^post_5, tmp_20^0'=tmp_20^post_5, tmp___0_14^0'=tmp___0_14^post_5, x_18^0'=x_18^post_5, [ Result_4^0==Result_4^post_5 && ___cil_tmp6_15^0==___cil_tmp6_15^post_5 && a_140^0==a_140^post_5 && a_16^0==a_16^post_5 && head_12^0==head_12^post_5 && i_11^0==i_11^post_5 && len_47^0==len_47^post_5 && length_10^0==length_10^post_5 && length_19^0==length_19^post_5 && lt_21^0==lt_21^post_5 && t_17^0==t_17^post_5 && tmp_13^0==tmp_13^post_5 && tmp_20^0==tmp_20^post_5 && tmp___0_14^0==tmp___0_14^post_5 && x_18^0==x_18^post_5 ], cost: 1 6: l6 -> l7 : Result_4^0'=Result_4^post_7, ___cil_tmp6_15^0'=___cil_tmp6_15^post_7, a_140^0'=a_140^post_7, a_16^0'=a_16^post_7, head_12^0'=head_12^post_7, i_11^0'=i_11^post_7, len_47^0'=len_47^post_7, length_10^0'=length_10^post_7, length_19^0'=length_19^post_7, lt_21^0'=lt_21^post_7, t_17^0'=t_17^post_7, tmp_13^0'=tmp_13^post_7, tmp_20^0'=tmp_20^post_7, tmp___0_14^0'=tmp___0_14^post_7, x_18^0'=x_18^post_7, [ 1+x_18^0<=0 && Result_4^0==Result_4^post_7 && ___cil_tmp6_15^0==___cil_tmp6_15^post_7 && a_140^0==a_140^post_7 && a_16^0==a_16^post_7 && head_12^0==head_12^post_7 && i_11^0==i_11^post_7 && len_47^0==len_47^post_7 && length_10^0==length_10^post_7 && length_19^0==length_19^post_7 && lt_21^0==lt_21^post_7 && t_17^0==t_17^post_7 && tmp_13^0==tmp_13^post_7 && tmp_20^0==tmp_20^post_7 && tmp___0_14^0==tmp___0_14^post_7 && x_18^0==x_18^post_7 ], cost: 1 7: l6 -> l7 : Result_4^0'=Result_4^post_8, ___cil_tmp6_15^0'=___cil_tmp6_15^post_8, a_140^0'=a_140^post_8, a_16^0'=a_16^post_8, head_12^0'=head_12^post_8, i_11^0'=i_11^post_8, len_47^0'=len_47^post_8, length_10^0'=length_10^post_8, length_19^0'=length_19^post_8, lt_21^0'=lt_21^post_8, t_17^0'=t_17^post_8, tmp_13^0'=tmp_13^post_8, tmp_20^0'=tmp_20^post_8, tmp___0_14^0'=tmp___0_14^post_8, x_18^0'=x_18^post_8, [ 1<=x_18^0 && Result_4^0==Result_4^post_8 && ___cil_tmp6_15^0==___cil_tmp6_15^post_8 && a_140^0==a_140^post_8 && a_16^0==a_16^post_8 && head_12^0==head_12^post_8 && i_11^0==i_11^post_8 && len_47^0==len_47^post_8 && length_10^0==length_10^post_8 && length_19^0==length_19^post_8 && lt_21^0==lt_21^post_8 && t_17^0==t_17^post_8 && tmp_13^0==tmp_13^post_8 && tmp_20^0==tmp_20^post_8 && tmp___0_14^0==tmp___0_14^post_8 && x_18^0==x_18^post_8 ], cost: 1 8: l7 -> l5 : Result_4^0'=Result_4^post_9, ___cil_tmp6_15^0'=___cil_tmp6_15^post_9, a_140^0'=a_140^post_9, a_16^0'=a_16^post_9, head_12^0'=head_12^post_9, i_11^0'=i_11^post_9, len_47^0'=len_47^post_9, length_10^0'=length_10^post_9, length_19^0'=length_19^post_9, lt_21^0'=lt_21^post_9, t_17^0'=t_17^post_9, tmp_13^0'=tmp_13^post_9, tmp_20^0'=tmp_20^post_9, tmp___0_14^0'=tmp___0_14^post_9, x_18^0'=x_18^post_9, [ t_17^post_9==x_18^0 && lt_21^1_1==lt_21^1_1 && x_18^post_9==lt_21^1_1 && lt_21^post_9==lt_21^post_9 && Result_4^0==Result_4^post_9 && ___cil_tmp6_15^0==___cil_tmp6_15^post_9 && a_140^0==a_140^post_9 && a_16^0==a_16^post_9 && head_12^0==head_12^post_9 && i_11^0==i_11^post_9 && len_47^0==len_47^post_9 && length_10^0==length_10^post_9 && length_19^0==length_19^post_9 && tmp_13^0==tmp_13^post_9 && tmp_20^0==tmp_20^post_9 && tmp___0_14^0==tmp___0_14^post_9 ], cost: 1 10: l5 -> l9 : Result_4^0'=Result_4^post_11, ___cil_tmp6_15^0'=___cil_tmp6_15^post_11, a_140^0'=a_140^post_11, a_16^0'=a_16^post_11, head_12^0'=head_12^post_11, i_11^0'=i_11^post_11, len_47^0'=len_47^post_11, length_10^0'=length_10^post_11, length_19^0'=length_19^post_11, lt_21^0'=lt_21^post_11, t_17^0'=t_17^post_11, tmp_13^0'=tmp_13^post_11, tmp_20^0'=tmp_20^post_11, tmp___0_14^0'=tmp___0_14^post_11, x_18^0'=x_18^post_11, [ 0<=a_140^0 && Result_4^0==Result_4^post_11 && ___cil_tmp6_15^0==___cil_tmp6_15^post_11 && a_140^0==a_140^post_11 && a_16^0==a_16^post_11 && head_12^0==head_12^post_11 && i_11^0==i_11^post_11 && len_47^0==len_47^post_11 && length_10^0==length_10^post_11 && length_19^0==length_19^post_11 && lt_21^0==lt_21^post_11 && t_17^0==t_17^post_11 && tmp_13^0==tmp_13^post_11 && tmp_20^0==tmp_20^post_11 && tmp___0_14^0==tmp___0_14^post_11 && x_18^0==x_18^post_11 ], cost: 1 11: l9 -> l10 : Result_4^0'=Result_4^post_12, ___cil_tmp6_15^0'=___cil_tmp6_15^post_12, a_140^0'=a_140^post_12, a_16^0'=a_16^post_12, head_12^0'=head_12^post_12, i_11^0'=i_11^post_12, len_47^0'=len_47^post_12, length_10^0'=length_10^post_12, length_19^0'=length_19^post_12, lt_21^0'=lt_21^post_12, t_17^0'=t_17^post_12, tmp_13^0'=tmp_13^post_12, tmp_20^0'=tmp_20^post_12, tmp___0_14^0'=tmp___0_14^post_12, x_18^0'=x_18^post_12, [ 1+x_18^0<=0 && Result_4^0==Result_4^post_12 && ___cil_tmp6_15^0==___cil_tmp6_15^post_12 && a_140^0==a_140^post_12 && a_16^0==a_16^post_12 && head_12^0==head_12^post_12 && i_11^0==i_11^post_12 && len_47^0==len_47^post_12 && length_10^0==length_10^post_12 && length_19^0==length_19^post_12 && lt_21^0==lt_21^post_12 && t_17^0==t_17^post_12 && tmp_13^0==tmp_13^post_12 && tmp_20^0==tmp_20^post_12 && tmp___0_14^0==tmp___0_14^post_12 && x_18^0==x_18^post_12 ], cost: 1 12: l9 -> l10 : Result_4^0'=Result_4^post_13, ___cil_tmp6_15^0'=___cil_tmp6_15^post_13, a_140^0'=a_140^post_13, a_16^0'=a_16^post_13, head_12^0'=head_12^post_13, i_11^0'=i_11^post_13, len_47^0'=len_47^post_13, length_10^0'=length_10^post_13, length_19^0'=length_19^post_13, lt_21^0'=lt_21^post_13, t_17^0'=t_17^post_13, tmp_13^0'=tmp_13^post_13, tmp_20^0'=tmp_20^post_13, tmp___0_14^0'=tmp___0_14^post_13, x_18^0'=x_18^post_13, [ 1<=x_18^0 && Result_4^0==Result_4^post_13 && ___cil_tmp6_15^0==___cil_tmp6_15^post_13 && a_140^0==a_140^post_13 && a_16^0==a_16^post_13 && head_12^0==head_12^post_13 && i_11^0==i_11^post_13 && len_47^0==len_47^post_13 && length_10^0==length_10^post_13 && length_19^0==length_19^post_13 && lt_21^0==lt_21^post_13 && t_17^0==t_17^post_13 && tmp_13^0==tmp_13^post_13 && tmp_20^0==tmp_20^post_13 && tmp___0_14^0==tmp___0_14^post_13 && x_18^0==x_18^post_13 ], cost: 1 13: l10 -> l8 : Result_4^0'=Result_4^post_14, ___cil_tmp6_15^0'=___cil_tmp6_15^post_14, a_140^0'=a_140^post_14, a_16^0'=a_16^post_14, head_12^0'=head_12^post_14, i_11^0'=i_11^post_14, len_47^0'=len_47^post_14, length_10^0'=length_10^post_14, length_19^0'=length_19^post_14, lt_21^0'=lt_21^post_14, t_17^0'=t_17^post_14, tmp_13^0'=tmp_13^post_14, tmp_20^0'=tmp_20^post_14, tmp___0_14^0'=tmp___0_14^post_14, x_18^0'=x_18^post_14, [ t_17^post_14==x_18^0 && lt_21^1_2==lt_21^1_2 && x_18^post_14==lt_21^1_2 && lt_21^post_14==lt_21^post_14 && Result_4^0==Result_4^post_14 && ___cil_tmp6_15^0==___cil_tmp6_15^post_14 && a_140^0==a_140^post_14 && a_16^0==a_16^post_14 && head_12^0==head_12^post_14 && i_11^0==i_11^post_14 && len_47^0==len_47^post_14 && length_10^0==length_10^post_14 && length_19^0==length_19^post_14 && tmp_13^0==tmp_13^post_14 && tmp_20^0==tmp_20^post_14 && tmp___0_14^0==tmp___0_14^post_14 ], cost: 1 14: l8 -> l5 : Result_4^0'=Result_4^post_15, ___cil_tmp6_15^0'=___cil_tmp6_15^post_15, a_140^0'=a_140^post_15, a_16^0'=a_16^post_15, head_12^0'=head_12^post_15, i_11^0'=i_11^post_15, len_47^0'=len_47^post_15, length_10^0'=length_10^post_15, length_19^0'=length_19^post_15, lt_21^0'=lt_21^post_15, t_17^0'=t_17^post_15, tmp_13^0'=tmp_13^post_15, tmp_20^0'=tmp_20^post_15, tmp___0_14^0'=tmp___0_14^post_15, x_18^0'=x_18^post_15, [ Result_4^0==Result_4^post_15 && ___cil_tmp6_15^0==___cil_tmp6_15^post_15 && a_140^0==a_140^post_15 && a_16^0==a_16^post_15 && head_12^0==head_12^post_15 && i_11^0==i_11^post_15 && len_47^0==len_47^post_15 && length_10^0==length_10^post_15 && length_19^0==length_19^post_15 && lt_21^0==lt_21^post_15 && t_17^0==t_17^post_15 && tmp_13^0==tmp_13^post_15 && tmp_20^0==tmp_20^post_15 && tmp___0_14^0==tmp___0_14^post_15 && x_18^0==x_18^post_15 ], cost: 1 15: l11 -> l0 : Result_4^0'=Result_4^post_16, ___cil_tmp6_15^0'=___cil_tmp6_15^post_16, a_140^0'=a_140^post_16, a_16^0'=a_16^post_16, head_12^0'=head_12^post_16, i_11^0'=i_11^post_16, len_47^0'=len_47^post_16, length_10^0'=length_10^post_16, length_19^0'=length_19^post_16, lt_21^0'=lt_21^post_16, t_17^0'=t_17^post_16, tmp_13^0'=tmp_13^post_16, tmp_20^0'=tmp_20^post_16, tmp___0_14^0'=tmp___0_14^post_16, x_18^0'=x_18^post_16, [ Result_4^0==Result_4^post_16 && ___cil_tmp6_15^0==___cil_tmp6_15^post_16 && a_140^0==a_140^post_16 && a_16^0==a_16^post_16 && head_12^0==head_12^post_16 && i_11^0==i_11^post_16 && len_47^0==len_47^post_16 && length_10^0==length_10^post_16 && length_19^0==length_19^post_16 && lt_21^0==lt_21^post_16 && t_17^0==t_17^post_16 && tmp_13^0==tmp_13^post_16 && tmp_20^0==tmp_20^post_16 && tmp___0_14^0==tmp___0_14^post_16 && x_18^0==x_18^post_16 ], cost: 1 Simplified all rules, resulting in: Start location: l11 0: l0 -> l1 : head_12^0'=0, i_11^0'=0, length_19^0'=length_19^post_1, [], cost: 1 1: l1 -> l2 : head_12^0'=tmp___0_14^post_2, i_11^0'=1+i_11^0, tmp_13^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, [ 0<=-2+length_10^0-i_11^0 ], cost: 1 3: l2 -> l4 : head_12^0'=tmp_13^post_4, i_11^0'=1+i_11^0, tmp_13^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, [ 0<=len_47^0 && 0<=-2+length_10^0-i_11^0 ], cost: 1 5: l2 -> l6 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=head_12^0, tmp_20^0'=head_12^0, x_18^0'=a_16^0, [ 0<=len_47^0 && -1+length_10^0-i_11^0<=0 ], cost: 1 4: l4 -> l2 : [], cost: 1 6: l6 -> l7 : [ 1+x_18^0<=0 ], cost: 1 7: l6 -> l7 : [ 1<=x_18^0 ], cost: 1 8: l7 -> l5 : lt_21^0'=lt_21^post_9, t_17^0'=x_18^0, x_18^0'=lt_21^1_1, [], cost: 1 10: l5 -> l9 : [ 0<=a_140^0 ], cost: 1 11: l9 -> l10 : [ 1+x_18^0<=0 ], cost: 1 12: l9 -> l10 : [ 1<=x_18^0 ], cost: 1 13: l10 -> l8 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [], cost: 1 14: l8 -> l5 : [], cost: 1 15: l11 -> l0 : [], cost: 1 ### Simplification by acceleration and chaining ### Eliminated locations (on linear paths): Start location: l11 5: l2 -> l6 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=head_12^0, tmp_20^0'=head_12^0, x_18^0'=a_16^0, [ 0<=len_47^0 && -1+length_10^0-i_11^0<=0 ], cost: 1 18: l2 -> l2 : head_12^0'=tmp_13^post_4, i_11^0'=1+i_11^0, tmp_13^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, [ 0<=len_47^0 && 0<=-2+length_10^0-i_11^0 ], cost: 2 6: l6 -> l7 : [ 1+x_18^0<=0 ], cost: 1 7: l6 -> l7 : [ 1<=x_18^0 ], cost: 1 8: l7 -> l5 : lt_21^0'=lt_21^post_9, t_17^0'=x_18^0, x_18^0'=lt_21^1_1, [], cost: 1 10: l5 -> l9 : [ 0<=a_140^0 ], cost: 1 11: l9 -> l10 : [ 1+x_18^0<=0 ], cost: 1 12: l9 -> l10 : [ 1<=x_18^0 ], cost: 1 19: l10 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [], cost: 2 17: l11 -> l2 : head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, tmp_13^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, [ 0<=-2+length_10^0 ], cost: 3 Accelerating simple loops of location 2. Accelerating the following rules: 18: l2 -> l2 : head_12^0'=tmp_13^post_4, i_11^0'=1+i_11^0, tmp_13^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, [ 0<=len_47^0 && 0<=-2+length_10^0-i_11^0 ], cost: 2 Accelerated rule 18 with backward acceleration, yielding the new rule 20. [accelerate] Nesting with 1 inner and 1 outer candidates Removing the simple loops: 18. Accelerated all simple loops using metering functions (where possible): Start location: l11 5: l2 -> l6 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=head_12^0, tmp_20^0'=head_12^0, x_18^0'=a_16^0, [ 0<=len_47^0 && -1+length_10^0-i_11^0<=0 ], cost: 1 20: l2 -> l2 : head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, tmp_13^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, [ 0<=len_47^0 && -1+length_10^0-i_11^0>=1 ], cost: -2+2*length_10^0-2*i_11^0 6: l6 -> l7 : [ 1+x_18^0<=0 ], cost: 1 7: l6 -> l7 : [ 1<=x_18^0 ], cost: 1 8: l7 -> l5 : lt_21^0'=lt_21^post_9, t_17^0'=x_18^0, x_18^0'=lt_21^1_1, [], cost: 1 10: l5 -> l9 : [ 0<=a_140^0 ], cost: 1 11: l9 -> l10 : [ 1+x_18^0<=0 ], cost: 1 12: l9 -> l10 : [ 1<=x_18^0 ], cost: 1 19: l10 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [], cost: 2 17: l11 -> l2 : head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, tmp_13^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, [ 0<=-2+length_10^0 ], cost: 3 Chained accelerated rules (with incoming rules): Start location: l11 5: l2 -> l6 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=head_12^0, tmp_20^0'=head_12^0, x_18^0'=a_16^0, [ 0<=len_47^0 && -1+length_10^0-i_11^0<=0 ], cost: 1 6: l6 -> l7 : [ 1+x_18^0<=0 ], cost: 1 7: l6 -> l7 : [ 1<=x_18^0 ], cost: 1 8: l7 -> l5 : lt_21^0'=lt_21^post_9, t_17^0'=x_18^0, x_18^0'=lt_21^1_1, [], cost: 1 10: l5 -> l9 : [ 0<=a_140^0 ], cost: 1 11: l9 -> l10 : [ 1+x_18^0<=0 ], cost: 1 12: l9 -> l10 : [ 1<=x_18^0 ], cost: 1 19: l10 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [], cost: 2 17: l11 -> l2 : head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, tmp_13^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, [ 0<=-2+length_10^0 ], cost: 3 21: l11 -> l2 : head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, tmp_13^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, [ 0<=len_47^0 && -2+length_10^0>=1 ], cost: -1+2*length_10^0 Eliminated locations (on tree-shaped paths): Start location: l11 24: l6 -> l5 : lt_21^0'=lt_21^post_9, t_17^0'=x_18^0, x_18^0'=lt_21^1_1, [ 1+x_18^0<=0 ], cost: 2 25: l6 -> l5 : lt_21^0'=lt_21^post_9, t_17^0'=x_18^0, x_18^0'=lt_21^1_1, [ 1<=x_18^0 ], cost: 2 26: l5 -> l10 : [ 0<=a_140^0 && 1+x_18^0<=0 ], cost: 2 27: l5 -> l10 : [ 0<=a_140^0 && 1<=x_18^0 ], cost: 2 19: l10 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [], cost: 2 22: l11 -> l6 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=a_16^0, [ 0<=-2+length_10^0 && 0<=len_47^0 && -2+length_10^0<=0 ], cost: 4 23: l11 -> l6 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=a_16^0, [ 0<=len_47^0 && -2+length_10^0>=1 ], cost: 2*length_10^0 Eliminated locations (on tree-shaped paths): Start location: l11 32: l5 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [ 0<=a_140^0 && 1+x_18^0<=0 ], cost: 4 33: l5 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [ 0<=a_140^0 && 1<=x_18^0 ], cost: 4 28: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_1, [ 0<=-2+length_10^0 && 0<=len_47^0 && -2+length_10^0<=0 && 1+a_16^0<=0 ], cost: 6 29: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_1, [ 0<=-2+length_10^0 && 0<=len_47^0 && -2+length_10^0<=0 && 1<=a_16^0 ], cost: 6 30: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 ], cost: 2+2*length_10^0 31: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 ], cost: 2+2*length_10^0 Accelerating simple loops of location 7. Accelerating the following rules: 32: l5 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [ 0<=a_140^0 && 1+x_18^0<=0 ], cost: 4 33: l5 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [ 0<=a_140^0 && 1<=x_18^0 ], cost: 4 [test] deduced pseudo-invariant -x_18^0+lt_21^1_2<=0, also trying x_18^0-lt_21^1_2<=-1 Accelerated rule 32 with non-termination, yielding the new rule 34. Accelerated rule 32 with non-termination, yielding the new rule 35. Accelerated rule 32 with backward acceleration, yielding the new rule 36. [test] deduced pseudo-invariant 1-lt_21^1_2<=0, also trying -1+lt_21^1_2<=-1 Accelerated rule 33 with non-termination, yielding the new rule 37. Accelerated rule 33 with non-termination, yielding the new rule 38. Accelerated rule 33 with backward acceleration, yielding the new rule 39. [accelerate] Nesting with 0 inner and 2 outer candidates Also removing duplicate rules: 35 38. Accelerated all simple loops using metering functions (where possible): Start location: l11 32: l5 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [ 0<=a_140^0 && 1+x_18^0<=0 ], cost: 4 33: l5 -> l5 : lt_21^0'=lt_21^post_14, t_17^0'=x_18^0, x_18^0'=lt_21^1_2, [ 0<=a_140^0 && 1<=x_18^0 ], cost: 4 34: l5 -> [13] : [ 0<=a_140^0 && 1+x_18^0<=0 && 1+lt_21^1_2<=0 ], cost: NONTERM 36: l5 -> [13] : [ 0<=a_140^0 && 1+x_18^0<=0 && -x_18^0+lt_21^1_2<=0 ], cost: NONTERM 37: l5 -> [13] : [ 0<=a_140^0 && 1<=x_18^0 && 1<=lt_21^1_2 ], cost: NONTERM 39: l5 -> [13] : [ 0<=a_140^0 && 1<=x_18^0 && 1-lt_21^1_2<=0 ], cost: NONTERM 28: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_1, [ 0<=-2+length_10^0 && 0<=len_47^0 && -2+length_10^0<=0 && 1+a_16^0<=0 ], cost: 6 29: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_1, [ 0<=-2+length_10^0 && 0<=len_47^0 && -2+length_10^0<=0 && 1<=a_16^0 ], cost: 6 30: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 ], cost: 2+2*length_10^0 31: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 ], cost: 2+2*length_10^0 Chained accelerated rules (with incoming rules): Start location: l11 28: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_1, [ 0<=-2+length_10^0 && 0<=len_47^0 && -2+length_10^0<=0 && 1+a_16^0<=0 ], cost: 6 29: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_1, [ 0<=-2+length_10^0 && 0<=len_47^0 && -2+length_10^0<=0 && 1<=a_16^0 ], cost: 6 30: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 ], cost: 2+2*length_10^0 31: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 ], cost: 2+2*length_10^0 40: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_2, [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 && 1+lt_21^1_1<=0 ], cost: 10 41: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_2, [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 && 1+lt_21^1_1<=0 ], cost: 10 42: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 && 1+lt_21^1_1<=0 ], cost: 6+2*length_10^0 43: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 && 1+lt_21^1_1<=0 ], cost: 6+2*length_10^0 44: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_2, [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 && 1<=lt_21^1_1 ], cost: 10 45: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp___0_14^post_2, head_12^0'=tmp___0_14^post_2, i_11^0'=1, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp___0_14^post_2, tmp_20^0'=tmp___0_14^post_2, tmp___0_14^0'=tmp___0_14^post_2, x_18^0'=lt_21^1_2, [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 && 1<=lt_21^1_1 ], cost: 10 46: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 && 1<=lt_21^1_1 ], cost: 6+2*length_10^0 47: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 && 1<=lt_21^1_1 ], cost: 6+2*length_10^0 48: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 49: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 50: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 51: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 52: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 53: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 54: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 55: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 56: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 57: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 58: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 59: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 60: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 61: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 62: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 63: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM Removed unreachable locations (and leaf rules with constant cost): Start location: l11 30: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 ], cost: 2+2*length_10^0 31: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 ], cost: 2+2*length_10^0 42: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 && 1+lt_21^1_1<=0 ], cost: 6+2*length_10^0 43: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 && 1+lt_21^1_1<=0 ], cost: 6+2*length_10^0 46: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 && 1<=lt_21^1_1 ], cost: 6+2*length_10^0 47: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 && 1<=lt_21^1_1 ], cost: 6+2*length_10^0 48: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 49: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 50: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 51: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 52: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 53: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 54: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 55: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 56: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 57: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 58: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 59: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 60: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 61: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 62: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 63: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM ### Computing asymptotic complexity ### Fully simplified ITS problem Start location: l11 30: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 ], cost: 2+2*length_10^0 31: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_9, t_17^0'=a_16^0, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_1, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 ], cost: 2+2*length_10^0 42: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 && 1+lt_21^1_1<=0 ], cost: 6+2*length_10^0 43: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 && 1+lt_21^1_1<=0 ], cost: 6+2*length_10^0 46: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 && 1<=lt_21^1_1 ], cost: 6+2*length_10^0 47: l11 -> l5 : Result_4^0'=Result_4^post_6, ___cil_tmp6_15^0'=tmp_13^post_4, head_12^0'=tmp_13^post_4, i_11^0'=-1+length_10^0, length_19^0'=length_19^post_1, lt_21^0'=lt_21^post_14, t_17^0'=lt_21^1_1, tmp_13^0'=tmp_13^post_4, tmp_20^0'=tmp_13^post_4, tmp___0_14^0'=tmp_13^post_4, x_18^0'=lt_21^1_2, [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 && 1<=lt_21^1_1 ], cost: 6+2*length_10^0 60: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 61: l11 -> [13] : [ 2-length_10^0==0 && 0<=len_47^0 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM 62: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1+a_16^0<=0 && 0<=a_140^0 ], cost: NONTERM 63: l11 -> [13] : [ 0<=len_47^0 && -2+length_10^0>=1 && 1<=a_16^0 && 0<=a_140^0 ], cost: NONTERM Computing asymptotic complexity for rule 60 Guard is satisfiable, yielding nontermination Resulting cost NONTERM has complexity: Nonterm Found new complexity Nonterm. Obtained the following overall complexity (w.r.t. the length of the input n): Complexity: Nonterm Cpx degree: Nonterm Solved cost: NONTERM Rule cost: NONTERM Rule guard: [ 2-length_10^0==0 && 0<=len_47^0 && 1+a_16^0<=0 && 0<=a_140^0 ] NO