Adjust ltl2tgba.py to call scc_filter() with the "full" option as
appropriate. * wrap/python/spot.i (spot::scc_filter): Make it available. * wrap/python/cgi-bin/ltl2tgba.in (reduce_scc): Call scc_filter. Use the "full" option unless the show_degen_png or show_never_claim are set. Also reduce_scc the default.
This commit is contained in:
parent
ef3c82e1b0
commit
60dbeb1128
3 changed files with 19 additions and 2 deletions
|
|
@ -258,7 +258,7 @@ options_reduce = [
|
|||
('reduce_langcont', 'language containment' + new, 0),
|
||||
]
|
||||
options_aut_reduce = [
|
||||
('reduce_scc', 'prune unaccepting SCCs' + new, 0),
|
||||
('reduce_scc', 'prune unaccepting SCCs' + new, 1),
|
||||
]
|
||||
options_debug = [
|
||||
('show_parse', 'show traces during parsing', 0),
|
||||
|
|
@ -564,7 +564,11 @@ elif trans_taa:
|
|||
automaton = spot.ltl_to_taa(f, dict, refined_rules)
|
||||
|
||||
if reduce_scc:
|
||||
automaton = spot.reduc_tgba_sim(automaton, spot.Reduce_Scc)
|
||||
# Do not suppress all useless acceptance conditions if
|
||||
# degeneralization is requested: keeping those that lead to
|
||||
# accepting states usually help.
|
||||
automaton = spot.scc_filter(automaton, not (show_degen_png or
|
||||
show_never_claim))
|
||||
|
||||
print 'done.</p>'
|
||||
sys.stdout.flush()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue