The rewrite relation of the following TRS is considered.
f(0) | → | s(0) | (1) |
f(s(0)) | → | s(0) | (2) |
f(s(s(x))) | → | f(f(s(x))) | (3) |
f(0'(x)) | → | s(0'(x)) | (4) |
f(s(0'(x))) | → | s(0'(x)) | (5) |
f(s(s(x))) | → | f(f(s(x))) | (3) |
0'(f(x)) | → | 0'(s(x)) | (6) |
0'(s(f(x))) | → | 0'(s(x)) | (7) |
s(s(f(x))) | → | s(f(f(x))) | (8) |
final states:
{0, 1, 2}
transitions:
0'0(0) | → | 0 |
0'0(1) | → | 0 |
0'0(2) | → | 0 |
f0(0) | → | 1 |
f0(1) | → | 1 |
f0(2) | → | 1 |
s0(0) | → | 2 |
s0(1) | → | 2 |
s0(2) | → | 2 |
s1(0) | → | 3 |
0'1(3) | → | 0 |
s1(1) | → | 3 |
s1(2) | → | 3 |
f1(0) | → | 5 |
f1(5) | → | 4 |
s1(4) | → | 2 |
f1(1) | → | 5 |
f1(2) | → | 5 |
s1(5) | → | 3 |
f2(5) | → | 7 |
f2(7) | → | 6 |
s2(6) | → | 3 |
s2(0) | → | 8 |
0'2(8) | → | 0 |
s2(5) | → | 8 |
s2(1) | → | 8 |
s2(2) | → | 8 |
s2(7) | → | 8 |
s3(5) | → | 9 |
0'3(9) | → | 0 |
s1(7) | → | 3 |
f1(7) | → | 5 |
s3(7) | → | 9 |
4 | → | 5 |
2 | → | 8 |
6 | → | 0 |