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:
Alexandre Duret-Lutz 2016-04-21 16:44:24 +02:00
parent b79e307258
commit e50ff35d0f
5 changed files with 165 additions and 5 deletions

View file

@ -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`