* src/tgbaalgos/ltl2tgba_fm.hh (ltl_to_tgba_fm): Add argument
fair_loop_approx. * src/tgbaalgos/ltl2tgba_fm.cc (ltl_to_tgba_fm): Implement the fair_loop_approx optimization. (ltl_promise_visitor, ltl_possible_fair_loop_visitor, possible_fair_loop_checker): New classes. * src/tgbatest/ltl2tgba.cc: Add the -L option. * src/tgbatest/spotlbtt.test: Exercise fair_loop_approx. * wrap/python/cgi/ltl2tgba.in: Make it an option.
This commit is contained in:
parent
6b06e28f3d
commit
aa5cef3c83
6 changed files with 248 additions and 15 deletions
|
|
@ -212,6 +212,7 @@ options_trans_fm = [
|
|||
('opt_symb_merge',
|
||||
'merge states with same symbolic successor representation', 1),
|
||||
('opt_branch_post', 'branching postponement', 0),
|
||||
('opt_fair_loop_approx','fair-loop approximations', 0),
|
||||
]
|
||||
options_trans_lacim = [
|
||||
('show_relation_set',
|
||||
|
|
@ -412,12 +413,17 @@ if opt_branch_post:
|
|||
branching_postponement = 1
|
||||
else:
|
||||
branching_postponement = 0
|
||||
if opt_fair_loop_approx:
|
||||
fair_loop_approx = 1
|
||||
else:
|
||||
fair_loop_approx = 0
|
||||
|
||||
if trans_lacim:
|
||||
automaton = spot.ltl_to_tgba_lacim(f, dict)
|
||||
elif trans_fm:
|
||||
automaton = spot.ltl_to_tgba_fm(f, dict,
|
||||
exprop, symb_merge, branching_postponement)
|
||||
exprop, symb_merge, branching_postponement,
|
||||
fair_loop_approx)
|
||||
|
||||
print 'done.</p>'
|
||||
sys.stdout.flush()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue