rearange ArrayIndexingStep to avoid #shared predicate

This commit is contained in:
Erik Krogh Kristensen
2021-02-22 17:16:26 +01:00
parent 6213c20bc3
commit b4e6f92505

View File

@@ -156,9 +156,8 @@ private module ArrayDataFlow {
ArrayIndexingStep() {
read = this and
forex(InferredType type | type = read.getPropertyNameExpr().flow().analyze().getAType() |
type = TTNumber()
) and
TTNumber() =
unique(InferredType type | type = read.getPropertyNameExpr().flow().analyze().getAType()) and
exists(VarAccess i, ExprOrVarDecl init |
i = read.getPropertyNameExpr() and init = any(ForStmt f).getInit()
|