autfilt: fix a typo in the --help output

* bin/common_aoutput.cc: Here.
* doc/org/autfilt.org: Adjust the documentation.
This commit is contained in:
Alexandre Duret-Lutz 2023-11-16 10:52:55 +01:00
parent 5ed56c054b
commit 13377542cd
2 changed files with 31 additions and 28 deletions

View file

@ -213,7 +213,7 @@ static const argp_option io_options[] =
0, nullptr, OPTION_DOC | OPTION_NO_USAGE, 0, nullptr, OPTION_DOC | OPTION_NO_USAGE,
"number of edges (add one LETTER to select (r) reachable [default], " "number of edges (add one LETTER to select (r) reachable [default], "
"(u) unreachable, (a) all).", 0 }, "(u) unreachable, (a) all).", 0 },
{ "%T, %t, %[LETTER]E, %[LETTER]e", { "%T, %t, %[LETTER]T, %[LETTER]t",
0, nullptr, OPTION_DOC | OPTION_NO_USAGE, 0, nullptr, OPTION_DOC | OPTION_NO_USAGE,
"number of transitions (add one LETTER to select (r) reachable " "number of transitions (add one LETTER to select (r) reachable "
"[default], (u) unreachable, (a) all).", 0 }, "[default], (u) unreachable, (a) all).", 0 },

View file

@ -128,28 +128,30 @@ autfilt --stats='%s states, %e edges, %a acc-sets, %c SCCs, det=%d'
The following =%= sequences are available: The following =%= sequences are available:
#+BEGIN_SRC sh :exports results #+BEGIN_SRC sh :exports results
ltl2tgba --help | sed -n '/ sequences:/,/^$/p' | sed '1d;$d' autfilt --help | sed -n '/ for output):/,/^$/p' | sed '1d;$d'
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
#+begin_example #+begin_example
%< the part of the line before the formula if it
comes from a column extracted from a CSV file
%> the part of the line after the formula if it comes
from a column extracted from a CSV file
%% a single % %% a single %
%a number of acceptance sets %< the part of the line before the automaton if it
%c, %[LETTERS]c number of SCCs; you may filter the SCCs to count comes from a column extracted from a CSV file
%> the part of the line after the automaton if it
comes from a column extracted from a CSV file
%A, %a number of acceptance sets
%C, %c, %[LETTERS]C, %[LETTERS]c
number of SCCs; you may filter the SCCs to count
using the following LETTERS, possibly using the following LETTERS, possibly
concatenated: (a) accepting, (r) rejecting, (c) concatenated: (a) accepting, (r) rejecting, (c)
complete, (v) trivial, (t) terminal, (w) weak, complete, (v) trivial, (t) terminal, (w) weak,
(iw) inherently weak. Use uppercase letters to (iw) inherently weak. Use uppercase letters to
negate them. negate them.
%d 1 if the output is deterministic, 0 otherwise %D, %d 1 if the automaton is deterministic, 0 otherwise
%e, %[LETTER]e number of edges (add one LETTER to select (r) %E, %e, %[LETTER]E, %[LETTER]e number of edges (add one LETTER to select
reachable [default], (u) unreachable, (a) all). (r) reachable [default], (u) unreachable, (a)
%f the formula, in Spot's syntax all).
%F name of the input file %F name of the input file
%g, %[LETTERS]g acceptance condition (in HOA syntax); add brackets %G, %g, %[LETTERS]G, %[LETTERS]g
acceptance condition (in HOA syntax); add brackets
to print an acceptance name instead and LETTERS to to print an acceptance name instead and LETTERS to
tweak the format: (0) no parameters, (a) tweak the format: (0) no parameters, (a)
accentuated, (b) abbreviated, (d) style used in accentuated, (b) abbreviated, (d) style used in
@ -158,31 +160,32 @@ ltl2tgba --help | sed -n '/ sequences:/,/^$/p' | sed '1d;$d'
parameter, (p) no parity parameter, (o) name parameter, (p) no parity parameter, (o) name
unknown acceptance as 'other', (s) shorthand for unknown acceptance as 'other', (s) shorthand for
'lo0'. 'lo0'.
%h the automaton in HOA format on a single line (use %H, %h the automaton in HOA format on a single line (use
%[opt]h to specify additional options as in %[opt]H or %[opt]h to specify additional options
--hoa=opt) as in --hoa=opt)
%L location in the input file %L location in the input file
%m name of the automaton %l serial number of the output automaton (0-based)
%n number of nondeterministic states in output %M, %m name of the automaton
%p 1 if the output is complete, 0 otherwise %N, %n number of nondeterministic states
%P, %p 1 if the automaton is complete, 0 otherwise
%r wall-clock time elapsed in seconds (excluding %r wall-clock time elapsed in seconds (excluding
parsing) parsing)
%R, %[LETTERS]R CPU time (excluding parsing), in seconds; Add %R, %[LETTERS]R CPU time (excluding parsing), in seconds; Add
LETTERS to restrict to(u) user time, (s) system LETTERS to restrict to (u) user time, (s) system
time, (p) parent process, or (c) children time, (p) parent process, or (c) children
processes. processes.
%s, %[LETTER]s number of states (add one LETTER to select (r) %S, %s, %[LETTER]S, %[LETTER]s number of states (add one LETTER to select
reachable [default], (u) unreachable, (a) all).
%t, %[LETTER]t number of transitions (add one LETTER to select
(r) reachable [default], (u) unreachable, (a) (r) reachable [default], (u) unreachable, (a)
all). all).
%u, %[e]u number of states (or [e]dges) with universal %T, %t, %[LETTER]T, %[LETTER]t number of transitions (add one LETTER to
branching select (r) reachable [default], (u) unreachable,
%u, %[LETTER]u 1 if the automaton contains some universal (a) all).
%U, %u, %[LETTER]U, %[LETTER]u 1 if the automaton contains some universal
branching (or a number of [s]tates or [e]dges with branching (or a number of [s]tates or [e]dges with
universal branching) universal branching)
%w one word accepted by the output automaton %W, %w one word accepted by the automaton
%x, %[LETTERS]x number of atomic propositions declared in the %X, %x, %[LETTERS]X, %[LETTERS]x
number of atomic propositions declared in the
automaton; add LETTERS to list atomic automaton; add LETTERS to list atomic
propositions with (n) no quoting, (s) occasional propositions with (n) no quoting, (s) occasional
double-quotes with C-style escape, (d) double-quotes with C-style escape, (d)