Allow boolean atoms to be negated in rational expressions.

* src/ltlparse/ltlparse.yy (rationalexp): Recognize "OP_NOT
booleanatom".
* src/ltlvisit/consterm.cc, src/tgbaalgos/ltl2tgba_fm.cc: Adjust.
* src/tgbatest/ltl2tgba.test: Add one test.
This commit is contained in:
Alexandre Duret-Lutz 2010-03-10 14:38:17 +01:00
parent bbb645e1fc
commit 4aa82ec762
4 changed files with 18 additions and 6 deletions

View file

@ -76,6 +76,11 @@ namespace spot
switch (uo->op())
{
case unop::Not:
result_ = false;
break;
case unop::Star:
result_ = true;
break;
case unop::X:
case unop::F:
case unop::G:
@ -84,9 +89,6 @@ namespace spot
case unop::NegClosure:
assert(!"unsupported operator");
break;
case unop::Star:
result_ = true;
break;
}
}