Input TRS: 1: times(x,0) -> 0 2: times(x,s(y)) -> plus(times(x,y),x) 3: plus(s(x),s(y)) -> s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) 4: plus(s(x),x) -> plus(if(gt(x,x),id(x),id(x)),s(x)) 5: plus(zero,y) -> y 6: plus(id(x),s(y)) -> s(plus(x,if(gt(s(y),y),y,s(y)))) 7: id(x) -> x 8: if(true,x,y) -> x 9: if(false,x,y) -> y 10: not(x) -> if(x,false,true) 11: gt(s(x),zero) -> true 12: gt(zero,y) -> false 13: gt(s(x),s(y)) -> gt(x,y) Dependency Pairs: #1: #times(x,s(y)) -> #plus(times(x,y),x) #2: #times(x,s(y)) -> #times(x,y) #3: #plus(s(x),s(y)) -> #plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) #4: #plus(s(x),s(y)) -> #if(gt(x,y),x,y) #5: #plus(s(x),s(y)) -> #gt(x,y) #6: #plus(s(x),s(y)) -> #if(not(gt(x,y)),id(x),id(y)) #7: #plus(s(x),s(y)) -> #not(gt(x,y)) #8: #plus(s(x),s(y)) -> #gt(x,y) #9: #plus(s(x),s(y)) -> #id(x) #10: #plus(s(x),s(y)) -> #id(y) #11: #plus(s(x),x) -> #plus(if(gt(x,x),id(x),id(x)),s(x)) #12: #plus(s(x),x) -> #if(gt(x,x),id(x),id(x)) #13: #plus(s(x),x) -> #gt(x,x) #14: #plus(s(x),x) -> #id(x) #15: #plus(s(x),x) -> #id(x) #16: #plus(id(x),s(y)) -> #plus(x,if(gt(s(y),y),y,s(y))) #17: #plus(id(x),s(y)) -> #if(gt(s(y),y),y,s(y)) #18: #plus(id(x),s(y)) -> #gt(s(y),y) #19: #not(x) -> #if(x,false,true) #20: #gt(s(x),s(y)) -> #gt(x,y) Number of SCCs: 3 SCC { #20 } QKBOS(sum)... removes: #20 I(s) = 1 + x1 \pi(s) = [1] I(#gt) = x1 + x2 \pi(#gt) = [2,1] PREC: #gt > s USABLE RULES: { } Number of SCCs: 2 SCC { #2 } QKBOS(sum)... removes: #2 I(#times) = x1 + x2 \pi(#times) = [1,2] I(s) = 1 + x1 \pi(s) = [1] PREC: #times = s USABLE RULES: { } Number of SCCs: 1 SCC { #3 #11 #16 } QKBOS(sum)... failed.