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:
parent
a8fb2c4b8e
commit
74f14567d1
3 changed files with 29 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue