lbtt_parse: add support for state-based acceptance

* src/tgbaalgos/lbtt.cc (lbtt_read_gba): New function.
(lbtt_parse): Call lbtt_read_gba.
* src/tgbatest/lbttparse.test: Add a test.
This commit is contained in:
Alexandre Duret-Lutz 2012-10-13 17:38:32 +02:00
parent 37b0809c44
commit a7d7d8d0ef
2 changed files with 102 additions and 1 deletions

View file

@ -39,3 +39,29 @@ do
l=`expr $st \* 2 + $tr + 1`
test "$s" -eq "$l"
done
# This is the output of 'lbt' on the formula 'U p0 p1'.
cat >Up0p1 <<EOF
4 1
0 1 -1
1 p0
2 p1
-1
1 0 -1
1 p0
2 p1
-1
2 0 0 -1
3 t
-1
3 0 0 -1
3 t
-1
EOF
run 0 ../ltl2tgba -ks -XL Up0p1 > size
test "`cat size | sed -n 's/states: //p'`" = 4
test "`cat size | sed -n 's/transitions: //p'`" = 6