autfilt: --count

* src/bin/autfilt.cc: Add a --count option.
* src/tgbatest/randaut.test: Test autfilt's --count and --states.
This commit is contained in:
Alexandre Duret-Lutz 2014-12-15 12:06:34 +01:00
parent cad4d94cc2
commit 0d710f969b
2 changed files with 22 additions and 8 deletions

View file

@ -23,6 +23,7 @@
set -e
randaut=../../bin/randaut
autfilt=../../bin/autfilt
$randaut --spin -S4 a b | ../ltl2tgba -H -XN - >out
grep 'States: 4' out
@ -46,3 +47,8 @@ grep 'ba.*incompatible' stderr
$randaut --ba -A0 3 2>stderr && exit 1
grep 'ba.*incompatible' stderr
$randaut --states 10..20 2 -n 100 -H > aut.hoa
a=`$autfilt --states=..14 -c <aut.hoa`
b=`$autfilt aut.hoa --states=15.. -c`
test `expr $a + $b` = 100