The rewrite relation of the following TRS is considered.
times(x,plus(y,1)) | → | plus(times(x,plus(y,times(1,0))),x) | (1) |
times(x,1) | → | x | (2) |
plus(x,0) | → | x | (3) |
times(x,0) | → | 0 | (4) |
times#(x,plus(y,1)) | → | times#(x,plus(y,times(1,0))) | (5) |
times#(x,plus(y,1)) | → | plus#(y,times(1,0)) | (6) |
times#(x,plus(y,1)) | → | plus#(times(x,plus(y,times(1,0))),x) | (7) |
times#(x,plus(y,1)) | → | times#(1,0) | (8) |
The dependency pairs are split into 1 component.
times#(x,plus(y,1)) | → | times#(x,plus(y,times(1,0))) | (5) |
prec(1) | = | 3 | status(1) | = | [] | list-extension(1) | = | Lex | ||
prec(plus#) | = | 0 | status(plus#) | = | [1, 2] | list-extension(plus#) | = | Lex | ||
prec(times#) | = | 0 | status(times#) | = | [2] | list-extension(times#) | = | Lex | ||
prec(0) | = | 0 | status(0) | = | [] | list-extension(0) | = | Lex | ||
prec(times) | = | 2 | status(times) | = | [2] | list-extension(times) | = | Lex | ||
prec(plus) | = | 1 | status(plus) | = | [2, 1] | list-extension(plus) | = | Lex |
[1] | = | 8367 |
[plus#(x1, x2)] | = | max(x1 + 1, x2 + 1, 0) |
[times#(x1, x2)] | = | x2 + 0 |
[0] | = | 0 |
[times(x1, x2)] | = | x1 + x2 + 0 |
[plus(x1, x2)] | = | max(x1 + 0, x2 + 8366, 0) |
times(x,0) | → | 0 | (4) |
times(x,plus(y,1)) | → | plus(times(x,plus(y,times(1,0))),x) | (1) |
plus(x,0) | → | x | (3) |
times(x,1) | → | x | (2) |
times#(x,plus(y,1)) | → | times#(x,plus(y,times(1,0))) | (5) |
The dependency pairs are split into 0 components.