Fixing logic bug with LogicalAndExpr

This commit is contained in:
REDMOND\brodes
2022-07-06 15:19:36 -04:00
parent 3bacb18315
commit 74ff579dbc

View File

@@ -46,7 +46,7 @@ predicate nullCheckExpr(Expr checkExpr, Variable var) {
or
exists(LogicalAndExpr op, AnalysedExpr child |
expr = op and
op.getRightOperand() = child and
(op.getRightOperand() = child or op.getLeftOperand() = child) and
nullCheckExpr(child, v)
)
or
@@ -99,7 +99,7 @@ predicate validCheckExpr(Expr checkExpr, Variable var) {
or
exists(LogicalAndExpr op, AnalysedExpr child |
expr = op and
op.getRightOperand() = child and
(op.getRightOperand() = child or op.getLeftOperand() = child) and
validCheckExpr(child, v)
)
or