Fix missing variable binding

This commit is contained in:
Tamas Vajk
2021-03-12 16:14:32 +01:00
parent ba05bf3ae0
commit 9ff304ca6b

View File

@@ -226,9 +226,9 @@ module LocalFlow {
or
isSuccessor = true and
exists(ControlFlowElement cfe | cfe = e2.(TupleExpr).(PatternExpr).getPatternMatch() |
cfe.(IsExpr).getExpr() = e1
cfe.(IsExpr).getExpr() = e1 and scope = cfe
or
exists(Switch sw | sw.getACase() = cfe and sw.getExpr() = e1)
exists(Switch sw | sw.getACase() = cfe and sw.getExpr() = e1 and scope = sw)
)
)
}