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