translator: add tls-max-states option
This restricts the time spent in translating sub-formulas for implication tests by limiting the associated automata to 64 states by default. Doing so this does worsen any test case, and actually remove all calls the BuDDy's GC in bdd.test. * spot/twaalgos/translate.cc, spot/twaalgos/translate.hh, spot/tl/simplify.cc, spot/tl/simplify.hh, spot/tl/contain.hh, spot/tl/contain.cc, spot/twaalgos/ltl2tgba_fm.cc, spot/twaalgos/ltl2tgba_fm.hh: Add support for the option or its constraint via an output_aborter. * bin/spot-x.cc, NEWS: Document it. * tests/core/bdd.test: Adjust and augment test case.
This commit is contained in:
parent
9d7e6386e4
commit
f5965966e9
11 changed files with 66 additions and 11 deletions
|
|
@ -1947,7 +1947,8 @@ namespace spot
|
|||
ltl_to_tgba_fm(formula f2, const bdd_dict_ptr& dict,
|
||||
bool exprop, bool symb_merge, bool branching_postponement,
|
||||
bool fair_loop_approx, const atomic_prop_set* unobs,
|
||||
tl_simplifier* simplifier, bool unambiguous)
|
||||
tl_simplifier* simplifier, bool unambiguous,
|
||||
const output_aborter* aborter)
|
||||
{
|
||||
tl_simplifier* s = simplifier;
|
||||
|
||||
|
|
@ -2051,6 +2052,13 @@ namespace spot
|
|||
dest_map dests;
|
||||
while (!formulae_to_translate.empty())
|
||||
{
|
||||
if (aborter && aborter->too_large(a))
|
||||
{
|
||||
if (!simplifier)
|
||||
delete s;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Pick one formula.
|
||||
formula now = *formulae_to_translate.begin();
|
||||
formulae_to_translate.erase(formulae_to_translate.begin());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue