specialized translation for GF(guarantee) and FG(safety)
This is adapted from a proposition in a paper by J. Esparza, J. Křentínský, and S. Sickert, submitted to LICS'18. We should add proper references to the code and documentation once that paper is accepted. * spot/twaalgos/gfguarantee.cc, spot/twaalgos/gfguarantee.hh: New files. * spot/twaalgos/Makefile.am, python/spot/impl.i: Add them. * spot/twa/fwd.hh: Add a forward declaration of bdd_dict_ptr. * spot/twaalgos/postproc.cc, spot/twaalgos/postproc.hh: Make it possible to call finalize() from the translator subclass. Constify all the do_* functions while we are there. * spot/twaalgos/translate.cc, spot/twaalgos/translate.hh: Add a "gf-guarantee" option to decide whether to use the new translation. * bin/spot-x.cc: Document it. * tests/core/dca2.test, tests/core/genltl.test, tests/core/ltl2tgba2.test, tests/core/parity2.test, tests/core/satmin.test, tests/python/automata.ipynb, tests/python/sbacc.py: Adjust test cases. * tests/python/except.py: Add a couple more tests.
This commit is contained in:
parent
89f7047925
commit
7a65bdf6bc
19 changed files with 3140 additions and 1932 deletions
|
|
@ -53,7 +53,8 @@ EOF
|
|||
|
||||
while read l_f; do
|
||||
ltl2tgba --parity='max odd' "$l_f" > l.hoa
|
||||
autfilt -q --acceptance-is='Fin(0) | Inf(1)' l.hoa
|
||||
autfilt -q --acceptance-is='Fin(0) | Inf(1)' l.hoa ||
|
||||
autfilt -q --acceptance-is='Fin(0)' l.hoa
|
||||
while read r_f; do
|
||||
# Dualizing a deterministic transition-based parity automaton
|
||||
# to obtain a transition-based deterministic streett
|
||||
|
|
@ -63,10 +64,10 @@ while read l_f; do
|
|||
ltl2tgba "$r_f" -D --parity='min odd' | autfilt --dualize --gsa > r.hoa
|
||||
# Streett & Streett
|
||||
autfilt r.hoa --name="($l_f)&!($r_f)" --product=l.hoa -S > and.hoa
|
||||
autfilt -q --acceptance-is=Streett and.hoa
|
||||
autfilt -q --acceptance-is=Streett-like and.hoa
|
||||
# Streett | Streett
|
||||
autfilt r.hoa --name="($l_f)|!($r_f)" --product-or=l.hoa -S > or.hoa
|
||||
autfilt -q -v --acceptance-is=Streett or.hoa
|
||||
autfilt -q -v --acceptance-is=Streett-like or.hoa
|
||||
|
||||
autcross --language-preserved --verbose -F or.hoa -F and.hoa \
|
||||
'autfilt %H --stats=%M | ltl2tgba >%O' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue