The rewrite relation of the following TRS is considered.
le(0,Y) | → | true | (1) |
le(s(X),0) | → | false | (2) |
le(s(X),s(Y)) | → | le(X,Y) | (3) |
app(nil,Y) | → | Y | (4) |
app(cons(N,L),Y) | → | cons(N,app(L,Y)) | (5) |
low(N,nil) | → | nil | (6) |
low(N,cons(M,L)) | → | iflow(le(M,N),N,cons(M,L)) | (7) |
iflow(true,N,cons(M,L)) | → | cons(M,low(N,L)) | (8) |
iflow(false,N,cons(M,L)) | → | low(N,L) | (9) |
high(N,nil) | → | nil | (10) |
high(N,cons(M,L)) | → | ifhigh(le(M,N),N,cons(M,L)) | (11) |
ifhigh(true,N,cons(M,L)) | → | high(N,L) | (12) |
ifhigh(false,N,cons(M,L)) | → | cons(M,high(N,L)) | (13) |
quicksort(nil) | → | nil | (14) |
quicksort(cons(N,L)) | → | app(quicksort(low(N,L)),cons(N,quicksort(high(N,L)))) | (15) |
iflow#(false,N,cons(M,L)) | → | low#(N,L) | (16) |
low#(N,cons(M,L)) | → | iflow#(le(M,N),N,cons(M,L)) | (17) |
quicksort#(cons(N,L)) | → | low#(N,L) | (18) |
le#(s(X),s(Y)) | → | le#(X,Y) | (19) |
quicksort#(cons(N,L)) | → | app#(quicksort(low(N,L)),cons(N,quicksort(high(N,L)))) | (20) |
quicksort#(cons(N,L)) | → | quicksort#(low(N,L)) | (21) |
quicksort#(cons(N,L)) | → | quicksort#(high(N,L)) | (22) |
low#(N,cons(M,L)) | → | le#(M,N) | (23) |
iflow#(true,N,cons(M,L)) | → | low#(N,L) | (24) |
ifhigh#(true,N,cons(M,L)) | → | high#(N,L) | (25) |
high#(N,cons(M,L)) | → | ifhigh#(le(M,N),N,cons(M,L)) | (26) |
ifhigh#(false,N,cons(M,L)) | → | high#(N,L) | (27) |
app#(cons(N,L),Y) | → | app#(L,Y) | (28) |
quicksort#(cons(N,L)) | → | high#(N,L) | (29) |
high#(N,cons(M,L)) | → | le#(M,N) | (30) |
The dependency pairs are split into 5 components.
quicksort#(cons(N,L)) | → | quicksort#(high(N,L)) | (22) |
quicksort#(cons(N,L)) | → | quicksort#(low(N,L)) | (21) |
[le(x1, x2)] | = | x2 + 1 |
[s(x1)] | = | 1 |
[le#(x1, x2)] | = | 0 |
[quicksort#(x1)] | = | x1 + 0 |
[high#(x1, x2)] | = | 0 |
[false] | = | 3 |
[quicksort(x1)] | = | 0 |
[true] | = | 2 |
[iflow#(x1, x2, x3)] | = | 0 |
[0] | = | 1 |
[high(x1, x2)] | = | x2 + 1 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x2 + 1 |
[iflow(x1, x2, x3)] | = | x3 + 1 |
[ifhigh(x1, x2, x3)] | = | x3 + 1 |
[cons(x1, x2)] | = | x2 + 2 |
[ifhigh#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | 0 |
iflow(true,N,cons(M,L)) | → | cons(M,low(N,L)) | (8) |
high(N,nil) | → | nil | (10) |
low(N,cons(M,L)) | → | iflow(le(M,N),N,cons(M,L)) | (7) |
ifhigh(true,N,cons(M,L)) | → | high(N,L) | (12) |
high(N,cons(M,L)) | → | ifhigh(le(M,N),N,cons(M,L)) | (11) |
iflow(false,N,cons(M,L)) | → | low(N,L) | (9) |
ifhigh(false,N,cons(M,L)) | → | cons(M,high(N,L)) | (13) |
low(N,nil) | → | nil | (6) |
quicksort#(cons(N,L)) | → | quicksort#(high(N,L)) | (22) |
quicksort#(cons(N,L)) | → | quicksort#(low(N,L)) | (21) |
The dependency pairs are split into 0 components.
app#(cons(N,L),Y) | → | app#(L,Y) | (28) |
[le(x1, x2)] | = | x2 + 1 |
[s(x1)] | = | 1 |
[le#(x1, x2)] | = | 0 |
[quicksort#(x1)] | = | x1 + 0 |
[high#(x1, x2)] | = | 0 |
[false] | = | 17653 |
[quicksort(x1)] | = | 0 |
[true] | = | 2 |
[iflow#(x1, x2, x3)] | = | 0 |
[0] | = | 17651 |
[high(x1, x2)] | = | x2 + 38978 |
[nil] | = | 1 |
[app#(x1, x2)] | = | x1 + 0 |
[low(x1, x2)] | = | x2 + 42736 |
[iflow(x1, x2, x3)] | = | x3 + 42736 |
[ifhigh(x1, x2, x3)] | = | x3 + 38978 |
[cons(x1, x2)] | = | x2 + 2 |
[ifhigh#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | 0 |
iflow(true,N,cons(M,L)) | → | cons(M,low(N,L)) | (8) |
high(N,nil) | → | nil | (10) |
low(N,cons(M,L)) | → | iflow(le(M,N),N,cons(M,L)) | (7) |
ifhigh(true,N,cons(M,L)) | → | high(N,L) | (12) |
high(N,cons(M,L)) | → | ifhigh(le(M,N),N,cons(M,L)) | (11) |
iflow(false,N,cons(M,L)) | → | low(N,L) | (9) |
ifhigh(false,N,cons(M,L)) | → | cons(M,high(N,L)) | (13) |
low(N,nil) | → | nil | (6) |
app#(cons(N,L),Y) | → | app#(L,Y) | (28) |
The dependency pairs are split into 0 components.
ifhigh#(false,N,cons(M,L)) | → | high#(N,L) | (27) |
high#(N,cons(M,L)) | → | ifhigh#(le(M,N),N,cons(M,L)) | (26) |
ifhigh#(true,N,cons(M,L)) | → | high#(N,L) | (25) |
[le(x1, x2)] | = | x2 + 1 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | 0 |
[quicksort#(x1)] | = | 0 |
[high#(x1, x2)] | = | x2 + 1 |
[false] | = | 1 |
[quicksort(x1)] | = | 0 |
[true] | = | 1 |
[iflow#(x1, x2, x3)] | = | 0 |
[0] | = | 50736 |
[high(x1, x2)] | = | x2 + 11049 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x2 + 31122 |
[iflow(x1, x2, x3)] | = | x3 + 31122 |
[ifhigh(x1, x2, x3)] | = | x3 + 11049 |
[cons(x1, x2)] | = | x1 + x2 + 2 |
[ifhigh#(x1, x2, x3)] | = | x3 + 0 |
[low#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | 0 |
iflow(true,N,cons(M,L)) | → | cons(M,low(N,L)) | (8) |
le(0,Y) | → | true | (1) |
le(s(X),s(Y)) | → | le(X,Y) | (3) |
high(N,nil) | → | nil | (10) |
low(N,cons(M,L)) | → | iflow(le(M,N),N,cons(M,L)) | (7) |
iflow(false,N,cons(M,L)) | → | low(N,L) | (9) |
low(N,nil) | → | nil | (6) |
le(s(X),0) | → | false | (2) |
ifhigh#(false,N,cons(M,L)) | → | high#(N,L) | (27) |
high#(N,cons(M,L)) | → | ifhigh#(le(M,N),N,cons(M,L)) | (26) |
ifhigh#(true,N,cons(M,L)) | → | high#(N,L) | (25) |
The dependency pairs are split into 0 components.
low#(N,cons(M,L)) | → | iflow#(le(M,N),N,cons(M,L)) | (17) |
iflow#(true,N,cons(M,L)) | → | low#(N,L) | (24) |
iflow#(false,N,cons(M,L)) | → | low#(N,L) | (16) |
[le(x1, x2)] | = | x2 + 1 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | 0 |
[quicksort#(x1)] | = | 0 |
[high#(x1, x2)] | = | 1 |
[false] | = | 1 |
[quicksort(x1)] | = | 0 |
[true] | = | 1 |
[iflow#(x1, x2, x3)] | = | x2 + x3 + 0 |
[0] | = | 50736 |
[high(x1, x2)] | = | x2 + 11049 |
[nil] | = | 35495 |
[app#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x2 + 3 |
[iflow(x1, x2, x3)] | = | x3 + 3 |
[ifhigh(x1, x2, x3)] | = | x3 + 11049 |
[cons(x1, x2)] | = | x1 + x2 + 2 |
[ifhigh#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | x1 + x2 + 1 |
[app(x1, x2)] | = | 0 |
iflow(true,N,cons(M,L)) | → | cons(M,low(N,L)) | (8) |
le(0,Y) | → | true | (1) |
le(s(X),s(Y)) | → | le(X,Y) | (3) |
high(N,nil) | → | nil | (10) |
low(N,cons(M,L)) | → | iflow(le(M,N),N,cons(M,L)) | (7) |
iflow(false,N,cons(M,L)) | → | low(N,L) | (9) |
low(N,nil) | → | nil | (6) |
le(s(X),0) | → | false | (2) |
low#(N,cons(M,L)) | → | iflow#(le(M,N),N,cons(M,L)) | (17) |
iflow#(true,N,cons(M,L)) | → | low#(N,L) | (24) |
iflow#(false,N,cons(M,L)) | → | low#(N,L) | (16) |
The dependency pairs are split into 0 components.
le#(s(X),s(Y)) | → | le#(X,Y) | (19) |
[le(x1, x2)] | = | x2 + 1 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | x1 + 0 |
[quicksort#(x1)] | = | 0 |
[high#(x1, x2)] | = | 1 |
[false] | = | 25075 |
[quicksort(x1)] | = | 0 |
[true] | = | 1 |
[iflow#(x1, x2, x3)] | = | 0 |
[0] | = | 25074 |
[high(x1, x2)] | = | x2 + 11049 |
[nil] | = | 35495 |
[app#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x2 + 3 |
[iflow(x1, x2, x3)] | = | x3 + 3 |
[ifhigh(x1, x2, x3)] | = | x3 + 11049 |
[cons(x1, x2)] | = | x1 + x2 + 2 |
[ifhigh#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | 1 |
[app(x1, x2)] | = | 0 |
iflow(true,N,cons(M,L)) | → | cons(M,low(N,L)) | (8) |
le(0,Y) | → | true | (1) |
le(s(X),s(Y)) | → | le(X,Y) | (3) |
high(N,nil) | → | nil | (10) |
low(N,cons(M,L)) | → | iflow(le(M,N),N,cons(M,L)) | (7) |
iflow(false,N,cons(M,L)) | → | low(N,L) | (9) |
low(N,nil) | → | nil | (6) |
le(s(X),0) | → | false | (2) |
le#(s(X),s(Y)) | → | le#(X,Y) | (19) |
The dependency pairs are split into 0 components.