Generalize computation of is.eventual and is.universal.

* src/ltlast/binop.cc (binop::binop): Generalize detection
of pure eventualities and purely universal formulae.  E.g.
`f U g' is a pure eventuality if g is a pure eventuality
(regardless of f) or if g is 1.
* src/ltlast/unop.cc (unop::unop): Compute is.eventual
and is.universal for Not.
* src/ltltest/kind.test: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2011-05-23 15:06:57 +02:00
parent 9f7ef5d0c3
commit 8ecf57e832
3 changed files with 29 additions and 18 deletions

View file

@ -39,6 +39,8 @@ namespace spot
switch (op)
{
case Not:
is.eventual = child->is_universal();
is.universal = child->is_eventual();
is.in_nenoform = (child->kind() == AtomicProp);
is.sere_formula = is.boolean;