* wrap/python/spot.i: Declare spot::ltl_to_tgba as a constructor.
* wrap/python/tests/ltl2tgba.py: Do not force `thisown=1' on tgba objects.
This commit is contained in:
parent
1095dd7533
commit
ea9a96237b
3 changed files with 10 additions and 8 deletions
|
|
@ -1,8 +1,13 @@
|
||||||
2003-08-04 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
2003-08-04 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
||||||
|
|
||||||
|
* wrap/python/spot.i: Declare spot::ltl_to_tgba as a constructor.
|
||||||
|
* wrap/python/tests/ltl2tgba.py: Do not force `thisown=1' on tgba
|
||||||
|
objects.
|
||||||
|
|
||||||
* wrap/python/spot.i: Include headers from tgba/ and tgbaalgos/.
|
* wrap/python/spot.i: Include headers from tgba/ and tgbaalgos/.
|
||||||
* wrap/python/tests/ltl2tgba.py, wrap/python/tests/ltl2tgba.test:
|
* wrap/python/tests/ltl2tgba.py, wrap/python/tests/ltl2tgba.test:
|
||||||
New files.
|
New files.
|
||||||
|
|
||||||
* wrap/python/tests/Makefile.am (TESTS): Add ltl2tgba.test.
|
* wrap/python/tests/Makefile.am (TESTS): Add ltl2tgba.test.
|
||||||
(EXTRA_DIST): Add ltl2tgba.py.
|
(EXTRA_DIST): Add ltl2tgba.py.
|
||||||
* wrap/python/tests/run.in: Distinguish *.py and *.test.
|
* wrap/python/tests/run.in: Distinguish *.py and *.test.
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,8 @@ using namespace spot;
|
||||||
%include "ltlvisit/tostring.hh"
|
%include "ltlvisit/tostring.hh"
|
||||||
%include "ltlvisit/tunabbrev.hh"
|
%include "ltlvisit/tunabbrev.hh"
|
||||||
|
|
||||||
|
%feature("new") spot::ltl_to_tgba;
|
||||||
|
|
||||||
// Help SWIG with namespace lookups.
|
// Help SWIG with namespace lookups.
|
||||||
#define ltl spot::ltl
|
#define ltl spot::ltl
|
||||||
%include "tgba/bdddict.hh"
|
%include "tgba/bdddict.hh"
|
||||||
|
|
|
||||||
|
|
@ -101,16 +101,11 @@ if f:
|
||||||
else:
|
else:
|
||||||
assert "unknown output option"
|
assert "unknown output option"
|
||||||
|
|
||||||
|
if degeneralize_opt:
|
||||||
|
del degeneralized
|
||||||
# Must delete absolutely all references to an automaton
|
# Must delete absolutely all references to an automaton
|
||||||
# so that the C++ destructor gets called.
|
# so that the C++ destructor gets called.
|
||||||
del a
|
del a, concrete
|
||||||
|
|
||||||
if degeneralize_opt:
|
|
||||||
degeneralized.thisown = 1
|
|
||||||
del degeneralized
|
|
||||||
|
|
||||||
concrete.thisown = 1
|
|
||||||
del concrete
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
exit_code = 1
|
exit_code = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue