The rewrite relation of the following TRS is considered.
max(L(x)) | → | x | (1) |
max(N(L(0),L(y))) | → | y | (2) |
max(N(L(s(x)),L(s(y)))) | → | s(max(N(L(x),L(y)))) | (3) |
max(N(L(x),N(y,z))) | → | max(N(L(x),L(max(N(y,z))))) | (4) |
final states:
{0, 1}
transitions:
L0(0) | → | 0 |
N0(0,0) | → | 0 |
00 | → | 0 |
s0(0) | → | 0 |
max0(0) | → | 1 |
L1(0) | → | 4 |
L1(0) | → | 5 |
N1(4,5) | → | 3 |
max1(3) | → | 2 |
s1(2) | → | 1 |
N1(0,0) | → | 8 |
max1(8) | → | 7 |
L1(7) | → | 6 |
N1(4,6) | → | 3 |
max1(3) | → | 1 |
s1(2) | → | 7 |
max1(3) | → | 7 |
L1(2) | → | 5 |
0 | → | 1 |
0 | → | 7 |
0 | → | 2 |
7 | → | 1 |
7 | → | 2 |
2 | → | 1 |
2 | → | 7 |