translate: reset the LTL simplifier on set_level().
Fix an issue reported by Tomáš Babiak, who noticed that he could not manage to have ltl2tgba process `genltl --go-theta=N` efficiently for larger values of N. * spot/twaalgos/translate.hh (set_level): Reset any owned LTL simplifier whenever the optimization level is changed. * NEWS: Mention the bug.
This commit is contained in:
parent
4be7065b81
commit
ce63c30c0b
2 changed files with 13 additions and 0 deletions
|
|
@ -96,6 +96,12 @@ namespace spot
|
|||
set_level(optimization_level level)
|
||||
{
|
||||
level_ = level;
|
||||
if (simpl_owned_)
|
||||
{
|
||||
auto d = simpl_owned_->get_dict();
|
||||
delete simpl_owned_;
|
||||
build_simplifier(d);
|
||||
}
|
||||
}
|
||||
|
||||
/// \brief Convert \a f into an automaton.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue