mirror of
https://github.com/github/codeql.git
synced 2026-02-08 11:11:06 +01:00
Merge pull request #97 from github/fix-spurious-exists-mistakes
QL: Respond to PR reviews for #87
This commit is contained in:
@@ -51,8 +51,6 @@ predicate exprImpliesExists(ValueNumber vn, Expr e) {
|
||||
or
|
||||
exprImpliesExists(vn, e.(AsExpr).getInnerExpr())
|
||||
or
|
||||
exprImpliesExists(vn, e.(Range).getAnEndpoint())
|
||||
or
|
||||
exists(ExprAggregate agg |
|
||||
agg = e and
|
||||
agg.getKind().matches(["strict%", "unique"]) and
|
||||
@@ -71,9 +69,8 @@ predicate formulaImpliesExists(ValueNumber vn, Formula f) {
|
||||
or
|
||||
exprImpliesExists(vn, f.(ComparisonFormula).getAnOperand())
|
||||
or
|
||||
exists(IfFormula ifFormula | ifFormula = f |
|
||||
exprImpliesExists(vn, ifFormula.getCondition())
|
||||
or
|
||||
exists(IfFormula ifFormula |
|
||||
ifFormula = f and
|
||||
formulaImpliesExists(vn, ifFormula.getThenPart()) and
|
||||
formulaImpliesExists(vn, ifFormula.getElsePart())
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user