autfilt: %w shows an accepting word

* src/bin/autfilt.cc: Support %w.
* src/tgbatest/readsave.test: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2014-12-17 10:19:49 +01:00
parent a626a32dbc
commit b83d6d7f29
2 changed files with 41 additions and 0 deletions

View file

@ -270,3 +270,17 @@ EOF
$autfilt --merge -Hm input --name="%E->%e edges, %T->%t transitions" > output
diff output expected
cat <<EOF | $ltl2tgba -x degen-skip=1 -F- --ba -H > tmp.hoa
a U b
false
!b && Xb && GFa
EOF
$autfilt <tmp.hoa --stats='"%M","%w"' > output
cat >expected <<EOF
"a U b","cycle{b}"
"0",""
"!b & X(b & GFa)","!b; cycle{a & b}"
EOF
diff output expected