The rewrite relation of the following TRS is considered.
f(nil) | → | nil | (1) |
f(.(nil,y)) | → | .(nil,f(y)) | (2) |
f(.(.(x,y),z)) | → | f(.(x,.(y,z))) | (3) |
g(nil) | → | nil | (4) |
g(.(x,nil)) | → | .(g(x),nil) | (5) |
g(.(x,.(y,z))) | → | g(.(.(x,y),z)) | (6) |
final states:
{0, 1, 2}
transitions:
nil0 | → | 0 |
.0(0,0) | → | 0 |
f0(0) | → | 1 |
g0(0) | → | 2 |
nil1 | → | 1 |
nil1 | → | 3 |
f1(0) | → | 4 |
.1(3,4) | → | 1 |
.1(0,0) | → | 6 |
.1(0,6) | → | 5 |
f1(5) | → | 1 |
nil1 | → | 2 |
g1(0) | → | 7 |
nil1 | → | 8 |
.1(7,8) | → | 2 |
.1(0,0) | → | 10 |
.1(10,0) | → | 9 |
g1(9) | → | 2 |
nil1 | → | 4 |
.1(3,4) | → | 4 |
f1(6) | → | 4 |
f1(5) | → | 4 |
.1(0,6) | → | 6 |
nil1 | → | 7 |
.1(7,8) | → | 7 |
g1(10) | → | 7 |
g1(9) | → | 7 |
.1(10,0) | → | 10 |