The rewrite relation of the following TRS is considered.
min(x,0) | → | 0 | (1) |
min(0,y) | → | 0 | (2) |
min(s(x),s(y)) | → | s(min(x,y)) | (3) |
max(x,0) | → | x | (4) |
max(0,y) | → | y | (5) |
max(s(x),s(y)) | → | s(max(x,y)) | (6) |
minus(x,0) | → | x | (7) |
minus(s(x),s(y)) | → | s(minus(x,y)) | (8) |
gcd(s(x),s(y)) | → | gcd(minus(max(x,y),min(x,transform(y))),s(min(x,y))) | (9) |
transform(x) | → | s(s(x)) | (10) |
transform(cons(x,y)) | → | cons(cons(x,x),x) | (11) |
transform(cons(x,y)) | → | y | (12) |
transform(s(x)) | → | s(s(transform(x))) | (13) |
cons(x,y) | → | y | (14) |
cons(x,cons(y,s(z))) | → | cons(y,x) | (15) |
cons(cons(x,z),s(y)) | → | transform(x) | (16) |
transform#(s(x)) | → | transform#(x) | (17) |
gcd#(s(x),s(y)) | → | min#(x,transform(y)) | (18) |
minus#(s(x),s(y)) | → | minus#(x,y) | (19) |
transform#(cons(x,y)) | → | cons#(cons(x,x),x) | (20) |
cons#(cons(x,z),s(y)) | → | transform#(x) | (21) |
min#(s(x),s(y)) | → | min#(x,y) | (22) |
cons#(x,cons(y,s(z))) | → | cons#(y,x) | (23) |
gcd#(s(x),s(y)) | → | transform#(y) | (24) |
transform#(cons(x,y)) | → | cons#(x,x) | (25) |
gcd#(s(x),s(y)) | → | max#(x,y) | (26) |
gcd#(s(x),s(y)) | → | gcd#(minus(max(x,y),min(x,transform(y))),s(min(x,y))) | (27) |
max#(s(x),s(y)) | → | max#(x,y) | (28) |
gcd#(s(x),s(y)) | → | min#(x,y) | (29) |
gcd#(s(x),s(y)) | → | minus#(max(x,y),min(x,transform(y))) | (30) |
The dependency pairs are split into 5 components.
gcd#(s(x),s(y)) | → | gcd#(minus(max(x,y),min(x,transform(y))),s(min(x,y))) | (27) |
[cons#(x1, x2)] | = | max(0) |
[s(x1)] | = | x1 + 64571 |
[minus(x1, x2)] | = | max(x1 + 1, x2 + 58716, 0) |
[gcd(x1, x2)] | = | max(0) |
[min#(x1, x2)] | = | max(0) |
[transform#(x1)] | = | 0 |
[0] | = | 5854 |
[transform(x1)] | = | 64573 |
[max(x1, x2)] | = | max(x1 + 58715, x2 + 58713, 0) |
[max#(x1, x2)] | = | max(0) |
[minus#(x1, x2)] | = | max(0) |
[min(x1, x2)] | = | max(x1 + 5854, 0) |
[cons(x1, x2)] | = | max(x2 + 1, 0) |
[gcd#(x1, x2)] | = | max(x1 + 5857, x2 + 1, 0) |
max(x,0) | → | x | (4) |
minus(s(x),s(y)) | → | s(minus(x,y)) | (8) |
min(x,0) | → | 0 | (1) |
min(s(x),s(y)) | → | s(min(x,y)) | (3) |
max(0,y) | → | y | (5) |
minus(x,0) | → | x | (7) |
max(s(x),s(y)) | → | s(max(x,y)) | (6) |
min(0,y) | → | 0 | (2) |
gcd#(s(x),s(y)) | → | gcd#(minus(max(x,y),min(x,transform(y))),s(min(x,y))) | (27) |
The dependency pairs are split into 0 components.
minus#(s(x),s(y)) | → | minus#(x,y) | (19) |
[cons#(x1, x2)] | = | 0 |
[s(x1)] | = | x1 + 3 |
[minus(x1, x2)] | = | 1 |
[gcd(x1, x2)] | = | 0 |
[min#(x1, x2)] | = | 0 |
[transform#(x1)] | = | 0 |
[0] | = | 52869 |
[transform(x1)] | = | 5 |
[max(x1, x2)] | = | x1 + x2 + 36336 |
[max#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | x2 + 0 |
[min(x1, x2)] | = | 52868 |
[cons(x1, x2)] | = | x2 + 1 |
[gcd#(x1, x2)] | = | 0 |
minus#(s(x),s(y)) | → | minus#(x,y) | (19) |
The dependency pairs are split into 0 components.
min#(s(x),s(y)) | → | min#(x,y) | (22) |
[cons#(x1, x2)] | = | 0 |
[s(x1)] | = | x1 + 3 |
[minus(x1, x2)] | = | 1 |
[gcd(x1, x2)] | = | 0 |
[min#(x1, x2)] | = | x2 + 0 |
[transform#(x1)] | = | 0 |
[0] | = | 2 |
[transform(x1)] | = | 5 |
[max(x1, x2)] | = | x1 + x2 + 36336 |
[max#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[min(x1, x2)] | = | 1 |
[cons(x1, x2)] | = | x2 + 1 |
[gcd#(x1, x2)] | = | 0 |
min#(s(x),s(y)) | → | min#(x,y) | (22) |
The dependency pairs are split into 0 components.
max#(s(x),s(y)) | → | max#(x,y) | (28) |
[cons#(x1, x2)] | = | 0 |
[s(x1)] | = | x1 + 3 |
[minus(x1, x2)] | = | 1 |
[gcd(x1, x2)] | = | 0 |
[min#(x1, x2)] | = | 0 |
[transform#(x1)] | = | 0 |
[0] | = | 2 |
[transform(x1)] | = | 5 |
[max(x1, x2)] | = | x1 + x2 + 42004 |
[max#(x1, x2)] | = | x1 + x2 + 0 |
[minus#(x1, x2)] | = | 0 |
[min(x1, x2)] | = | 1 |
[cons(x1, x2)] | = | x2 + 1 |
[gcd#(x1, x2)] | = | 0 |
max#(s(x),s(y)) | → | max#(x,y) | (28) |
The dependency pairs are split into 0 components.
cons#(x,cons(y,s(z))) | → | cons#(y,x) | (23) |
cons#(cons(x,z),s(y)) | → | transform#(x) | (21) |
transform#(cons(x,y)) | → | cons#(cons(x,x),x) | (20) |
transform#(cons(x,y)) | → | cons#(x,x) | (25) |
transform#(s(x)) | → | transform#(x) | (17) |
[cons#(x1, x2)] | = | max(x1 + 40118, x2 + 18458, 0) |
[s(x1)] | = | x1 + 0 |
[minus(x1, x2)] | = | max(x1 + 46883, x2 + 46884, 0) |
[gcd(x1, x2)] | = | max(0) |
[min#(x1, x2)] | = | max(0) |
[transform#(x1)] | = | x1 + 61776 |
[0] | = | 1 |
[transform(x1)] | = | x1 + 64976 |
[max(x1, x2)] | = | max(x1 + 31893, x2 + 1, 0) |
[max#(x1, x2)] | = | max(0) |
[minus#(x1, x2)] | = | max(0) |
[min(x1, x2)] | = | max(x1 + 1, 0) |
[cons(x1, x2)] | = | max(x1 + 43316, x2 + 21659, 0) |
[gcd#(x1, x2)] | = | max(x1 + 5857, x2 + 1, 0) |
max(x,0) | → | x | (4) |
cons(x,cons(y,s(z))) | → | cons(y,x) | (15) |
minus(s(x),s(y)) | → | s(minus(x,y)) | (8) |
min(x,0) | → | 0 | (1) |
min(s(x),s(y)) | → | s(min(x,y)) | (3) |
cons(cons(x,z),s(y)) | → | transform(x) | (16) |
max(0,y) | → | y | (5) |
transform(x) | → | s(s(x)) | (10) |
minus(x,0) | → | x | (7) |
cons(x,y) | → | y | (14) |
transform(cons(x,y)) | → | y | (12) |
transform(cons(x,y)) | → | cons(cons(x,x),x) | (11) |
transform(s(x)) | → | s(s(transform(x))) | (13) |
max(s(x),s(y)) | → | s(max(x,y)) | (6) |
min(0,y) | → | 0 | (2) |
cons#(x,cons(y,s(z))) | → | cons#(y,x) | (23) |
cons#(cons(x,z),s(y)) | → | transform#(x) | (21) |
transform#(cons(x,y)) | → | cons#(cons(x,x),x) | (20) |
transform#(cons(x,y)) | → | cons#(x,x) | (25) |
The dependency pairs are split into 1 component.
transform#(s(x)) | → | transform#(x) | (17) |
[cons#(x1, x2)] | = | 0 |
[s(x1)] | = | x1 + 3 |
[minus(x1, x2)] | = | 1 |
[gcd(x1, x2)] | = | 0 |
[min#(x1, x2)] | = | 0 |
[transform#(x1)] | = | x1 + 1 |
[0] | = | 2 |
[transform(x1)] | = | 4 |
[max(x1, x2)] | = | x1 + x2 + 38145 |
[max#(x1, x2)] | = | 0 |
[minus#(x1, x2)] | = | 0 |
[min(x1, x2)] | = | 1 |
[cons(x1, x2)] | = | 2 |
[gcd#(x1, x2)] | = | 0 |
transform#(s(x)) | → | transform#(x) | (17) |
The dependency pairs are split into 0 components.