spot/src/bin
Alexandre Duret-Lutz 9b5340b90a dstarparse: get rid of the deticated data structures and conversions
* src/dstarparse/dstarparse.yy: Use the twa_graph_ptr to store the
acceptance condition.
* src/dstarparse/dra2ba.cc, src/dstarparse/dstar2tgba.cc,
src/dstarparse/nra2nba.cc, src/dstarparse/nsa2tgba.cc: Delete
all these conversion routines.
* src/dstarparse/public.hh, src/dstarparse/Makefile.am: Adjust.
* src/bin/dstar2tgba.cc: Adjust to call to_generalized_buchi()
instead.
* src/bin/ltlcross.cc: Adjust to call remove_fin() instead.
* src/bin/ltldo.cc: Use the parsed automaton as-is.
* src/tests/degenid.test, src/tests/dstar.test, src/tests/ikwiad.cc:
Adjust test cases.
2015-08-20 21:34:38 +02:00
..
man * src/bin/man/ltlcross.x: Document %N, %T, %H. 2015-08-13 16:50:15 +02:00
.gitignore ltldo: new binary 2015-01-27 08:18:15 +01:00
autfilt.cc bin: make it clear that -B produces state-based acceptance 2015-07-16 17:49:21 +02:00
common_aoutput.cc hoaparse: rename to parseaut 2015-06-11 13:31:13 +02:00
common_aoutput.hh hoaparse: rename to parseaut 2015-06-11 13:31:13 +02:00
common_conv.cc hoaparse: rename to parseaut 2015-06-11 13:31:13 +02:00
common_conv.hh rename tgba files as twa 2015-04-22 16:57:22 +02:00
common_cout.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
common_cout.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_file.cc ltlcross: allow appending to files via >>FILENAME 2015-02-14 17:39:51 +01:00
common_file.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_finput.cc ltlparse: rename the main functions 2015-06-04 09:26:57 +02:00
common_finput.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_output.cc ltlvisit: rename tostring.hh as print.hh and rename printer functions 2015-06-04 22:56:57 +02:00
common_output.hh rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
common_post.cc postproc: add a SBAcc option 2015-05-14 21:05:12 +02:00
common_post.hh postproc: add a SBAcc option 2015-05-14 21:05:12 +02:00
common_r.cc Adding python functions to mirror the functionalities found in src/bin 2015-03-08 00:07:25 +01:00
common_r.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_range.cc autfilt: --states=RANGE 2014-12-15 11:59:06 +01:00
common_range.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_setup.cc bin: clear temporary files on termination signals 2015-06-01 17:50:02 +02:00
common_setup.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_sys.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_trans.cc bin: better shell quoting for ltlcross and ltldo 2015-07-16 22:39:26 +02:00
common_trans.hh rename tgba files as twa 2015-04-22 16:57:22 +02:00
dstar2tgba.cc dstarparse: get rid of the deticated data structures and conversions 2015-08-20 21:34:38 +02:00
genltl.cc bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
ltl2tgba.cc bin: make it clear that -B produces state-based acceptance 2015-07-16 17:49:21 +02:00
ltl2tgta.cc adjust names for automata printers 2015-06-05 21:42:29 +02:00
ltlcross.cc dstarparse: get rid of the deticated data structures and conversions 2015-08-20 21:34:38 +02:00
ltldo.cc dstarparse: get rid of the deticated data structures and conversions 2015-08-20 21:34:38 +02:00
ltlfilt.cc ltlfilt: add --unabbreviate 2015-08-17 17:38:47 +02:00
ltlgrind.cc man: improve typesetting and prepare for html output 2015-08-13 09:06:21 +02:00
Makefile.am ltlcross: allow appending to files via >>FILENAME 2015-02-14 17:39:51 +01:00
options.py bin: tooling and documentation about option names 2015-01-03 17:08:14 +01:00
randaut.cc graph: rename num_transitions() as num_edges() 2015-06-11 23:52:02 +02:00
randltl.cc ltlvisit: rename tostring.hh as print.hh and rename printer functions 2015-06-04 22:56:57 +02:00
README bin: tooling and documentation about option names 2015-01-03 17:08:14 +01:00
spot-x.cc bin: fix documentation of degeneralization option 2015-06-16 11:06:32 +02:00

This directory contains the source of some command-line tools that
expose some of Spot's algorithms to Unix users.

Man pages are generated from the --help output of each tool,
supplemented by any text in the man/*.x files.  Usually the extra text
contains either some bibliographical references, some formal
definitions or some examples that are too long for --help.  Having a
few short examples at the end of --help is good.

This directory also build some non-installed binaries, like spot-x,
whose purpose is just to generate a man-page with the same format as
the other man pages (this includes keeping the version number
up-to-date).

There is also a script called 'options.py' that summerizes how the
different short options are used among the tools.

Routines that are shared by multiple command-line tools are stored in
files called common_*.{cc,hh}.


Recommendations when adding new tools or features:
--------------------------------------------------

 - Tools should be designed to work on multiple inputs (e.g., read
   different outputs from multiple files, and accept many inputs from
   the same file, including stdin).  They should also all be designed
   to produce several outputs, usually one per input.  This way they
   can be piped one onto the other easily.

 - When naming an option, seek inspiration from the POSIX standard, or
   from GNU extensions.  For instance ltlfilt and autfilt both have a
   -v option to invert the filter; this is inspired from grep's -v
   option.  The long version of this option (--invert-match) is also
   the same as in grep.

 - When adding a new option, implement only the --long-option by
   default.  Do not add a short version unless
     (1) you are sure it will be frequently used interactively
         (if it is only used in scripts, then a long option is enough)
     (2) this option can be shared by multiple tools.

 - As much as possible, use the same option names across tools.  Use
   the script options.py in this directory to check what short options
   are used.  It's OK if the same short option correspond to different
   long names in the various tools, as long as the intent is similar.
   For instance -n has different long options depending on the tool:
     autfilt -n N     means   --max-count=N
     randltl -n N     means   --formulas=N
     randaut -n N     means   --automata=N
  but in all cases, the intent is to specify the number of items
  to output.