* src/ltlparse/ltlparse.yy: Fix precedence OP_OR < OP_XOR < OP_AND.
* src/ltlast/binop.cc (binop::instance): Order operands for associative operators, so that e.g. "a xor b" and "b xor a" are mapped to the same formula. * src/ltltest/equals.test: Check this.
This commit is contained in:
parent
65b6a4d8da
commit
0d32884d20
4 changed files with 31 additions and 2 deletions
|
|
@ -32,7 +32,9 @@ using namespace spot::ltl;
|
|||
%}
|
||||
|
||||
/* Logical operators. */
|
||||
%left <token> OP_AND OP_XOR OP_OR
|
||||
%left <token> OP_OR
|
||||
%left <token> OP_XOR
|
||||
%left <token> OP_AND
|
||||
%left <token> OP_IMPLIES OP_EQUIV
|
||||
|
||||
/* LTL operators. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue