spot/bin
Alexandre Duret-Lutz 2e50f9e986 autfilt: implement --has-univ-branching and --has-exist-branching
Fixes #352.

* bin/autfilt.cc: Add the options.
* tests/core/alternating.test: Test them.
* NEWS: Mention them.
2018-06-05 08:48:40 +02:00
..
man genltl: three new families --sejk-{j,k,patterns} 2018-06-03 20:20:59 +02:00
.gitignore add ltlsynt executable 2017-09-25 12:23:47 +02:00
autcross.cc fix and check shifting issue 2018-05-25 16:08:00 +02:00
autfilt.cc autfilt: implement --has-univ-branching and --has-exist-branching 2018-06-05 08:48:40 +02:00
common_aoutput.cc dot: add option K 2018-05-14 18:07:58 +02:00
common_aoutput.hh bin: add %g options to print acceptance name 2017-11-04 07:43:41 +01:00
common_color.cc bin: make sure that all options are in a named section 2017-09-26 21:28:16 +02:00
common_color.hh ltlcross: extract the color handling code 2017-07-26 12:10:36 +02:00
common_conv.cc bin: teach conversion options to report about the options 2018-05-21 17:39:38 +02:00
common_conv.hh bin: teach conversion options to report about the options 2018-05-21 17:39:38 +02:00
common_cout.cc bin: workaround flushing issues 2016-10-03 15:27:06 +02:00
common_cout.hh move spot/bin/ and spot/tests/ up by one level 2015-12-27 20:10:59 +01:00
common_file.cc bin: diagnose more write errors 2016-08-14 18:18:20 +02:00
common_file.hh bin: diagnose more write errors 2016-08-14 18:18:20 +02:00
common_finput.cc bin: make sure that all options are in a named section 2017-09-26 21:28:16 +02:00
common_finput.hh bin: make sure that all options are in a named section 2017-09-26 21:28:16 +02:00
common_hoaread.cc sanity: Replace tabulars by spaces in *.cc *.hh *.hxx 2016-03-10 17:40:46 +01:00
common_hoaread.hh bin: abort autcross on input parse error 2018-05-21 17:39:38 +02:00
common_output.cc genltl: add support for --sejk-f=n,m 2018-06-05 08:48:40 +02:00
common_output.hh genltl: add support for --sejk-f=n,m 2018-06-05 08:48:40 +02:00
common_post.cc autfilt: fix --sat-minimize -B 2018-03-28 18:20:44 +02:00
common_post.hh postproc: add support for colored-parity 2018-01-08 11:35:49 +01:00
common_r.cc move spot/bin/ and spot/tests/ up by one level 2015-12-27 20:10:59 +01:00
common_r.hh sanity: Replace tabulars by spaces in *.cc *.hh *.hxx 2016-03-10 17:40:46 +01:00
common_range.cc bin: improve range diagnostic 2016-06-21 18:15:08 +02:00
common_range.hh ltlfilt: implement --reject-word and --accept-word 2016-04-09 10:10:41 +02:00
common_setup.cc bin: add --usage back 2018-05-20 17:36:24 +02:00
common_setup.hh bin: factor exception-handling code 2018-05-16 20:15:04 +02:00
common_sys.hh move spot/bin/ and spot/tests/ up by one level 2015-12-27 20:10:59 +01:00
common_trans.cc bin: remove some dead code 2018-05-22 16:14:18 +02:00
common_trans.hh bin: remove some dead code 2018-05-22 16:14:18 +02:00
dstar2tgba.cc bin: factor exception-handling code 2018-05-16 20:15:04 +02:00
genaut.cc bin: factor exception-handling code 2018-05-16 20:15:04 +02:00
genltl.cc genltl: add support for --sejk-f=n,m 2018-06-05 08:48:40 +02:00
ltl2tgba.cc bin: factor exception-handling code 2018-05-16 20:15:04 +02:00
ltl2tgta.cc bin: remove dead code from ltl2tgta 2018-05-21 17:39:38 +02:00
ltlcross.cc fix and check shifting issue 2018-05-25 16:08:00 +02:00
ltldo.cc bin: teach conversion options to report about the options 2018-05-21 17:39:38 +02:00
ltlfilt.cc genltl: add support for --sejk-f=n,m 2018-06-05 08:48:40 +02:00
ltlgrind.cc bin: teach conversion options to report about the options 2018-05-21 17:39:38 +02:00
ltlsynt.cc bin: factor exception-handling code 2018-05-16 20:15:04 +02:00
Makefile.am add ltlsynt executable 2017-09-25 12:23:47 +02:00
options.py move spot/bin/ and spot/tests/ up by one level 2015-12-27 20:10:59 +01:00
randaut.cc bin: teach conversion options to report about the options 2018-05-21 17:39:38 +02:00
randltl.cc randltl: fix option --allow-dups 2018-05-23 12:01:43 +02:00
README bin: make sure that all options are in a named section 2017-09-26 21:28:16 +02:00
spot-x.cc complete reference to Esparza/Křetínský/Sickert LICS'18 paper 2018-04-02 16:41:45 +02:00
spot.cc man: mention ltlsynt in spot(7) 2017-10-15 12:22:22 +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 builds 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.

 - In the --help output, all options should appear in a named
   section (like "Input options:", "Output options:"), and those
   sections are best ordered according to one's mental view
   of how the tool works: first, it reads the input, then
   it processes it, then it outputs the result.  Keep --help
   and --version at the very bottom.