Speed up computation of constant term on [->] and [=] operators.
* src/ltlvisit/consterm.cc: Stop the recursion on [->] and [=].
This commit is contained in:
parent
bfa827c774
commit
c6a751b9d4
1 changed files with 13 additions and 4 deletions
|
|
@ -73,10 +73,19 @@ namespace spot
|
||||||
void
|
void
|
||||||
visit(const bunop* bo)
|
visit(const bunop* bo)
|
||||||
{
|
{
|
||||||
|
switch (bo->op())
|
||||||
|
{
|
||||||
|
case bunop::Star:
|
||||||
if (bo->min() == 0)
|
if (bo->min() == 0)
|
||||||
result_ = true;
|
result_ = true;
|
||||||
else
|
else
|
||||||
bo->child()->accept(*this);
|
bo->child()->accept(*this);
|
||||||
|
break;
|
||||||
|
case bunop::Equal:
|
||||||
|
case bunop::Goto:
|
||||||
|
result_ = bo->min() == 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue