The rewrite relation of the following TRS is considered.
not(true) | → | false | (1) |
not(false) | → | true | (2) |
odd(0) | → | false | (3) |
odd(s(x)) | → | not(odd(x)) | (4) |
+(x,0) | → | x | (5) |
+(x,s(y)) | → | s(+(x,y)) | (6) |
+(s(x),y) | → | s(+(x,y)) | (7) |
final states:
{0, 1, 2, 3}
transitions:
true0 | → | 0 |
false0 | → | 0 |
00 | → | 0 |
s0(0) | → | 0 |
not0(0) | → | 1 |
odd0(0) | → | 2 |
+0(0,0) | → | 3 |
false1 | → | 1 |
true1 | → | 1 |
false1 | → | 2 |
odd1(0) | → | 4 |
not1(4) | → | 2 |
+1(0,0) | → | 5 |
s1(5) | → | 3 |
false1 | → | 4 |
not1(4) | → | 4 |
s1(5) | → | 5 |
true2 | → | 2 |
true2 | → | 4 |
false2 | → | 2 |
false2 | → | 4 |
0 | → | 3 |
0 | → | 5 |