* src/tgbaalgos/ltl2tgba_lacim.cc, src/tgbaalgos/ltl2tgba_lacim.hh: ... this, and rename ltl_to_tgba() as ltl_to_tgba_lacim as well. * iface/gspn/ltlgspn.cc, src/tgbatest/explprod.cc, src/tgbatest/ltl2tgba.cc, src/tgbatest/ltlmagic.cc, src/tgbatest/ltlprod.cc, src/tgbatest/mixprod.cc, src/tgbatest/tripprod.cc, wrap/python/spot.i, wrap/python/cgi/ltl2tgba.in, wrap/python/tests/interdep.py, wrap/python/tests/ltl2tgba.py: Adjust.
22 lines
597 B
Python
Executable file
22 lines
597 B
Python
Executable file
# Make sure that interdependencies between the spot and buddy wrappers
|
|
# are not problematic.
|
|
import ltihooks
|
|
import spot
|
|
import buddy
|
|
e = spot.default_environment.instance()
|
|
p = spot.empty_parse_error_list()
|
|
f = spot.parse('GFa', p, e)
|
|
dict = spot.bdd_dict()
|
|
a = spot.ltl_to_tgba_lacim(f, dict)
|
|
s0 = a.get_init_state()
|
|
b = s0.as_bdd()
|
|
print b
|
|
iter = a.succ_iter(s0)
|
|
iter.first()
|
|
while not iter.done():
|
|
c = iter.current_condition()
|
|
print c
|
|
b &= c # `&=' is defined only in buddy. So if this statement works
|
|
# it means buddy can grok spot's objects.
|
|
iter.next()
|
|
print b
|