Input TRS: 1: minus(x,y) -> if(gt(x,y),x,y) 2: if(true,x,y) -> s(minus(p(x),y)) 3: if(false,x,y) -> 0 4: p(0) -> 0 5: p(s(x)) -> x 6: ge(x,0) -> true 7: ge(0,s(x)) -> false 8: ge(s(x),s(y)) -> ge(x,y) 9: gt(0,y) -> false 10: gt(s(x),0) -> true 11: gt(s(x),s(y)) -> gt(x,y) 12: div(x,y) -> if1(ge(x,y),x,y) 13: if1(true,x,y) -> if2(gt(y,0),x,y) 14: if1(false,x,y) -> 0 15: if2(true,x,y) -> s(div(minus(x,y),y)) 16: if2(false,x,y) -> 0 Dependency Pairs: #1: #minus(x,y) -> #if(gt(x,y),x,y) #2: #minus(x,y) -> #gt(x,y) #3: #if(true,x,y) -> #minus(p(x),y) #4: #if(true,x,y) -> #p(x) #5: #ge(s(x),s(y)) -> #ge(x,y) #6: #gt(s(x),s(y)) -> #gt(x,y) #7: #div(x,y) -> #if1(ge(x,y),x,y) #8: #div(x,y) -> #ge(x,y) #9: #if1(true,x,y) -> #if2(gt(y,0),x,y) #10: #if1(true,x,y) -> #gt(y,0) #11: #if2(true,x,y) -> #div(minus(x,y),y) #12: #if2(true,x,y) -> #minus(x,y) Number of SCCs: 4 SCC { #6 } QKBOPS(sum)... removes: #6 I(s) = 1 + x1 \pi(s) = [1] I(#gt) = x1 + x2 \pi(#gt) = [] PREC: #gt > s USABLE RULES: { } Number of SCCs: 3 SCC { #5 } QKBOPS(sum)... removes: #5 I(#ge) = x1 + x2 \pi(#ge) = [] I(s) = 1 + x1 \pi(s) = [1] PREC: #ge > s USABLE RULES: { } Number of SCCs: 2 SCC { #1 #3 } QKBOPS(sum)... failed.