ltlfilt: implement --reject-word and --accept-word
* bin/common_range.hh: Store the common definition of words. * bin/autfilt.cc: Use it. * bin/ltlfilt.cc: Likewise, and implement those two options. * tests/core/acc_word.test: Test them. * doc/org/autfilt.org: Augment the last example to point out that it can now be done with ltlfilt. * NEWS: Mention the new options.
This commit is contained in:
parent
901f287032
commit
59e1f6a339
6 changed files with 124 additions and 31 deletions
|
|
@ -42,6 +42,12 @@ F(!a & !b)
|
|||
EOF
|
||||
diff out expect
|
||||
|
||||
# The same, without using automata explicitly
|
||||
randltl -n -1 a b | ltlfilt --simplify --uniq \
|
||||
--accept-word='a&!b;cycle{!a&!b}' --accept-word='!a&!b;cycle{a&b}' \
|
||||
--reject-word='cycle{b}' -n 3 > out
|
||||
diff out expect
|
||||
|
||||
# Test syntax errors
|
||||
autfilt --reject='foobar' </dev/null 2>error && exit 1
|
||||
autfilt --accept='cycle{foo' </dev/null 2>>error && exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue