spot/src/bin
Alexandre Duret-Lutz 2f42c1c9bf randaut: add option --acc-type=random
Fixes #71.

* src/bin/randaut.cc: Implement option --acc-type.
* src/tgbaalgos/randomgraph.cc,
src/tgbaalgos/randomgraph.hh (random_acceptance): New function.
* src/tgbatest/randaut.test, wrap/python/tests/randaut.ipynb: Test it.
2015-03-31 13:50:56 +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 rename cleanup_acceptance() as cleanup_acceptance_here() 2015-03-31 10:44:53 +02:00
common_aoutput.cc dotty: colored acceptance sets 2015-03-17 19:28:34 +01:00
common_aoutput.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_conv.cc common_conv: Parse comma and space separated numbers 2015-02-16 10:51:05 +01:00
common_conv.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01: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 bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
common_output.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
common_post.cc bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
common_post.hh Replace guards by pragma once. 2015-03-23 10:19:55 +01: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 Replace guards by pragma once. 2015-03-23 10:19:55 +01:00
dstar2tgba.cc dotty: colored acceptance sets 2015-03-17 19:28:34 +01:00
genltl.cc bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
ltl2tgba.cc bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
ltl2tgta.cc bin: use enums instead of #define for option codes 2015-03-02 16:55:56 +01:00
ltlcross.cc rename cleanup_acceptance() as cleanup_acceptance_here() 2015-03-31 10:44:53 +02:00
ltldo.cc bin: implement --output for automata 2015-02-15 12:32:12 +01:00
ltlfilt.cc ltlfilt: add a --exclusive-ap option 2015-03-23 17:31:13 +01: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 randaut: add option --acc-type=random 2015-03-31 13:50:56 +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 simulation: get rid of the "don't care" simulation reductions 2015-01-19 18:17:44 +01: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.