The rewrite relation of the following TRS is considered.
f(X) | → | if(X,c,n__f(true)) | (1) |
if(true,X,Y) | → | X | (2) |
if(false,X,Y) | → | activate(Y) | (3) |
f(X) | → | n__f(X) | (4) |
activate(n__f(X)) | → | f(X) | (5) |
activate(X) | → | X | (6) |
final states:
{0, 1, 2, 3}
transitions:
c0 | → | 0 |
n__f0(0) | → | 0 |
true0 | → | 0 |
false0 | → | 0 |
f0(0) | → | 1 |
if0(0,0,0) | → | 2 |
activate0(0) | → | 3 |
c1 | → | 4 |
true1 | → | 6 |
n__f1(6) | → | 5 |
if1(0,4,5) | → | 1 |
activate1(0) | → | 2 |
n__f1(0) | → | 1 |
f1(0) | → | 3 |
c2 | → | 7 |
true2 | → | 9 |
n__f2(9) | → | 8 |
if2(0,7,8) | → | 3 |
activate1(5) | → | 1 |
n__f2(0) | → | 3 |
f1(0) | → | 2 |
if2(0,7,8) | → | 2 |
n__f2(0) | → | 2 |
f2(6) | → | 1 |
activate1(8) | → | 3 |
activate1(8) | → | 2 |
f2(9) | → | 3 |
c3 | → | 10 |
true3 | → | 12 |
n__f3(12) | → | 11 |
if3(6,10,11) | → | 1 |
n__f3(6) | → | 1 |
f2(9) | → | 2 |
if3(9,10,11) | → | 3 |
n__f3(9) | → | 3 |
if3(9,10,11) | → | 2 |
n__f3(9) | → | 2 |
0 | → | 2 |
0 | → | 3 |
4 | → | 1 |
5 | → | 1 |
7 | → | 3 |
7 | → | 2 |
8 | → | 3 |
8 | → | 2 |
10 | → | 1 |
10 | → | 3 |
10 | → | 2 |