bin: %a,%b,%s format specs for LTL output

* NEWS: Mention those.
* bin/common_output.cc, bin/common_output.hh: Implement them.
* bin/genltl.cc, bin/ltlfilt.cc, bin/ltlgrind.cc, bin/randltl.cc: Update
--help.
* tests/core/format.test: New file.
* tests/Makefile.am: Add it.
* doc/org/ioltl.org, doc/org/ltlfilt.org: Update documentation.
This commit is contained in:
Alexandre Duret-Lutz 2016-08-15 15:45:26 +02:00
parent 0210080152
commit 926ffbf965
11 changed files with 177 additions and 21 deletions

10
NEWS
View file

@ -1,5 +1,15 @@
New in spot 2.1.0a (not yet released)
Command-line tools:
* ltlfilt, randltl, genltl, and ltlgrind learned to display the size
(%s), Boolean size (%b), and number of atomic propositions (%b)
with the --format and --output options. A typical use is to sort
formulas by size:
genltl --dac --format='%s,%f' | sort -n | cut -d, -f2
or to group formulas by number of atomic propositions:
genltl --dac --output='ap-%a.ltl'
Bugs fixed:
* Fix several cases where command-line tools would fail to diagnose