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

Speed up syntactic_implication() for constants.

* src/ltlvisit/syntimpl.cc (syntactic_implication): Do not
create visitors if arguments are constant.
parent 7021e45f
2010-04-15 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Speed up syntactic_implication() for constants.
* src/ltlvisit/syntimpl.cc (syntactic_implication): Do not
create visitors if arguments are constant.
2010-04-15 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix simplification of "a M true" as Fa.
......
......@@ -616,13 +616,13 @@ namespace spot
{
if (f1 == f2)
return true;
inf_left_recurse_visitor v1(f2);
inf_right_recurse_visitor v2(f1);
if (f2 == constant::true_instance()
|| f1 == constant::false_instance())
return true;
inf_left_recurse_visitor v1(f2);
inf_right_recurse_visitor v2(f1);
const_cast<formula*>(f1)->accept(v1);
if (v1.result())
return true;
......
Markdown is supported
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