Input TRS: 1: le(0,y) -> true 2: le(s(x),0) -> false 3: le(s(x),s(y)) -> le(x,y) 4: app(nil,y) -> y 5: app(add(n,x),y) -> add(n,app(x,y)) 6: low(n,nil) -> nil 7: low(n,add(m,x)) -> if_low(le(m,n),n,add(m,x)) 8: if_low(true,n,add(m,x)) -> add(m,low(n,x)) 9: if_low(false,n,add(m,x)) -> low(n,x) 10: high(n,nil) -> nil 11: high(n,add(m,x)) -> if_high(le(m,n),n,add(m,x)) 12: if_high(true,n,add(m,x)) -> high(n,x) 13: if_high(false,n,add(m,x)) -> add(m,high(n,x)) 14: head(add(n,x)) -> n 15: tail(add(n,x)) -> x 16: isempty(nil) -> true 17: isempty(add(n,x)) -> false 18: quicksort(x) -> if_qs(isempty(x),low(head(x),tail(x)),head(x),high(head(x),tail(x))) 19: if_qs(true,x,n,y) -> nil 20: if_qs(false,x,n,y) -> app(quicksort(x),add(n,quicksort(y))) Dependency Pairs: #1: #le(s(x),s(y)) -> #le(x,y) #2: #app(add(n,x),y) -> #app(x,y) #3: #low(n,add(m,x)) -> #if_low(le(m,n),n,add(m,x)) #4: #low(n,add(m,x)) -> #le(m,n) #5: #if_low(true,n,add(m,x)) -> #low(n,x) #6: #if_low(false,n,add(m,x)) -> #low(n,x) #7: #high(n,add(m,x)) -> #if_high(le(m,n),n,add(m,x)) #8: #high(n,add(m,x)) -> #le(m,n) #9: #if_high(true,n,add(m,x)) -> #high(n,x) #10: #if_high(false,n,add(m,x)) -> #high(n,x) #11: #quicksort(x) -> #if_qs(isempty(x),low(head(x),tail(x)),head(x),high(head(x),tail(x))) #12: #quicksort(x) -> #isempty(x) #13: #quicksort(x) -> #low(head(x),tail(x)) #14: #quicksort(x) -> #head(x) #15: #quicksort(x) -> #tail(x) #16: #quicksort(x) -> #head(x) #17: #quicksort(x) -> #high(head(x),tail(x)) #18: #quicksort(x) -> #head(x) #19: #quicksort(x) -> #tail(x) #20: #if_qs(false,x,n,y) -> #app(quicksort(x),add(n,quicksort(y))) #21: #if_qs(false,x,n,y) -> #quicksort(x) #22: #if_qs(false,x,n,y) -> #quicksort(y) Number of SCCs: 5 SCC { #1 } QKBOPS(sum)... removes: #1 I(#le) = 1 + x1 + x2 \pi(#le) = [] I(s) = 2 + x1 \pi(s) = [] PREC: #le > s USABLE RULES: { } Number of SCCs: 4 SCC { #2 } QKBOPS(sum)... removes: #2 I(#app) = 1 + x1 + x2 \pi(#app) = [2,1] I(add) = 1 + x2 \pi(add) = [] PREC: #app > add USABLE RULES: { } Number of SCCs: 3 SCC { #3 #5 #6 } QKBOPS(sum)... removes: #3 #5 #6 I(#low) = 1 + x2 \pi(#low) = [] I(#if_low) = x3 \pi(#if_low) = 3 I(le) = 1 + x1 \pi(le) = [] I(false) = 2 I(0) = 1 I(true) = 1 I(s) = x1 \pi(s) = [] I(add) = 1 + x2 \pi(add) = [] PREC: true = s > 0 = add > #low = le = false USABLE RULES: { 3..1 } Number of SCCs: 2 SCC { #7 #9 #10 } QKBOPS(sum)... removes: #7 #9 #10 I(#high) = 1 + x2 \pi(#high) = [] I(#if_high) = x3 \pi(#if_high) = 3 I(le) = 1 + x1 \pi(le) = [] I(false) = 2 I(0) = 1 I(true) = 1 I(s) = x1 \pi(s) = [] I(add) = 1 + x2 \pi(add) = [] PREC: true = s > 0 = add > #high = le = false USABLE RULES: { 3..1 } Number of SCCs: 1 SCC { #11 #21 #22 } QKBOPS(sum)... failed.