Speed up computation of constant term on [->] and [=] operators.

* src/ltlvisit/consterm.cc: Stop the recursion on [->] and [=].
This commit is contained in:
Alexandre Duret-Lutz 2010-10-15 12:30:11 +02:00
parent bfa827c774
commit c6a751b9d4

View file

@ -73,10 +73,19 @@ namespace spot
void
visit(const bunop* bo)
{
switch (bo->op())
{
case bunop::Star:
if (bo->min() == 0)
result_ = true;
else
bo->child()->accept(*this);
break;
case bunop::Equal:
case bunop::Goto:
result_ = bo->min() == 0;
break;
}
}
void