Make minimization of obligation properties and deterministic
monitor available in the CGI script. * wrap/python/spot.i: Declare the minimize() interface. * wrap/python/cgi-bin/ltl2tgba.in: Add reduce_dmonitor and reduce_wdba options.
This commit is contained in:
parent
edc71b807e
commit
241ba112d6
3 changed files with 37 additions and 19 deletions
|
|
@ -260,6 +260,8 @@ options_reduce = [
|
|||
]
|
||||
options_aut_reduce = [
|
||||
('reduce_scc', 'prune unaccepting SCCs', 1),
|
||||
('reduce_wdba', 'minimize obligation properties' + new, 0),
|
||||
('reduce_dmonitor', 'build deterministic monitor' + new, 0),
|
||||
]
|
||||
options_debug = [
|
||||
('show_parse', 'show traces during parsing', 0),
|
||||
|
|
@ -569,7 +571,11 @@ elif trans_fm:
|
|||
elif trans_taa:
|
||||
automaton = spot.ltl_to_taa(f, dict, refined_rules)
|
||||
|
||||
if reduce_scc:
|
||||
if reduce_dmonitor:
|
||||
automaton = spot.minimize(automaton, True)
|
||||
elif reduce_wdba:
|
||||
automaton = spot.minimize(automaton, False)
|
||||
elif reduce_scc:
|
||||
# Do not suppress all useless acceptance conditions if
|
||||
# degeneralization is requested: keeping those that lead to
|
||||
# accepting states usually help.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue