twaalgos: add a match_states variant with a formula argument
This is related to issue #591, reported by Blake C. Rawlings. * spot/twaalgos/ltl2tgba_fm.cc, spot/twaalgos/ltl2tgba_fm.hh (ltl_to_tgba_fm): Add option to keep LTL labels. * spot/twaalgos/matchstates.cc, spot/twaalgos/matchstates.hh (match_states): Add variant with a formula as second argument. * tests/python/matchstates.py: Test it. * NEWS: Mention it. * THANKS: Add reporter.
This commit is contained in:
parent
5f1d00b858
commit
3d3e87948c
7 changed files with 89 additions and 4 deletions
|
|
@ -1887,7 +1887,7 @@ namespace spot
|
|||
bool exprop, bool symb_merge, bool branching_postponement,
|
||||
bool fair_loop_approx, const atomic_prop_set* unobs,
|
||||
tl_simplifier* simplifier, bool unambiguous,
|
||||
const output_aborter* aborter)
|
||||
const output_aborter* aborter, bool label_with_ltl)
|
||||
{
|
||||
tl_simplifier* s = simplifier;
|
||||
|
||||
|
|
@ -2216,8 +2216,9 @@ namespace spot
|
|||
if (orig_f.is_syntactic_guarantee())
|
||||
a->prop_terminal(true);
|
||||
}
|
||||
// Set the following to true to preserve state names.
|
||||
a->release_formula_namer(namer, false);
|
||||
|
||||
// This gives each state a name of label_with_ltl is set.
|
||||
a->release_formula_namer(namer, label_with_ltl);
|
||||
|
||||
if (!simplifier)
|
||||
// This should not be deleted before we have registered all propositions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue