spot/src/bin
Alexandre Duret-Lutz a4b63e8e7f dot: heuristic to switch between circles and ellipses
* src/twaalgos/dotty.cc: Add an option (e) to force elliptic shape, and
a heuristic to choose between circle and ellipse by default.
* src/bin/common_aoutput.cc, src/bin/dstar2tgba.cc: Document 'e'.
* src/taalgos/dotty.cc: Ignore 'e'.
* wrap/python/spot.py (setup): Do not force circular states.  The
default should be fine.
* src/tests/det.test, src/tests/dstar.test, src/tests/monitor.test,
src/tests/neverclaimread.test, src/tests/readsave.test,
src/tests/sccdot.test, src/tests/tgbagraph.test: Adjust expected
results.
* NEWS: Adjust.
2015-04-28 18:25:37 +02:00
..
man man: fix section number of spot-x.7 2015-03-17 19:28:34 +01:00
.gitignore ltldo: new binary 2015-01-27 08:18:15 +01:00
autfilt.cc autfilt: -uc should count the number of non-isomorphic automata 2015-04-28 18:25:10 +02:00
common_aoutput.cc dot: heuristic to switch between circles and ellipses 2015-04-28 18:25:37 +02:00
common_aoutput.hh rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
common_conv.cc rename tgba_digraph as twa_graph 2015-04-22 16:57:21 +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 bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
common_finput.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_output.cc ltlfilt: add a --define option 2015-04-22 16:47:01 +02:00
common_output.hh rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
common_post.cc bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
common_post.hh rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +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: use enums instead of #define for option codes 2015-03-02 16:55:56 +01: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: Update default options of ltl3dra 2015-03-30 21:57:04 +02:00
common_trans.hh rename tgba files as twa 2015-04-22 16:57:22 +02:00
dstar2tgba.cc dot: heuristic to switch between circles and ellipses 2015-04-28 18:25:37 +02:00
genltl.cc bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
ltl2tgba.cc rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
ltl2tgta.cc rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
ltlcross.cc rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
ltldo.cc rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
ltlfilt.cc rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
ltlgrind.cc bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01: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 rename src/tgbaalgos/ as src/twaalgos/ 2015-04-22 17:58:06 +02:00
randltl.cc randltl: some code cleanup 2015-03-08 13:50:12 +01:00
README bin: tooling and documentation about option names 2015-01-03 17:08:14 +01:00
spot-x.cc degen: add a lowinit option 2015-04-01 17:33:15 +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.