add options to %x to list atomic propositions

* bin/common_aoutput.cc, bin/common_aoutput.hh, bin/common_output.cc,
bin/common_output.hh: Add options to %x to list atomic propositions
with various quoting scheme.  Deprecate --format=%a in favor of the
new --format=%x for consistency with --stats=%x.
* tests/core/format.test, tests/core/remprop.test: Adjust and add more
tests.
* NEWS: Mention these changes.
This commit is contained in:
Alexandre Duret-Lutz 2017-03-01 16:02:09 +01:00
parent e0d3291881
commit dfe02f722e
7 changed files with 169 additions and 39 deletions

12
NEWS
View file

@ -4,7 +4,9 @@ New in spot 2.3.1.dev (not yet released)
- In tools that output automata the number of atomic propositions
can be output using --stats=%x (output automaton) or --stats=%X
(input automaton).
(input automaton). Additional options can be passed to list
atomic propositions instead of conting them. Tools that output
formulas also support --format=%x for this purpose.
Bugs fixed:
@ -14,6 +16,14 @@ New in spot 2.3.1.dev (not yet released)
- Because of a typo, the output of --stats='...%P...' was correct
only if %p was used as well.
Deprecation notices:
- Using --format=%a to print the number of atomic propositions in
ltlfilt, genltl, and randltl still works, but it is not documented
anymore and should be replaced by the newly-introduced --format=%x
for consistency with tools producing automata.
New in spot 2.3.1 (2017-02-20)
Tools: