spot/src/bin
Alexandre Duret-Lutz 6a2aad6259 never: add an option to output in Spin's 6.2.4 style
Fixes #46.

* src/tgbaalgos/neverclaim.cc: Add option '6'.
* src/bin/common_aoutput.cc, src/bin/dstar2tgba.cc: Make it
possible to use the option.
* NEWS, doc/org/oaut.org: Document it.
* src/tgbatest/ltlcross2.test: Test it.
2015-01-09 22:52:46 +01:00
..
man randaut: new binary 2014-11-29 16:04:26 +01:00
.gitignore More files to ignore. 2015-01-03 19:01:44 +01:00
autfilt.cc product: rename the one-the-fly version as otf_product 2015-01-09 08:23:49 +01:00
common_aoutput.cc never: add an option to output in Spin's 6.2.4 style 2015-01-09 22:52:46 +01:00
common_aoutput.hh bin: use common_aoutput in ltl2tgba 2015-01-03 17:08:14 +01:00
common_cout.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
common_cout.hh Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
common_finput.cc c++11: replace push(Type(args...)) by emplace(args...) 2014-02-12 14:08:47 +01:00
common_finput.hh bin: add support for reading formulas from CSV files. 2013-12-06 11:09:36 +01:00
common_output.cc ltlfilt: implement -q/--quiet as in grep 2014-12-11 15:34:39 +01:00
common_output.hh ltlfilt: implement -q/--quiet as in grep 2014-12-11 15:34:39 +01:00
common_post.cc autfilt: first stub 2014-11-19 23:24:09 +01:00
common_post.hh autfilt: first stub 2014-11-19 23:24:09 +01:00
common_r.cc bin: Fix handling of LTL simplification options. 2013-03-02 15:36:26 +01:00
common_r.hh Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
common_range.cc autfilt: --states=RANGE 2014-12-15 11:59:06 +01:00
common_range.hh autfilt: --states=RANGE 2014-12-15 11:59:06 +01:00
common_setup.cc * src/bin/common_setup.cc: bump copyright year to 2015. 2015-01-03 17:08:14 +01:00
common_setup.hh spot-x.7: new man page for common fine-tuning options 2013-04-09 15:05:55 +02:00
common_sys.hh Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
dstar2tgba.cc never: add an option to output in Spin's 6.2.4 style 2015-01-09 22:52:46 +01:00
genltl.cc c++11: use for(auto...) to simplify code in src/bin/. 2014-02-12 14:06:15 +01:00
ltl2tgba.cc ltl2tgba, randaut: better error reporting 2015-01-04 11:24:31 +01:00
ltl2tgta.cc Handle all automata through shared_ptr. (monstro patch) 2014-08-15 11:07:05 +02:00
ltlcross.cc sccinfo: make it easier to iterate over all SCCs 2015-01-09 13:46:13 +01:00
ltlfilt.cc product: rename the one-the-fly version as otf_product 2015-01-09 08:23:49 +01:00
ltlgrind.cc ltlgrind: cosmetics 2015-01-03 17:08:14 +01:00
Makefile.am bin: tooling and documentation about option names 2015-01-03 17:08:14 +01:00
options.py bin: tooling and documentation about option names 2015-01-03 17:08:14 +01:00
randaut.cc ltl2tgba, randaut: better error reporting 2015-01-04 11:24:31 +01:00
randltl.cc defaultenv: simplify usage 2014-11-30 19:53:14 +01:00
README bin: tooling and documentation about option names 2015-01-03 17:08:14 +01:00
spot-x.cc postproc: Add a degen-lskip option. 2014-04-07 18:21:06 +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.