The rewrite relation of the following TRS is considered.
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
quot(0,s(y)) | → | 0 | (3) |
quot(s(x),s(y)) | → | s(quot(minus(x,y),s(y))) | (4) |
le(0,y) | → | true | (5) |
le(s(x),0) | → | false | (6) |
le(s(x),s(y)) | → | le(x,y) | (7) |
app(nil,y) | → | y | (8) |
app(add(n,x),y) | → | add(n,app(x,y)) | (9) |
low(n,nil) | → | nil | (10) |
low(n,add(m,x)) | → | if_low(le(m,n),n,add(m,x)) | (11) |
if_low(true,n,add(m,x)) | → | add(m,low(n,x)) | (12) |
if_low(false,n,add(m,x)) | → | low(n,x) | (13) |
high(n,nil) | → | nil | (14) |
high(n,add(m,x)) | → | if_high(le(m,n),n,add(m,x)) | (15) |
if_high(true,n,add(m,x)) | → | high(n,x) | (16) |
if_high(false,n,add(m,x)) | → | add(m,high(n,x)) | (17) |
quicksort(nil) | → | nil | (18) |
quicksort(add(n,x)) | → | app(quicksort(low(n,x)),add(n,quicksort(high(n,x)))) | (19) |
if_low#(false,n,add(m,x)) | → | low#(n,x) | (20) |
if_low#(true,n,add(m,x)) | → | low#(n,x) | (21) |
quicksort#(add(n,x)) | → | high#(n,x) | (22) |
quicksort#(add(n,x)) | → | app#(quicksort(low(n,x)),add(n,quicksort(high(n,x)))) | (23) |
quicksort#(add(n,x)) | → | low#(n,x) | (24) |
quicksort#(add(n,x)) | → | quicksort#(high(n,x)) | (25) |
if_high#(true,n,add(m,x)) | → | high#(n,x) | (26) |
le#(s(x),s(y)) | → | le#(x,y) | (27) |
quicksort#(add(n,x)) | → | quicksort#(low(n,x)) | (28) |
low#(n,add(m,x)) | → | le#(m,n) | (29) |
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (30) |
high#(n,add(m,x)) | → | le#(m,n) | (31) |
app#(add(n,x),y) | → | app#(x,y) | (32) |
minus#(s(x),s(y)) | → | minus#(x,y) | (33) |
if_high#(false,n,add(m,x)) | → | high#(n,x) | (34) |
high#(n,add(m,x)) | → | if_high#(le(m,n),n,add(m,x)) | (35) |
low#(n,add(m,x)) | → | if_low#(le(m,n),n,add(m,x)) | (36) |
quot#(s(x),s(y)) | → | minus#(x,y) | (37) |
The dependency pairs are split into 7 components.
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (30) |
[le(x1, x2)] | = | 0 |
[s(x1)] | = | x1 + 2 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 1 |
[if_high(x1, x2, x3)] | = | 0 |
[quicksort#(x1)] | = | 0 |
[high#(x1, x2)] | = | 0 |
[false] | = | 0 |
[if_high#(x1, x2, x3)] | = | 0 |
[quicksort(x1)] | = | 0 |
[true] | = | 0 |
[0] | = | 1 |
[quot(x1, x2)] | = | 0 |
[high(x1, x2)] | = | 0 |
[nil] | = | 0 |
[app#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | 0 |
[add(x1, x2)] | = | 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[if_low(x1, x2, x3)] | = | 0 |
[if_low#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | 0 |
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (30) |
The dependency pairs are split into 0 components.
minus#(s(x),s(y)) | → | minus#(x,y) | (33) |
[le(x1, x2)] | = | 0 |
[s(x1)] | = | x1 + 2 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 1 |
[if_high(x1, x2, x3)] | = | 0 |
[quicksort#(x1)] | = | 0 |
[high#(x1, x2)] | = | 0 |
[false] | = | 0 |
[if_high#(x1, x2, x3)] | = | 0 |
[quicksort(x1)] | = | 0 |
[true] | = | 0 |
[0] | = | 1 |
[quot(x1, x2)] | = | 0 |
[high(x1, x2)] | = | 0 |
[nil] | = | 0 |
[app#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | x1 + x2 + 0 |
[low(x1, x2)] | = | 0 |
[add(x1, x2)] | = | 0 |
[quot#(x1, x2)] | = | x1 + 0 |
[if_low(x1, x2, x3)] | = | 0 |
[if_low#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | 0 |
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
minus#(s(x),s(y)) | → | minus#(x,y) | (33) |
The dependency pairs are split into 0 components.
quicksort#(add(n,x)) | → | quicksort#(high(n,x)) | (25) |
quicksort#(add(n,x)) | → | quicksort#(low(n,x)) | (28) |
[le(x1, x2)] | = | x1 + x2 + 1 |
[s(x1)] | = | 2 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 1 |
[if_high(x1, x2, x3)] | = | x2 + x3 + 38551 |
[quicksort#(x1)] | = | x1 + 0 |
[high#(x1, x2)] | = | 0 |
[false] | = | 5 |
[if_high#(x1, x2, x3)] | = | 0 |
[quicksort(x1)] | = | 0 |
[true] | = | 3 |
[0] | = | 1 |
[quot(x1, x2)] | = | 0 |
[high(x1, x2)] | = | x1 + x2 + 38551 |
[nil] | = | 31755 |
[app#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x1 + x2 + 282 |
[add(x1, x2)] | = | x1 + x2 + 38552 |
[quot#(x1, x2)] | = | 0 |
[if_low(x1, x2, x3)] | = | x2 + x3 + 282 |
[if_low#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | 0 |
high(n,add(m,x)) | → | if_high(le(m,n),n,add(m,x)) | (15) |
minus(x,0) | → | x | (1) |
if_high(true,n,add(m,x)) | → | high(n,x) | (16) |
if_high(false,n,add(m,x)) | → | add(m,high(n,x)) | (17) |
low(n,nil) | → | nil | (10) |
high(n,nil) | → | nil | (14) |
if_low(true,n,add(m,x)) | → | add(m,low(n,x)) | (12) |
low(n,add(m,x)) | → | if_low(le(m,n),n,add(m,x)) | (11) |
if_low(false,n,add(m,x)) | → | low(n,x) | (13) |
quicksort#(add(n,x)) | → | quicksort#(high(n,x)) | (25) |
quicksort#(add(n,x)) | → | quicksort#(low(n,x)) | (28) |
The dependency pairs are split into 0 components.
app#(add(n,x),y) | → | app#(x,y) | (32) |
[le(x1, x2)] | = | x1 + x2 + 1 |
[s(x1)] | = | 2 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 1 |
[if_high(x1, x2, x3)] | = | x2 + x3 + 38551 |
[quicksort#(x1)] | = | x1 + 0 |
[high#(x1, x2)] | = | 0 |
[false] | = | 5 |
[if_high#(x1, x2, x3)] | = | 0 |
[quicksort(x1)] | = | 0 |
[true] | = | 3 |
[0] | = | 1 |
[quot(x1, x2)] | = | 0 |
[high(x1, x2)] | = | x1 + x2 + 38551 |
[nil] | = | 53547 |
[app#(x1, x2)] | = | x1 + 0 |
[minus#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x1 + x2 + 1 |
[add(x1, x2)] | = | x1 + x2 + 38552 |
[quot#(x1, x2)] | = | 0 |
[if_low(x1, x2, x3)] | = | x2 + x3 + 1 |
[if_low#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | 0 |
high(n,add(m,x)) | → | if_high(le(m,n),n,add(m,x)) | (15) |
minus(x,0) | → | x | (1) |
if_high(true,n,add(m,x)) | → | high(n,x) | (16) |
if_high(false,n,add(m,x)) | → | add(m,high(n,x)) | (17) |
low(n,nil) | → | nil | (10) |
high(n,nil) | → | nil | (14) |
if_low(true,n,add(m,x)) | → | add(m,low(n,x)) | (12) |
low(n,add(m,x)) | → | if_low(le(m,n),n,add(m,x)) | (11) |
if_low(false,n,add(m,x)) | → | low(n,x) | (13) |
app#(add(n,x),y) | → | app#(x,y) | (32) |
The dependency pairs are split into 0 components.
if_high#(true,n,add(m,x)) | → | high#(n,x) | (26) |
high#(n,add(m,x)) | → | if_high#(le(m,n),n,add(m,x)) | (35) |
if_high#(false,n,add(m,x)) | → | high#(n,x) | (34) |
[le(x1, x2)] | = | 1324 |
[s(x1)] | = | 0 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 1 |
[if_high(x1, x2, x3)] | = | x2 + x3 + 38607 |
[quicksort#(x1)] | = | x1 + 0 |
[high#(x1, x2)] | = | x1 + x2 + 1325 |
[false] | = | 1324 |
[if_high#(x1, x2, x3)] | = | x1 + x2 + x3 + 0 |
[quicksort(x1)] | = | 0 |
[true] | = | 1324 |
[0] | = | 0 |
[quot(x1, x2)] | = | 0 |
[high(x1, x2)] | = | x1 + x2 + 38607 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x1 + x2 + 34519 |
[add(x1, x2)] | = | x2 + 2 |
[quot#(x1, x2)] | = | 0 |
[if_low(x1, x2, x3)] | = | x2 + x3 + 34519 |
[if_low#(x1, x2, x3)] | = | 0 |
[low#(x1, x2)] | = | 0 |
[app(x1, x2)] | = | 0 |
high(n,add(m,x)) | → | if_high(le(m,n),n,add(m,x)) | (15) |
minus(x,0) | → | x | (1) |
if_high(true,n,add(m,x)) | → | high(n,x) | (16) |
if_high(false,n,add(m,x)) | → | add(m,high(n,x)) | (17) |
le(0,y) | → | true | (5) |
low(n,nil) | → | nil | (10) |
le(s(x),s(y)) | → | le(x,y) | (7) |
high(n,nil) | → | nil | (14) |
if_low(true,n,add(m,x)) | → | add(m,low(n,x)) | (12) |
low(n,add(m,x)) | → | if_low(le(m,n),n,add(m,x)) | (11) |
if_low(false,n,add(m,x)) | → | low(n,x) | (13) |
le(s(x),0) | → | false | (6) |
if_high#(true,n,add(m,x)) | → | high#(n,x) | (26) |
high#(n,add(m,x)) | → | if_high#(le(m,n),n,add(m,x)) | (35) |
if_high#(false,n,add(m,x)) | → | high#(n,x) | (34) |
The dependency pairs are split into 0 components.
low#(n,add(m,x)) | → | if_low#(le(m,n),n,add(m,x)) | (36) |
if_low#(true,n,add(m,x)) | → | low#(n,x) | (21) |
if_low#(false,n,add(m,x)) | → | low#(n,x) | (20) |
[le(x1, x2)] | = | 23612 |
[s(x1)] | = | 0 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 1 |
[if_high(x1, x2, x3)] | = | x2 + x3 + 25074 |
[quicksort#(x1)] | = | x1 + 0 |
[high#(x1, x2)] | = | 1325 |
[false] | = | 23612 |
[if_high#(x1, x2, x3)] | = | x1 + 0 |
[quicksort(x1)] | = | 0 |
[true] | = | 23612 |
[0] | = | 0 |
[quot(x1, x2)] | = | 0 |
[high(x1, x2)] | = | x1 + x2 + 25074 |
[nil] | = | 1 |
[app#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x1 + x2 + 1 |
[add(x1, x2)] | = | x2 + 2 |
[quot#(x1, x2)] | = | 0 |
[if_low(x1, x2, x3)] | = | x2 + x3 + 1 |
[if_low#(x1, x2, x3)] | = | x1 + x2 + x3 + 0 |
[low#(x1, x2)] | = | x1 + x2 + 23613 |
[app(x1, x2)] | = | 0 |
high(n,add(m,x)) | → | if_high(le(m,n),n,add(m,x)) | (15) |
minus(x,0) | → | x | (1) |
if_high(true,n,add(m,x)) | → | high(n,x) | (16) |
if_high(false,n,add(m,x)) | → | add(m,high(n,x)) | (17) |
le(0,y) | → | true | (5) |
low(n,nil) | → | nil | (10) |
le(s(x),s(y)) | → | le(x,y) | (7) |
high(n,nil) | → | nil | (14) |
if_low(true,n,add(m,x)) | → | add(m,low(n,x)) | (12) |
low(n,add(m,x)) | → | if_low(le(m,n),n,add(m,x)) | (11) |
if_low(false,n,add(m,x)) | → | low(n,x) | (13) |
le(s(x),0) | → | false | (6) |
low#(n,add(m,x)) | → | if_low#(le(m,n),n,add(m,x)) | (36) |
if_low#(true,n,add(m,x)) | → | low#(n,x) | (21) |
if_low#(false,n,add(m,x)) | → | low#(n,x) | (20) |
The dependency pairs are split into 0 components.
le#(s(x),s(y)) | → | le#(x,y) | (27) |
[le(x1, x2)] | = | 23612 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | x2 + 0 |
[minus(x1, x2)] | = | x1 + 1 |
[if_high(x1, x2, x3)] | = | x2 + x3 + 40436 |
[quicksort#(x1)] | = | x1 + 0 |
[high#(x1, x2)] | = | 1325 |
[false] | = | 1 |
[if_high#(x1, x2, x3)] | = | x1 + 0 |
[quicksort(x1)] | = | 0 |
[true] | = | 23612 |
[0] | = | 0 |
[quot(x1, x2)] | = | 0 |
[high(x1, x2)] | = | x1 + x2 + 40436 |
[nil] | = | 48999 |
[app#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[low(x1, x2)] | = | x1 + x2 + 1 |
[add(x1, x2)] | = | x2 + 52182 |
[quot#(x1, x2)] | = | 0 |
[if_low(x1, x2, x3)] | = | x2 + x3 + 1 |
[if_low#(x1, x2, x3)] | = | x1 + 0 |
[low#(x1, x2)] | = | 23613 |
[app(x1, x2)] | = | 0 |
high(n,add(m,x)) | → | if_high(le(m,n),n,add(m,x)) | (15) |
minus(x,0) | → | x | (1) |
if_high(true,n,add(m,x)) | → | high(n,x) | (16) |
if_high(false,n,add(m,x)) | → | add(m,high(n,x)) | (17) |
le(0,y) | → | true | (5) |
low(n,nil) | → | nil | (10) |
le(s(x),s(y)) | → | le(x,y) | (7) |
high(n,nil) | → | nil | (14) |
if_low(true,n,add(m,x)) | → | add(m,low(n,x)) | (12) |
low(n,add(m,x)) | → | if_low(le(m,n),n,add(m,x)) | (11) |
if_low(false,n,add(m,x)) | → | low(n,x) | (13) |
le(s(x),0) | → | false | (6) |
le#(s(x),s(y)) | → | le#(x,y) | (27) |
The dependency pairs are split into 0 components.