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:
parent
bbb645e1fc
commit
4aa82ec762
4 changed files with 18 additions and 6 deletions
|
|
@ -234,6 +234,8 @@ booleanatom: ATOMIC_PROP
|
|||
{ $$ = constant::false_instance(); }
|
||||
|
||||
rationalexp: booleanatom
|
||||
| OP_NOT booleanatom
|
||||
{ $$ = unop::instance(unop::Not, $2); }
|
||||
| bracedrationalexp
|
||||
| CONST_EMPTYWORD
|
||||
{ $$ = constant::empty_word_instance(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue