Fix equality check for binary operations
Multiplication and addition are commutative binary operations, where the equality between the operands has to be also checked in switched order. By mistake, the operands were not compared with the other binary operation, which is fixed by this commit.
This commit is contained in:
parent
c84ae51ff2
commit
7013b9ea54
@ -268,8 +268,8 @@ struct TermEqualityVisitor
|
||||
return Tristate::Unknown;
|
||||
}
|
||||
|
||||
if (equal(binaryOperation.left, binaryOperation.right) == Tristate::True
|
||||
&& equal(binaryOperation.right, binaryOperation.left) == Tristate::True)
|
||||
if (equal(binaryOperation.left, otherBinaryOperation.right) == Tristate::True
|
||||
&& equal(binaryOperation.right, otherBinaryOperation.left) == Tristate::True)
|
||||
{
|
||||
return Tristate::True;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user