Remove the negative_normal_form call from reduce().

* src/ltlvisit/simplify.cc (ltl_simplifier::simplify):
Convert in negative normal form if needed.
* src/ltlvisit/reduce.cc (reduce): Do not call
negative_normal_form().
This commit is contained in:
Alexandre Duret-Lutz 2011-08-24 16:08:40 +02:00
parent 1087c62356
commit c2335edb57
2 changed files with 7 additions and 6 deletions

View file

@ -2222,7 +2222,13 @@ namespace spot
formula*
ltl_simplifier::simplify(const formula* f)
{
return const_cast<formula*>(simplify_recursively(f, cache_));
formula* neno = 0;
if (!f->is_in_nenoform())
f = neno = negative_normal_form(f);
formula* res = const_cast<formula*>(simplify_recursively(f, cache_));
if (neno)
neno->destroy();
return res;
}
formula*