ltl2tgba: Add a --csv-escape option and document CSV I/O.

* src/bin/common_output.cc, src/bin/common_output.hh:
(output_formula_checked, aut_stat_printer): New.
* src/bin/genltl.cc, src/bin/randltl.cc, src/bin/ltlfilt.cc: Call
output_formula_checked() instead of output_formula().
* src/bin/ltl2tgba.cc: Use aut_stat_printer and add option --csv-escape.
* doc/org/csv.org: New file to document CSV I/O.
* doc/Makefile.am: Add it.
* doc/org/ioltl.org, doc/org/ltlfilt.org, doc/org/ltl2tgba.org,
doc/org/tools.org: Link to csv.org
This commit is contained in:
Alexandre Duret-Lutz 2013-11-29 18:46:02 +01:00
parent 0faea814da
commit 846e33b9e5
13 changed files with 399 additions and 39 deletions

View file

@ -551,15 +551,19 @@ following sequence of characters (other characters are output as-is):
ltl2tgba --help | sed -n '/^ *%/p'
#+END_SRC
#+RESULTS:
: %% a single %
: %a number of acceptance sets
: %c number of SCCs
: %d 1 if the automaton is deterministic, 0 otherwise
: %e number of edges
: %f the formula, in Spot's syntax
: %n number of nondeterministic states
: %s number of states
: %t number of transitions
#+begin_example
%% a single %
%a number of acceptance sets
%c number of SCCs
%d 1 if the automaton is deterministic, 0 otherwise
%e number of edges
%f the formula, in Spot's syntax
%n number of nondeterministic states
%p 1 if the automaton is complete, 0 otherwise
%r translation time (including pre- and
%s number of states
%t number of transitions
#+end_example
For instance we can study the size of the automata generated for the
right-nested =U= formulas as follows:
@ -592,6 +596,9 @@ Two automata with the same structures (states and edges) but differing
labels, may have a different count of transitions, e.g., if one has
more restricted labels.
[[file:csv.org][More examples of how to use =--stats= to create CSV
files are on a separate page]].
* Building Monitors
In addition to TGBA and BA, =ltl2tgba= can output /monitor/ using the