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