The rewrite relation of the following TRS is considered.
-(x,0) | → | x | (1) |
-(0,s(y)) | → | 0 | (2) |
-(s(x),s(y)) | → | -(x,y) | (3) |
lt(x,0) | → | false | (4) |
lt(0,s(y)) | → | true | (5) |
lt(s(x),s(y)) | → | lt(x,y) | (6) |
if(true,x,y) | → | x | (7) |
if(false,x,y) | → | y | (8) |
div(x,0) | → | 0 | (9) |
div(0,y) | → | 0 | (10) |
div(s(x),s(y)) | → | if(lt(x,y),0,s(div(-(x,y),s(y)))) | (11) |
div#(s(x),s(y)) | → | if#(lt(x,y),0,s(div(-(x,y),s(y)))) | (12) |
-#(s(x),s(y)) | → | -#(x,y) | (13) |
div#(s(x),s(y)) | → | -#(x,y) | (14) |
div#(s(x),s(y)) | → | lt#(x,y) | (15) |
lt#(s(x),s(y)) | → | lt#(x,y) | (16) |
div#(s(x),s(y)) | → | div#(-(x,y),s(y)) | (17) |
The dependency pairs are split into 3 components.
div#(s(x),s(y)) | → | div#(-(x,y),s(y)) | (17) |
[div#(x1, x2)] | = | x1 + 0 |
[s(x1)] | = | x1 + 28959 |
[lt#(x1, x2)] | = | 0 |
[false] | = | 0 |
[div(x1, x2)] | = | 0 |
[true] | = | 0 |
[0] | = | 1 |
[if(x1, x2, x3)] | = | 0 |
[-(x1, x2)] | = | x1 + 28958 |
[-#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[lt(x1, x2)] | = | 0 |
-(x,0) | → | x | (1) |
-(s(x),s(y)) | → | -(x,y) | (3) |
-(0,s(y)) | → | 0 | (2) |
div#(s(x),s(y)) | → | div#(-(x,y),s(y)) | (17) |
The dependency pairs are split into 0 components.
lt#(s(x),s(y)) | → | lt#(x,y) | (16) |
[div#(x1, x2)] | = | x1 + 0 |
[s(x1)] | = | x1 + 28959 |
[lt#(x1, x2)] | = | x1 + x2 + 0 |
[false] | = | 0 |
[div(x1, x2)] | = | 0 |
[true] | = | 0 |
[0] | = | 1 |
[if(x1, x2, x3)] | = | 0 |
[-(x1, x2)] | = | x1 + 28958 |
[-#(x1, x2)] | = | 0 |
[if#(x1, x2, x3)] | = | 0 |
[lt(x1, x2)] | = | 0 |
-(x,0) | → | x | (1) |
-(s(x),s(y)) | → | -(x,y) | (3) |
-(0,s(y)) | → | 0 | (2) |
lt#(s(x),s(y)) | → | lt#(x,y) | (16) |
The dependency pairs are split into 0 components.
-#(s(x),s(y)) | → | -#(x,y) | (13) |
[div#(x1, x2)] | = | x1 + 0 |
[s(x1)] | = | x1 + 28959 |
[lt#(x1, x2)] | = | 0 |
[false] | = | 0 |
[div(x1, x2)] | = | 0 |
[true] | = | 0 |
[0] | = | 1 |
[if(x1, x2, x3)] | = | 0 |
[-(x1, x2)] | = | x1 + 28958 |
[-#(x1, x2)] | = | x1 + x2 + 0 |
[if#(x1, x2, x3)] | = | 0 |
[lt(x1, x2)] | = | 0 |
-(x,0) | → | x | (1) |
-(s(x),s(y)) | → | -(x,y) | (3) |
-(0,s(y)) | → | 0 | (2) |
-#(s(x),s(y)) | → | -#(x,y) | (13) |
The dependency pairs are split into 0 components.