* 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:
Alexandre Duret-Lutz 2003-08-06 10:47:42 +00:00
parent 65b6a4d8da
commit 0d32884d20
4 changed files with 31 additions and 2 deletions

View file

@ -37,5 +37,8 @@ check 1 'a & b & c' 'c & a'
check 1 'b & c' 'c & a & b'
check 1 'a & b & (c |(f U g)| e)' 'b & a & a & (c | e |(g U g)| e | c) & b'
# Precedence
check 0 'a & b ^ c | d' 'd | c ^ b & a'
# Success.
:
: