bin: implement --output for automata
Fixes #56. * src/bin/common_aoutput.cc, src/bin/common_aoutput.hh, src/bin/dstar2tgba.cc: Implement it. * src/bin/autfilt.cc, src/bin/ltl2tgba.cc, src/bin/ltldo.cc, src/bin/randaut.cc: Fix main() to catch exceptions from the constructor of the automaton printer as well. * src/tgbatest/randaut.test: Add a test case. * doc/org/oaut.org: Document it.
This commit is contained in:
parent
d17d7469c3
commit
1e7c1e5cdd
9 changed files with 214 additions and 78 deletions
|
|
@ -71,3 +71,13 @@ diff out2 expected
|
|||
|
||||
$randaut -n 5 --dot=@ a 2>stderr && exit 1
|
||||
grep 'randaut: unknown option.*@' stderr
|
||||
|
||||
$randaut -n -1 -S2 2 -H | $autfilt -H --is-deterministic -n 3 -o out.hoa
|
||||
$randaut -n -1 -S2 2 -H | $autfilt -H -v --is-deterministic -n 4 -o '>>out.hoa'
|
||||
$autfilt -H out.hoa -o 'out-det%d.hoa'
|
||||
$autfilt -H out.hoa -o '>>out-det%d.hoa'
|
||||
test 8 = `$autfilt -c out-det0.hoa`
|
||||
test 6 = `$autfilt -c out-det1.hoa`
|
||||
|
||||
$autfilt -H out.hoa -o foo -c 2>stderr && exit 1
|
||||
grep 'autfilt: options --output and --count are incompatible' stderr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue