autfilt: Add --is-terminal and --is-weak.

Fixes #47.

* src/twaalgos/strength.cc, src/twaalgos/strength.hh
(is_weak_automaton): New function.
(is_terminal_automaton): Generalize slightly.
* src/bin/autfilt.cc: Add options --is-terminal and --is-weak.
* src/tests/readsave.test: Add a test.
* NEWS: Update.
This commit is contained in:
Alexandre Duret-Lutz 2015-11-07 15:30:51 +01:00
parent 81cfa05aef
commit f4cf0f4078
5 changed files with 103 additions and 38 deletions

4
NEWS
View file

@ -1,5 +1,9 @@
New in spot 1.99.5a (not yet released)
Command-line tools:
* autfilt has two now filters: --is-weak and --is-terminal.
Library:
* Properties of automata (like the "properties:" line of the HOA