Commit b67852a5 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Reuse Boolean->BDD translations performed during simplification.

* src/tgbaalgos/ltl2tgba_fm.cc (translate_dict::ltl_to_bdd):
Use boolean_to_bdd()
parent f590ca4e
......@@ -1542,9 +1542,21 @@ namespace spot
if (i != m->end())
return i->second;
ltl_trad_visitor v(*this, mark_all, exprop);
f->accept(v);
translated t = { v.result(), v.has_rational(), v.has_marked() };
translated t;
if (f->is_boolean())
{
t.symbolic = boolean_to_bdd(f);
t.has_rational = false;
t.has_marked = false;
}
else
{
ltl_trad_visitor v(*this, mark_all, exprop);
f->accept(v);
t.symbolic = v.result();
t.has_rational = v.has_rational();
t.has_marked = v.has_marked();
}
return m->insert(std::make_pair(f->clone(), t)).first->second;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment