autfilt: fix --accept-word
* bin/autfilt.cc: Translate each word as an automaton once, and do not make a global product of all of them. * spot/twaalgos/word.cc: Register the atomic propositions used by the word when converting it into an automaton. * tests/core/acc_word.test: Add a test case that used to fail, and another test that make sure some words are not accepted.
This commit is contained in:
parent
8360c4e856
commit
897a6ddc04
3 changed files with 34 additions and 30 deletions
|
|
@ -21,7 +21,12 @@
|
|||
|
||||
# The --accept-word option filters automata that accept the given word
|
||||
# If several words are given, it filters automata that accept ALL words
|
||||
ltl2tgba 'G!a' | autfilt --accept-word 'b; cycle{!a}'
|
||||
ltl2tgba 'a U b' | autfilt --accept-word 'a; a; cycle{b}'
|
||||
ltl2tgba 'G!a' | autfilt --accept-word 'b; cycle{!a}' -q
|
||||
ltl2tgba 'a U b' | autfilt --accept-word 'a; a; cycle{b}' -q
|
||||
ltl2tgba 'F(!a&b)' |
|
||||
autfilt --accept-word 'b; cycle{b; !a&b}' --accept-word 'cycle{b}'
|
||||
autfilt --accept-word 'b; cycle{b; !a&b}' --accept-word 'cycle{b}' -q
|
||||
ltl2tgba -f 'a U b' |
|
||||
autfilt --accept-word='cycle{!a}' --accept-word='a;cycle{b}' -q
|
||||
|
||||
ltl2tgba -f 'a U b' | autfilt --accept-word='cycle{!b}' -q && exit 1
|
||||
:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue