QL: Respond to PR reviews.

This commit is contained in:
Mathias Vorreiter Pedersen
2021-10-14 10:48:54 +01:00
parent 7d9c408af4
commit ed5960e015

View File

@@ -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())
)