spot/bin
Alexandre Duret-Lutz 7e1d684797 dbranch: fix handling of states without successors
Fixes #524, reported by Rüdiger Ehlers.

* spot/twaalgos/dbranch.cc: When merging an edge going to state
without successors simply delete it.
* bin/spot-x.cc: Typo in documentation.
* tests/core/ltlcross.test: Add a test case.
* NEWS: Mention the bug.
2023-01-31 17:55:51 +01:00
..
man improve documentation for -x sat-minimize 2021-05-12 10:26:54 +02:00
.gitignore add ltlsynt executable 2017-09-25 12:23:47 +02:00
autcross.cc fix some code smells reported by sonarcloud 2023-01-31 17:51:18 +01:00
autfilt.cc fix some code smells reported by sonarcloud 2023-01-31 17:51:18 +01:00
common_aoutput.cc fix some code smells reported by sonarcloud 2023-01-31 17:51:18 +01:00
common_aoutput.hh fix some code smells reported by sonarcloud 2023-01-31 17:51:18 +01:00
common_color.cc bin: handle any exception before returning from parse_opt() 2019-09-26 15:19:57 +02:00
common_color.hh ltlcross: extract the color handling code 2017-07-26 12:10:36 +02:00
common_conv.cc bin: detect overflows in conversion functions 2023-01-31 17:51:18 +01: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 more code smells 2023-01-31 17:51:18 +01:00
common_file.hh more code smells 2023-01-31 17:51:18 +01:00
common_finput.cc more code smells 2023-01-31 17:51:18 +01:00
common_finput.hh more code smells 2023-01-31 17:51:18 +01:00
common_hoaread.cc bin: fix documentation of --trust-hoa 2019-12-06 12:48:30 +01:00
common_hoaread.hh bin: separate process_file() for aut and ltl 2022-06-22 19:37:41 +02:00
common_output.cc more code smells 2023-01-31 17:51:18 +01:00
common_output.hh genltl: add support for --sejk-f=n,m 2018-06-05 08:48:40 +02:00
common_post.cc bin: add support for -b/--buchi 2020-12-18 12:24:08 +01: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: detect overflows in conversion functions 2023-01-31 17:51:18 +01:00
common_range.hh ltlfilt: implement --reject-word and --accept-word 2016-04-09 10:10:41 +02:00
common_setup.cc more code smells 2023-01-31 17:51:18 +01:00
common_setup.hh more code smells 2023-01-31 17:51:18 +01: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 more code smells 2023-01-31 17:51:18 +01:00
common_trans.hh more code smells 2023-01-31 17:51:18 +01:00
dstar2tgba.cc more code smells 2023-01-31 17:51:18 +01:00
genaut.cc more code smells 2023-01-31 17:51:18 +01:00
genltl.cc more code smells 2023-01-31 17:51:18 +01:00
ltl2tgba.cc more code smells 2023-01-31 17:51:18 +01:00
ltl2tgta.cc more code smells 2023-01-31 17:51:18 +01:00
ltlcross.cc more code smells 2023-01-31 17:51:18 +01:00
ltldo.cc more code smells 2023-01-31 17:51:18 +01:00
ltlfilt.cc more code smells 2023-01-31 17:51:18 +01:00
ltlgrind.cc bin: introduce a non-binary job_type 2022-05-17 10:49:06 +02:00
ltlsynt.cc more code smells 2023-01-31 17:51:18 +01: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 declare all argp_program_doc as static 2022-10-25 16:31:35 +02:00
randltl.cc more code smells 2023-01-31 17:51:18 +01:00
README bin: make sure that all options are in a named section 2017-09-26 21:28:16 +02:00
spot-x.cc dbranch: fix handling of states without successors 2023-01-31 17:55:51 +01:00
spot.cc declare all argp_program_doc as static 2022-10-25 16:31:35 +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.