autfilt: add options to filter by SCC count and types
* bin/autfilt.cc: Implement those options. * NEWS: Mention them. * doc/org/randaut.org: Add a quick example. * tests/core/strength.test: Add some basic tests. * tests/core/acc_word.test: Adjust options abbreviations.
This commit is contained in:
parent
b79e307258
commit
e50ff35d0f
5 changed files with 165 additions and 5 deletions
|
|
@ -49,8 +49,8 @@ randltl -n -1 a b | ltlfilt --simplify --uniq \
|
|||
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
|
||||
autfilt --reject-w='foobar' </dev/null 2>error && exit 1
|
||||
autfilt --accept-w='cycle{foo' </dev/null 2>>error && exit 1
|
||||
cat error
|
||||
cat >expect <<EOF
|
||||
autfilt: failed to parse the argument of --reject-word:
|
||||
|
|
|
|||
|
|
@ -956,3 +956,13 @@ diff out2 expected2
|
|||
# Make sure no property are lost
|
||||
autfilt -H1.1 out2 > out3
|
||||
diff out3 expected2
|
||||
|
||||
|
||||
test 2 = `autfilt -c --sccs=4 out`
|
||||
test 5 = `autfilt -c --sccs=2 out`
|
||||
test 1 = `autfilt -c -v --inherently-weak-sccs=1.. out`
|
||||
test 2 = `autfilt -c --weak-sccs=2 out`
|
||||
test 14 = `autfilt -c --terminal-sccs=1 out`
|
||||
test 2 = `autfilt -c --terminal-sccs=1 --inherently-weak-sccs=2 out`
|
||||
test 4 = `autfilt -c --rejecting-sccs=1 --accepting-sccs=1 out`
|
||||
test 0 = `autfilt -c --trivial-sccs=1.. out`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue