Dataflow: Review fixes.

This commit is contained in:
Anders Schack-Mulligen
2023-09-18 13:15:26 +02:00
parent 74787bfba8
commit b13d026434
3 changed files with 49 additions and 32 deletions

View File

@@ -546,7 +546,11 @@ module LocalFlow {
)
or
hasNodePath(any(LocalExprStepConfiguration x), node1, node2) and
(node2 instanceof SsaDefinitionExtNode or node2.asExpr() instanceof Cast)
(
node2 instanceof SsaDefinitionExtNode or
node2.asExpr() instanceof Cast or
node2.asExpr() instanceof AssignExpr
)
or
exists(SsaImpl::Definition def |
def = getSsaDefinitionExt(node1) and