never: add an option to output in Spin's 6.2.4 style
Fixes #46. * src/tgbaalgos/neverclaim.cc: Add option '6'. * src/bin/common_aoutput.cc, src/bin/dstar2tgba.cc: Make it possible to use the option. * NEWS, doc/org/oaut.org: Document it. * src/tgbatest/ltlcross2.test: Test it.
This commit is contained in:
parent
604971d651
commit
6a2aad6259
6 changed files with 101 additions and 23 deletions
|
|
@ -416,7 +416,7 @@ ltl2tgba -s 'a U b'
|
|||
#+END_SRC
|
||||
|
||||
#+RESULTS:
|
||||
: never {
|
||||
: never { /* a U b */
|
||||
: T0_init:
|
||||
: if
|
||||
: :: ((b)) -> goto accept_all
|
||||
|
|
@ -426,6 +426,29 @@ ltl2tgba -s 'a U b'
|
|||
: skip
|
||||
: }
|
||||
|
||||
Recent versions of Spin (starting with Spin 6.2.4) output never claims
|
||||
in a slightly different style that can be requested using either
|
||||
=-s6= or =--spin=6=:
|
||||
|
||||
#+BEGIN_SRC sh :results verbatim :exports both
|
||||
ltl2tgba -s6 'a U b'
|
||||
#+END_SRC
|
||||
|
||||
#+RESULTS:
|
||||
: never { /* a U b */
|
||||
: T0_init:
|
||||
: do
|
||||
: :: atomic { ((b)) -> assert(!((b))) }
|
||||
: :: ((a) && (!(b))) -> goto T0_init
|
||||
: od;
|
||||
: accept_all:
|
||||
: skip
|
||||
: }
|
||||
|
||||
(Note that while Spot is able to read never claims that follow any of
|
||||
these two styles, it is not capable of interpreting an arbitrary piece
|
||||
of Promela syntax.)
|
||||
|
||||
* Dot output
|
||||
|
||||
The =--dot= option (which usually is the default) causes automata to be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue