org: simplify babel blocks using #+PROPERTY: header-args
This feature is in Org 9, which is already required. * doc/org/autcross.org, doc/org/autfilt.org, doc/org/compile.org, doc/org/concepts.org, doc/org/csv.org, doc/org/dstar2tgba.org, doc/org/genaut.org, doc/org/genltl.org, doc/org/hierarchy.org, doc/org/hoa.org, doc/org/ioltl.org, doc/org/ltl2tgba.org, doc/org/ltl2tgta.org, doc/org/ltlcross.org, doc/org/ltldo.org, doc/org/ltlfilt.org, doc/org/ltlgrind.org, doc/org/ltlsynt.org, doc/org/oaut.org, doc/org/randaut.org, doc/org/randltl.org, doc/org/satmin.org, doc/org/setup.org, doc/org/tools.org, doc/org/tut01.org, doc/org/tut02.org, doc/org/tut03.org, doc/org/tut04.org, doc/org/tut10.org, doc/org/tut11.org, doc/org/tut12.org, doc/org/tut20.org, doc/org/tut21.org, doc/org/tut22.org, doc/org/tut23.org, doc/org/tut24.org, doc/org/tut30.org, doc/org/tut31.org, doc/org/tut50.org, doc/org/upgrade2.org: Simplify SRC block setups for sh, python and C++. Also fix a few typos and examples along the way.
This commit is contained in:
parent
0c8e6a38a8
commit
8a96828d85
40 changed files with 2193 additions and 2281 deletions
|
|
@ -3,17 +3,21 @@
|
|||
#+DESCRIPTION: Spot command-line tool for mutating LTL formulas.
|
||||
#+INCLUDE: setup.org
|
||||
#+HTML_LINK_UP: tools.html
|
||||
#+PROPERTY: header-args:sh :results verbatim :exports both
|
||||
|
||||
This tool lists formulas that are similar to but simpler than a given
|
||||
formula by applying simple mutations to it, like removing operands or
|
||||
:results scalar: Is the same as :results verbatim.
|
||||
|
||||
:results table: Interprets the results as an Org This tool lists
|
||||
formulas that are similar to but simpler than a given formula by
|
||||
applying simple mutations to it, like removing operands or
|
||||
operators. This is meant to be used with ltlcross to simplify a
|
||||
formula that caused a problem before trying to debug it (see also
|
||||
=ltlcross --grind=FILENAME=).
|
||||
|
||||
Here is a list of the different kind of mutations that can be applied:
|
||||
Here is a list of the different kinds of mutations that can be applied:
|
||||
|
||||
#+BEGIN_SRC sh :results verbatim :exports results
|
||||
ltlgrind --help | sed -n '/Transformation rules:/,/^$/p' | sed '1d;$d'
|
||||
#+BEGIN_SRC sh :exports results
|
||||
ltlgrind --help | sed -n '/Mutation rules.*:/,/^$/p' | sed '1d;$d'
|
||||
#+END_SRC
|
||||
|
||||
#+RESULTS:
|
||||
|
|
@ -28,7 +32,7 @@ ltlgrind --help | sed -n '/Transformation rules:/,/^$/p' | sed '1d;$d'
|
|||
--rewrite-ops rewrite operators that have a semantically simpler
|
||||
form: a U b becomes a W b, etc.
|
||||
--simplify-bounds on a bounded unary operator, decrement one of the
|
||||
bounds, or set min to 0 or max to unbounded.
|
||||
bounds, or set min to 0 or max to unbounded
|
||||
--split-ops when an operator can be expressed as a
|
||||
conjunction/disjunction using simpler operators,
|
||||
each term of the conjunction/disjunction is a
|
||||
|
|
@ -40,7 +44,7 @@ ltlgrind --help | sed -n '/Transformation rules:/,/^$/p' | sed '1d;$d'
|
|||
By default, all rules are applied. But if one or more rules are
|
||||
specified, only those will be applied.
|
||||
|
||||
#+BEGIN_SRC sh :results verbatim :exports both
|
||||
#+BEGIN_SRC sh
|
||||
ltlgrind -f 'a U G(b <-> c)' --split-ops --rewrite-ops --remove-ops
|
||||
#+END_SRC
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue