NO ### Pre-processing the ITS problem ### Initial linear ITS problem Start location: l6 0: l0 -> l1 : fvalue3^0'=fvalue3^post_1, low6^0'=low6^post_1, mid4^0'=mid4^post_1, ret_binary_search7^0'=ret_binary_search7^post_1, tmp^0'=tmp^post_1, up5^0'=up5^post_1, x2^0'=x2^post_1, [ fvalue3^0==fvalue3^post_1 && low6^0==low6^post_1 && mid4^0==mid4^post_1 && ret_binary_search7^0==ret_binary_search7^post_1 && tmp^0==tmp^post_1 && up5^0==up5^post_1 && x2^0==x2^post_1 ], cost: 1 1: l0 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=low6^post_2, mid4^0'=mid4^post_2, ret_binary_search7^0'=ret_binary_search7^post_2, tmp^0'=tmp^post_2, up5^0'=up5^post_2, x2^0'=x2^post_2, [ up5^post_2==-1+low6^0 && fvalue3^post_2==fvalue3^post_2 && low6^0==low6^post_2 && mid4^0==mid4^post_2 && ret_binary_search7^0==ret_binary_search7^post_2 && tmp^0==tmp^post_2 && x2^0==x2^post_2 ], cost: 1 2: l0 -> l1 : fvalue3^0'=fvalue3^post_3, low6^0'=low6^post_3, mid4^0'=mid4^post_3, ret_binary_search7^0'=ret_binary_search7^post_3, tmp^0'=tmp^post_3, up5^0'=up5^post_3, x2^0'=x2^post_3, [ fvalue3^0==fvalue3^post_3 && low6^0==low6^post_3 && mid4^0==mid4^post_3 && ret_binary_search7^0==ret_binary_search7^post_3 && tmp^0==tmp^post_3 && up5^0==up5^post_3 && x2^0==x2^post_3 ], cost: 1 6: l1 -> l2 : fvalue3^0'=fvalue3^post_7, low6^0'=low6^post_7, mid4^0'=mid4^post_7, ret_binary_search7^0'=ret_binary_search7^post_7, tmp^0'=tmp^post_7, up5^0'=up5^post_7, x2^0'=x2^post_7, [ low6^post_7==1+mid4^0 && fvalue3^0==fvalue3^post_7 && mid4^0==mid4^post_7 && ret_binary_search7^0==ret_binary_search7^post_7 && tmp^0==tmp^post_7 && up5^0==up5^post_7 && x2^0==x2^post_7 ], cost: 1 7: l1 -> l2 : fvalue3^0'=fvalue3^post_8, low6^0'=low6^post_8, mid4^0'=mid4^post_8, ret_binary_search7^0'=ret_binary_search7^post_8, tmp^0'=tmp^post_8, up5^0'=up5^post_8, x2^0'=x2^post_8, [ up5^post_8==-1+mid4^0 && fvalue3^0==fvalue3^post_8 && low6^0==low6^post_8 && mid4^0==mid4^post_8 && ret_binary_search7^0==ret_binary_search7^post_8 && tmp^0==tmp^post_8 && x2^0==x2^post_8 ], cost: 1 5: l2 -> l3 : fvalue3^0'=fvalue3^post_6, low6^0'=low6^post_6, mid4^0'=mid4^post_6, ret_binary_search7^0'=ret_binary_search7^post_6, tmp^0'=tmp^post_6, up5^0'=up5^post_6, x2^0'=x2^post_6, [ fvalue3^0==fvalue3^post_6 && low6^0==low6^post_6 && mid4^0==mid4^post_6 && ret_binary_search7^0==ret_binary_search7^post_6 && tmp^0==tmp^post_6 && up5^0==up5^post_6 && x2^0==x2^post_6 ], cost: 1 3: l3 -> l4 : fvalue3^0'=fvalue3^post_4, low6^0'=low6^post_4, mid4^0'=mid4^post_4, ret_binary_search7^0'=ret_binary_search7^post_4, tmp^0'=tmp^post_4, up5^0'=up5^post_4, x2^0'=x2^post_4, [ 1+up5^0<=low6^0 && ret_binary_search7^post_4==fvalue3^0 && tmp^post_4==ret_binary_search7^post_4 && fvalue3^0==fvalue3^post_4 && low6^0==low6^post_4 && mid4^0==mid4^post_4 && up5^0==up5^post_4 && x2^0==x2^post_4 ], cost: 1 4: l3 -> l0 : fvalue3^0'=fvalue3^post_5, low6^0'=low6^post_5, mid4^0'=mid4^post_5, ret_binary_search7^0'=ret_binary_search7^post_5, tmp^0'=tmp^post_5, up5^0'=up5^post_5, x2^0'=x2^post_5, [ low6^0<=up5^0 && mid4^post_5==mid4^post_5 && fvalue3^0==fvalue3^post_5 && low6^0==low6^post_5 && ret_binary_search7^0==ret_binary_search7^post_5 && tmp^0==tmp^post_5 && up5^0==up5^post_5 && x2^0==x2^post_5 ], cost: 1 8: l5 -> l2 : fvalue3^0'=fvalue3^post_9, low6^0'=low6^post_9, mid4^0'=mid4^post_9, ret_binary_search7^0'=ret_binary_search7^post_9, tmp^0'=tmp^post_9, up5^0'=up5^post_9, x2^0'=x2^post_9, [ x2^post_9==8 && low6^post_9==0 && up5^post_9==14 && fvalue3^post_9==-1 && mid4^0==mid4^post_9 && ret_binary_search7^0==ret_binary_search7^post_9 && tmp^0==tmp^post_9 ], cost: 1 9: l6 -> l5 : fvalue3^0'=fvalue3^post_10, low6^0'=low6^post_10, mid4^0'=mid4^post_10, ret_binary_search7^0'=ret_binary_search7^post_10, tmp^0'=tmp^post_10, up5^0'=up5^post_10, x2^0'=x2^post_10, [ fvalue3^0==fvalue3^post_10 && low6^0==low6^post_10 && mid4^0==mid4^post_10 && ret_binary_search7^0==ret_binary_search7^post_10 && tmp^0==tmp^post_10 && up5^0==up5^post_10 && x2^0==x2^post_10 ], cost: 1 Checking for constant complexity: The following rule is satisfiable with cost >= 1, yielding constant complexity: 9: l6 -> l5 : fvalue3^0'=fvalue3^post_10, low6^0'=low6^post_10, mid4^0'=mid4^post_10, ret_binary_search7^0'=ret_binary_search7^post_10, tmp^0'=tmp^post_10, up5^0'=up5^post_10, x2^0'=x2^post_10, [ fvalue3^0==fvalue3^post_10 && low6^0==low6^post_10 && mid4^0==mid4^post_10 && ret_binary_search7^0==ret_binary_search7^post_10 && tmp^0==tmp^post_10 && up5^0==up5^post_10 && x2^0==x2^post_10 ], cost: 1 Removed unreachable and leaf rules: Start location: l6 0: l0 -> l1 : fvalue3^0'=fvalue3^post_1, low6^0'=low6^post_1, mid4^0'=mid4^post_1, ret_binary_search7^0'=ret_binary_search7^post_1, tmp^0'=tmp^post_1, up5^0'=up5^post_1, x2^0'=x2^post_1, [ fvalue3^0==fvalue3^post_1 && low6^0==low6^post_1 && mid4^0==mid4^post_1 && ret_binary_search7^0==ret_binary_search7^post_1 && tmp^0==tmp^post_1 && up5^0==up5^post_1 && x2^0==x2^post_1 ], cost: 1 1: l0 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=low6^post_2, mid4^0'=mid4^post_2, ret_binary_search7^0'=ret_binary_search7^post_2, tmp^0'=tmp^post_2, up5^0'=up5^post_2, x2^0'=x2^post_2, [ up5^post_2==-1+low6^0 && fvalue3^post_2==fvalue3^post_2 && low6^0==low6^post_2 && mid4^0==mid4^post_2 && ret_binary_search7^0==ret_binary_search7^post_2 && tmp^0==tmp^post_2 && x2^0==x2^post_2 ], cost: 1 2: l0 -> l1 : fvalue3^0'=fvalue3^post_3, low6^0'=low6^post_3, mid4^0'=mid4^post_3, ret_binary_search7^0'=ret_binary_search7^post_3, tmp^0'=tmp^post_3, up5^0'=up5^post_3, x2^0'=x2^post_3, [ fvalue3^0==fvalue3^post_3 && low6^0==low6^post_3 && mid4^0==mid4^post_3 && ret_binary_search7^0==ret_binary_search7^post_3 && tmp^0==tmp^post_3 && up5^0==up5^post_3 && x2^0==x2^post_3 ], cost: 1 6: l1 -> l2 : fvalue3^0'=fvalue3^post_7, low6^0'=low6^post_7, mid4^0'=mid4^post_7, ret_binary_search7^0'=ret_binary_search7^post_7, tmp^0'=tmp^post_7, up5^0'=up5^post_7, x2^0'=x2^post_7, [ low6^post_7==1+mid4^0 && fvalue3^0==fvalue3^post_7 && mid4^0==mid4^post_7 && ret_binary_search7^0==ret_binary_search7^post_7 && tmp^0==tmp^post_7 && up5^0==up5^post_7 && x2^0==x2^post_7 ], cost: 1 7: l1 -> l2 : fvalue3^0'=fvalue3^post_8, low6^0'=low6^post_8, mid4^0'=mid4^post_8, ret_binary_search7^0'=ret_binary_search7^post_8, tmp^0'=tmp^post_8, up5^0'=up5^post_8, x2^0'=x2^post_8, [ up5^post_8==-1+mid4^0 && fvalue3^0==fvalue3^post_8 && low6^0==low6^post_8 && mid4^0==mid4^post_8 && ret_binary_search7^0==ret_binary_search7^post_8 && tmp^0==tmp^post_8 && x2^0==x2^post_8 ], cost: 1 5: l2 -> l3 : fvalue3^0'=fvalue3^post_6, low6^0'=low6^post_6, mid4^0'=mid4^post_6, ret_binary_search7^0'=ret_binary_search7^post_6, tmp^0'=tmp^post_6, up5^0'=up5^post_6, x2^0'=x2^post_6, [ fvalue3^0==fvalue3^post_6 && low6^0==low6^post_6 && mid4^0==mid4^post_6 && ret_binary_search7^0==ret_binary_search7^post_6 && tmp^0==tmp^post_6 && up5^0==up5^post_6 && x2^0==x2^post_6 ], cost: 1 4: l3 -> l0 : fvalue3^0'=fvalue3^post_5, low6^0'=low6^post_5, mid4^0'=mid4^post_5, ret_binary_search7^0'=ret_binary_search7^post_5, tmp^0'=tmp^post_5, up5^0'=up5^post_5, x2^0'=x2^post_5, [ low6^0<=up5^0 && mid4^post_5==mid4^post_5 && fvalue3^0==fvalue3^post_5 && low6^0==low6^post_5 && ret_binary_search7^0==ret_binary_search7^post_5 && tmp^0==tmp^post_5 && up5^0==up5^post_5 && x2^0==x2^post_5 ], cost: 1 8: l5 -> l2 : fvalue3^0'=fvalue3^post_9, low6^0'=low6^post_9, mid4^0'=mid4^post_9, ret_binary_search7^0'=ret_binary_search7^post_9, tmp^0'=tmp^post_9, up5^0'=up5^post_9, x2^0'=x2^post_9, [ x2^post_9==8 && low6^post_9==0 && up5^post_9==14 && fvalue3^post_9==-1 && mid4^0==mid4^post_9 && ret_binary_search7^0==ret_binary_search7^post_9 && tmp^0==tmp^post_9 ], cost: 1 9: l6 -> l5 : fvalue3^0'=fvalue3^post_10, low6^0'=low6^post_10, mid4^0'=mid4^post_10, ret_binary_search7^0'=ret_binary_search7^post_10, tmp^0'=tmp^post_10, up5^0'=up5^post_10, x2^0'=x2^post_10, [ fvalue3^0==fvalue3^post_10 && low6^0==low6^post_10 && mid4^0==mid4^post_10 && ret_binary_search7^0==ret_binary_search7^post_10 && tmp^0==tmp^post_10 && up5^0==up5^post_10 && x2^0==x2^post_10 ], cost: 1 Simplified all rules, resulting in: Start location: l6 1: l0 -> l2 : fvalue3^0'=fvalue3^post_2, up5^0'=-1+low6^0, [], cost: 1 2: l0 -> l1 : [], cost: 1 6: l1 -> l2 : low6^0'=1+mid4^0, [], cost: 1 7: l1 -> l2 : up5^0'=-1+mid4^0, [], cost: 1 5: l2 -> l3 : [], cost: 1 4: l3 -> l0 : mid4^0'=mid4^post_5, [ low6^0<=up5^0 ], cost: 1 8: l5 -> l2 : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: 1 9: l6 -> l5 : [], cost: 1 ### Simplification by acceleration and chaining ### Eliminated locations (on linear paths): Start location: l6 1: l0 -> l2 : fvalue3^0'=fvalue3^post_2, up5^0'=-1+low6^0, [], cost: 1 2: l0 -> l1 : [], cost: 1 6: l1 -> l2 : low6^0'=1+mid4^0, [], cost: 1 7: l1 -> l2 : up5^0'=-1+mid4^0, [], cost: 1 11: l2 -> l0 : mid4^0'=mid4^post_5, [ low6^0<=up5^0 ], cost: 2 10: l6 -> l2 : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: 2 Eliminated locations (on tree-shaped paths): Start location: l6 6: l1 -> l2 : low6^0'=1+mid4^0, [], cost: 1 7: l1 -> l2 : up5^0'=-1+mid4^0, [], cost: 1 12: l2 -> l2 : fvalue3^0'=fvalue3^post_2, mid4^0'=mid4^post_5, up5^0'=-1+low6^0, [ low6^0<=up5^0 ], cost: 3 13: l2 -> l1 : mid4^0'=mid4^post_5, [ low6^0<=up5^0 ], cost: 3 10: l6 -> l2 : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: 2 Accelerating simple loops of location 2. Accelerating the following rules: 12: l2 -> l2 : fvalue3^0'=fvalue3^post_2, mid4^0'=mid4^post_5, up5^0'=-1+low6^0, [ low6^0<=up5^0 ], cost: 3 Found no metering function for rule 12. Removing the simple loops:. Accelerated all simple loops using metering functions (where possible): Start location: l6 6: l1 -> l2 : low6^0'=1+mid4^0, [], cost: 1 7: l1 -> l2 : up5^0'=-1+mid4^0, [], cost: 1 12: l2 -> l2 : fvalue3^0'=fvalue3^post_2, mid4^0'=mid4^post_5, up5^0'=-1+low6^0, [ low6^0<=up5^0 ], cost: 3 13: l2 -> l1 : mid4^0'=mid4^post_5, [ low6^0<=up5^0 ], cost: 3 10: l6 -> l2 : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: 2 Chained accelerated rules (with incoming rules): Start location: l6 6: l1 -> l2 : low6^0'=1+mid4^0, [], cost: 1 7: l1 -> l2 : up5^0'=-1+mid4^0, [], cost: 1 14: l1 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=1+mid4^0, mid4^0'=mid4^post_5, up5^0'=mid4^0, [ 1+mid4^0<=up5^0 ], cost: 4 15: l1 -> l2 : fvalue3^0'=fvalue3^post_2, mid4^0'=mid4^post_5, up5^0'=-1+low6^0, [ low6^0<=-1+mid4^0 ], cost: 4 13: l2 -> l1 : mid4^0'=mid4^post_5, [ low6^0<=up5^0 ], cost: 3 10: l6 -> l2 : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: 2 16: l6 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=0, mid4^0'=mid4^post_5, up5^0'=-1, x2^0'=8, [], cost: 5 Eliminated locations (on tree-shaped paths): Start location: l6 17: l2 -> l2 : low6^0'=1+mid4^post_5, mid4^0'=mid4^post_5, [ low6^0<=up5^0 ], cost: 4 18: l2 -> l2 : mid4^0'=mid4^post_5, up5^0'=-1+mid4^post_5, [ low6^0<=up5^0 ], cost: 4 19: l2 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=1+mid4^post_5, mid4^0'=mid4^post_5, up5^0'=mid4^post_5, [ low6^0<=up5^0 && 1+mid4^post_5<=up5^0 ], cost: 7 20: l2 -> l2 : fvalue3^0'=fvalue3^post_2, mid4^0'=mid4^post_5, up5^0'=-1+low6^0, [ low6^0<=up5^0 && low6^0<=-1+mid4^post_5 ], cost: 7 10: l6 -> l2 : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: 2 16: l6 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=0, mid4^0'=mid4^post_5, up5^0'=-1, x2^0'=8, [], cost: 5 Accelerating simple loops of location 2. Accelerating the following rules: 17: l2 -> l2 : low6^0'=1+mid4^post_5, mid4^0'=mid4^post_5, [ low6^0<=up5^0 ], cost: 4 18: l2 -> l2 : mid4^0'=mid4^post_5, up5^0'=-1+mid4^post_5, [ low6^0<=up5^0 ], cost: 4 19: l2 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=1+mid4^post_5, mid4^0'=mid4^post_5, up5^0'=mid4^post_5, [ low6^0<=up5^0 && 1+mid4^post_5<=up5^0 ], cost: 7 20: l2 -> l2 : fvalue3^0'=fvalue3^post_2, mid4^0'=mid4^post_5, up5^0'=-1+low6^0, [ low6^0<=up5^0 && low6^0<=-1+mid4^post_5 ], cost: 7 Accelerated rule 17 with NONTERM (after strengthening guard), yielding the new rule 21. Accelerated rule 18 with NONTERM (after strengthening guard), yielding the new rule 22. Found no metering function for rule 19. Found no metering function for rule 20. Removing the simple loops:. Accelerated all simple loops using metering functions (where possible): Start location: l6 17: l2 -> l2 : low6^0'=1+mid4^post_5, mid4^0'=mid4^post_5, [ low6^0<=up5^0 ], cost: 4 18: l2 -> l2 : mid4^0'=mid4^post_5, up5^0'=-1+mid4^post_5, [ low6^0<=up5^0 ], cost: 4 19: l2 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=1+mid4^post_5, mid4^0'=mid4^post_5, up5^0'=mid4^post_5, [ low6^0<=up5^0 && 1+mid4^post_5<=up5^0 ], cost: 7 20: l2 -> l2 : fvalue3^0'=fvalue3^post_2, mid4^0'=mid4^post_5, up5^0'=-1+low6^0, [ low6^0<=up5^0 && low6^0<=-1+mid4^post_5 ], cost: 7 21: l2 -> [8] : [ low6^0<=up5^0 && 1+mid4^post_5<=up5^0 ], cost: NONTERM 22: l2 -> [8] : [ low6^0<=up5^0 && low6^0<=-1+mid4^post_5 ], cost: NONTERM 10: l6 -> l2 : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: 2 16: l6 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=0, mid4^0'=mid4^post_5, up5^0'=-1, x2^0'=8, [], cost: 5 Chained accelerated rules (with incoming rules): Start location: l6 10: l6 -> l2 : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: 2 16: l6 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=0, mid4^0'=mid4^post_5, up5^0'=-1, x2^0'=8, [], cost: 5 23: l6 -> l2 : fvalue3^0'=-1, low6^0'=1+mid4^post_5, mid4^0'=mid4^post_5, up5^0'=14, x2^0'=8, [], cost: 6 24: l6 -> l2 : fvalue3^0'=-1, low6^0'=0, mid4^0'=mid4^post_5, up5^0'=-1+mid4^post_5, x2^0'=8, [], cost: 6 25: l6 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=1+mid4^post_5, mid4^0'=mid4^post_5, up5^0'=mid4^post_5, x2^0'=8, [ 1+mid4^post_5<=14 ], cost: 9 26: l6 -> l2 : fvalue3^0'=fvalue3^post_2, low6^0'=0, mid4^0'=mid4^post_5, up5^0'=-1, x2^0'=8, [ 0<=-1+mid4^post_5 ], cost: 9 27: l6 -> [8] : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: NONTERM 28: l6 -> [8] : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: NONTERM Removed unreachable locations (and leaf rules with constant cost): Start location: l6 27: l6 -> [8] : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: NONTERM 28: l6 -> [8] : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: NONTERM ### Computing asymptotic complexity ### Fully simplified ITS problem Start location: l6 28: l6 -> [8] : fvalue3^0'=-1, low6^0'=0, up5^0'=14, x2^0'=8, [], cost: NONTERM Computing asymptotic complexity for rule 28 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: [] NO