Speedup some rewriting by detecting cases where they do nothing.

* src/ltlvisit/nenoform.cc, src/ltlvisit/lunabbrev.cc,
src/ltlvisit/simpfg.cc, src/ltlvisit/tunabbrev.cc: Do not recurse
if the formula properties indicate that it is already in the right
form.
This commit is contained in:
Alexandre Duret-Lutz 2010-12-09 18:49:33 +01:00
parent 6380968f32
commit 20c088a45a
4 changed files with 8 additions and 0 deletions

View file

@ -98,6 +98,8 @@ namespace spot
formula*
simplify_f_g(const formula* f)
{
if (f->is_boolean())
return f->clone();
simplify_f_g_visitor v;
const_cast<formula*>(f)->accept(v);
return v.result();