Fix usage of minimize_obligation in the CGI script.

* wrap/python/cgi-bin/ltl2tgba.py (reduce_wdba): Use
minimize_obligation_new a pass the formula.
* wrap/python/spot.i (minimize_obligation_new): New function, to
cope with the strange specification of spot::minimize_obligation()
not always creating a new automaton.
This commit is contained in:
Alexandre Duret-Lutz 2011-01-07 23:21:04 +01:00
parent a8fb2c4b8e
commit 74f14567d1
3 changed files with 29 additions and 2 deletions

View file

@ -574,7 +574,10 @@ elif trans_taa:
if reduce_dmonitor:
automaton = spot.minimize_monitor(automaton)
elif reduce_wdba:
automaton = spot.minimize_obligation(automaton)
minimized = spot.minimize_obligation_new(automaton, f)
if minimized:
automaton = minimized
minimized = 0
elif reduce_scc:
# Do not suppress all useless acceptance conditions if
# degeneralization is requested: keeping those that lead to