Input TRS: 1: a(h,h,h,x) -> s(x) 2: a(l,x,s(y),h) -> a(l,x,y,s(h)) 3: a(l,x,s(y),s(z)) -> a(l,x,y,a(l,x,s(y),z)) 4: a(l,s(x),h,z) -> a(l,x,z,z) 5: a(s(l),h,h,z) -> a(l,z,h,z) 6: +(x,h) -> x 7: +(h,x) -> x 8: +(s(x),s(y)) -> s(s(+(x,y))) 9: +(+(x,y),z) -> +(x,+(y,z)) 10: s(h) -> 1 11: *(h,x) -> h 12: *(x,h) -> h 13: *(s(x),s(y)) -> s(+(+(*(x,y),x),y)) Dependency Pairs: #1: #a(h,h,h,x) -> #s(x) #2: #a(l,x,s(y),h) -> #a(l,x,y,s(h)) #3: #a(l,x,s(y),h) -> #s(h) #4: #a(l,x,s(y),s(z)) -> #a(l,x,y,a(l,x,s(y),z)) #5: #a(l,x,s(y),s(z)) -> #a(l,x,s(y),z) #6: #a(l,x,s(y),s(z)) -> #s(y) #7: #a(l,s(x),h,z) -> #a(l,x,z,z) #8: #a(s(l),h,h,z) -> #a(l,z,h,z) #9: #+(s(x),s(y)) -> #s(s(+(x,y))) #10: #+(s(x),s(y)) -> #s(+(x,y)) #11: #+(s(x),s(y)) -> #+(x,y) #12: #+(+(x,y),z) -> #+(x,+(y,z)) #13: #+(+(x,y),z) -> #+(y,z) #14: #*(s(x),s(y)) -> #s(+(+(*(x,y),x),y)) #15: #*(s(x),s(y)) -> #+(+(*(x,y),x),y) #16: #*(s(x),s(y)) -> #+(*(x,y),x) #17: #*(s(x),s(y)) -> #*(x,y) Number of SCCs: 3 SCC { #17 } QKBOPS(sum)... removes: #17 I(#*) = 1 + x1 + x2 \pi(#*) = [] I(s) = 2 + x1 \pi(s) = [] PREC: #* > s USABLE RULES: { } Number of SCCs: 2 SCC { #11 #12 #13 } QKBOPS(sum)... removes: #13 I(#+) = 2 + x1 + x2 \pi(#+) = [] I(h) = 1 I(+) = 1 + x1 + x2 \pi(+) = [1,2] I(1) = 1 I(s) = x1 \pi(s) = [] PREC: #+ > + = s > 1 > h USABLE RULES: { 10..6 } Number of SCCs: 2 SCC { #11 #12 } QKBOPS(sum)... removes: #11 I(#+) = x1 \pi(#+) = 1 I(h) = 2 I(+) = x1 \pi(+) = 1 I(1) = 3 I(s) = x1 \pi(s) = [1] PREC: s > h > 1 USABLE RULES: { } Number of SCCs: 2 SCC { #12 } QKBOPS(sum)... removes: #12 I(#+) = 5 + x1 \pi(#+) = [] I(h) = 1 I(+) = 4 + x1 + x2 \pi(+) = [1] I(1) = 2 I(s) = 3 \pi(s) = [] PREC: #+ = + > 1 = s > h USABLE RULES: { 10..6 } Number of SCCs: 1 SCC { #2 #4 #5 #7 #8 } QKBOPS(sum)... removes: #8 I(a) = 1 \pi(a) = [] I(h) = 3 I(1) = 3 I(s) = 1 + x1 \pi(s) = [] I(#a) = 4 + x1 \pi(#a) = [1] PREC: h = 1 > #a > s > a USABLE RULES: { } Number of SCCs: 1 SCC { #2 #4 #5 #7 } QKBOPS(sum)... removes: #7 I(a) = x4 \pi(a) = [4] I(h) = 1 I(1) = 1 I(s) = x1 \pi(s) = [1] I(#a) = x2 \pi(#a) = 2 PREC: a = 1 = s > h USABLE RULES: { 10 } Number of SCCs: 1 SCC { #2 #4 #5 } QKBOPS(sum)... removes: #2 #4 I(a) = 1 + x2 + x3 + x4 \pi(a) = [3] I(h) = 1 I(1) = 1 I(s) = x1 \pi(s) = [1] I(#a) = x3 \pi(#a) = 3 PREC: s > a = h = 1 USABLE RULES: { 10 } Number of SCCs: 1 SCC { #5 } QKBOPS(sum)... removes: #5 I(h) = 1 I(1) = 1 I(s) = 1 + x1 \pi(s) = [] I(#a) = 2 + x3 + x4 \pi(#a) = [3] PREC: s = #a > h = 1 USABLE RULES: { 10 } Number of SCCs: 0