Update OperatorPrecedenceLogicErrorWhenUseBitwiseOrLogicalOperations.ql

This commit is contained in:
ihsinme
2021-08-01 16:44:54 +03:00
committed by GitHub
parent 14b4e08ce9
commit 375a60194b

View File

@@ -109,6 +109,7 @@ predicate isRealRange(Expr exp) {
}
/** Holds if expressions are of different size or range */
pragma[inline]
predicate isDifferentSize(Expr exp1, Expr exp2, Expr exp3) {
exp1.getType().getSize() = exp2.getType().getSize() and
exp1.getType().getSize() != exp3.getType().getSize()
@@ -127,6 +128,7 @@ predicate isDifferentSize(Expr exp1, Expr exp2, Expr exp3) {
}
/** Holds if it is possible to get different values of the expression */
pragma[inline]
predicate isDifferentResults(
Expr exp1, Expr exp2, Expr exp3, BinaryBitwiseOperation op1, BinaryBitwiseOperation op2
) {