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) |
minus(x,0) | → | x | (4) |
minus(s(x),s(y)) | → | minus(x,y) | (5) |
gcd(0,y) | → | y | (6) |
gcd(s(x),0) | → | s(x) | (7) |
gcd(s(x),s(y)) | → | if_gcd(le(y,x),s(x),s(y)) | (8) |
if_gcd(true,s(x),s(y)) | → | gcd(minus(x,y),s(y)) | (9) |
if_gcd(false,s(x),s(y)) | → | gcd(minus(y,x),s(x)) | (10) |
if_gcd#(true,s(x),s(y)) | → | minus#(x,y) | (11) |
le#(s(x),s(y)) | → | le#(x,y) | (12) |
gcd#(s(x),s(y)) | → | if_gcd#(le(y,x),s(x),s(y)) | (13) |
minus#(s(x),s(y)) | → | minus#(x,y) | (14) |
if_gcd#(false,s(x),s(y)) | → | gcd#(minus(y,x),s(x)) | (15) |
if_gcd#(true,s(x),s(y)) | → | gcd#(minus(x,y),s(y)) | (16) |
gcd#(s(x),s(y)) | → | le#(y,x) | (17) |
if_gcd#(false,s(x),s(y)) | → | minus#(y,x) | (18) |
The dependency pairs are split into 3 components.
if_gcd#(true,s(x),s(y)) | → | gcd#(minus(x,y),s(y)) | (16) |
if_gcd#(false,s(x),s(y)) | → | gcd#(minus(y,x),s(x)) | (15) |
gcd#(s(x),s(y)) | → | if_gcd#(le(y,x),s(x),s(y)) | (13) |
[le(x1, x2)] | = | 20165 |
[s(x1)] | = | x1 + 5 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 1 |
[gcd(x1, x2)] | = | 0 |
[false] | = | 20163 |
[true] | = | 20165 |
[0] | = | 1 |
[minus#(x1, x2)] | = | 0 |
[if_gcd(x1, x2, x3)] | = | 0 |
[if_gcd#(x1, x2, x3)] | = | x1 + x2 + x3 + 0 |
[gcd#(x1, x2)] | = | x1 + x2 + 20166 |
minus(x,0) | → | x | (4) |
le(0,y) | → | true | (1) |
le(s(x),s(y)) | → | le(x,y) | (3) |
minus(s(x),s(y)) | → | minus(x,y) | (5) |
le(s(x),0) | → | false | (2) |
if_gcd#(true,s(x),s(y)) | → | gcd#(minus(x,y),s(y)) | (16) |
if_gcd#(false,s(x),s(y)) | → | gcd#(minus(y,x),s(x)) | (15) |
gcd#(s(x),s(y)) | → | if_gcd#(le(y,x),s(x),s(y)) | (13) |
The dependency pairs are split into 0 components.
le#(s(x),s(y)) | → | le#(x,y) | (12) |
[le(x1, x2)] | = | 20165 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | x1 + x2 + 0 |
[minus(x1, x2)] | = | x1 + 1 |
[gcd(x1, x2)] | = | 0 |
[false] | = | 20163 |
[true] | = | 20165 |
[0] | = | 1 |
[minus#(x1, x2)] | = | 0 |
[if_gcd(x1, x2, x3)] | = | 0 |
[if_gcd#(x1, x2, x3)] | = | x1 + 0 |
[gcd#(x1, x2)] | = | x1 + 20166 |
minus(x,0) | → | x | (4) |
le(0,y) | → | true | (1) |
le(s(x),s(y)) | → | le(x,y) | (3) |
minus(s(x),s(y)) | → | minus(x,y) | (5) |
le(s(x),0) | → | false | (2) |
le#(s(x),s(y)) | → | le#(x,y) | (12) |
The dependency pairs are split into 0 components.
minus#(s(x),s(y)) | → | minus#(x,y) | (14) |
[le(x1, x2)] | = | 20165 |
[s(x1)] | = | x1 + 1 |
[le#(x1, x2)] | = | 0 |
[minus(x1, x2)] | = | x1 + 1 |
[gcd(x1, x2)] | = | 0 |
[false] | = | 20163 |
[true] | = | 20165 |
[0] | = | 1 |
[minus#(x1, x2)] | = | x1 + x2 + 0 |
[if_gcd(x1, x2, x3)] | = | 0 |
[if_gcd#(x1, x2, x3)] | = | x1 + 0 |
[gcd#(x1, x2)] | = | x1 + 20166 |
minus(x,0) | → | x | (4) |
le(0,y) | → | true | (1) |
le(s(x),s(y)) | → | le(x,y) | (3) |
minus(s(x),s(y)) | → | minus(x,y) | (5) |
le(s(x),0) | → | false | (2) |
minus#(s(x),s(y)) | → | minus#(x,y) | (14) |
The dependency pairs are split into 0 components.