Input TRS: 1: qsort(nil) -> nil 2: qsort(cons(x,xs)) -> append(qsort(filterlow(x,cons(x,xs))),cons(x,qsort(filterhigh(x,cons(x,xs))))) 3: filterlow(n,nil) -> nil 4: filterlow(n,cons(x,xs)) -> if1(ge(n,x),n,x,xs) 5: if1(true,n,x,xs) -> filterlow(n,xs) 6: if1(false,n,x,xs) -> cons(x,filterlow(n,xs)) 7: filterhigh(n,nil) -> nil 8: filterhigh(n,cons(x,xs)) -> if2(ge(x,n),n,x,xs) 9: if2(true,n,x,xs) -> filterhigh(n,xs) 10: if2(false,n,x,xs) -> cons(x,filterhigh(n,xs)) 11: ge(x,0) -> true 12: ge(0,s(x)) -> false 13: ge(s(x),s(y)) -> ge(x,y) 14: append(nil,ys) -> ys 15: append(cons(x,xs),ys) -> cons(x,append(xs,ys)) Dependency Pairs: #1: #qsort(cons(x,xs)) -> #append(qsort(filterlow(x,cons(x,xs))),cons(x,qsort(filterhigh(x,cons(x,xs))))) #2: #qsort(cons(x,xs)) -> #qsort(filterlow(x,cons(x,xs))) #3: #qsort(cons(x,xs)) -> #filterlow(x,cons(x,xs)) #4: #qsort(cons(x,xs)) -> #qsort(filterhigh(x,cons(x,xs))) #5: #qsort(cons(x,xs)) -> #filterhigh(x,cons(x,xs)) #6: #filterlow(n,cons(x,xs)) -> #if1(ge(n,x),n,x,xs) #7: #filterlow(n,cons(x,xs)) -> #ge(n,x) #8: #if1(true,n,x,xs) -> #filterlow(n,xs) #9: #if1(false,n,x,xs) -> #filterlow(n,xs) #10: #filterhigh(n,cons(x,xs)) -> #if2(ge(x,n),n,x,xs) #11: #filterhigh(n,cons(x,xs)) -> #ge(x,n) #12: #if2(true,n,x,xs) -> #filterhigh(n,xs) #13: #if2(false,n,x,xs) -> #filterhigh(n,xs) #14: #ge(s(x),s(y)) -> #ge(x,y) #15: #append(cons(x,xs),ys) -> #append(xs,ys) Number of SCCs: 5 SCC { #14 } QKBOPS(sum)... removes: #14 I(#ge) = x1 + x2 \pi(#ge) = [] I(s) = 1 + x1 \pi(s) = [1] PREC: #ge > s USABLE RULES: { } Number of SCCs: 4 SCC { #15 } QKBOPS(sum)... removes: #15 I(cons) = 4 + x2 \pi(cons) = [] I(#append) = 1 + x1 + x2 \pi(#append) = [2,1] I(ys) = 2 PREC: cons = ys > #append USABLE RULES: { } Number of SCCs: 3 SCC { #2 #4 } QKBOPS(sum)... failed.