Mass rename L/RValue -> VarWrite/Read

This commit is contained in:
Chris Smowton
2023-10-24 10:58:29 +01:00
committed by GitHub
parent 59a49eef0b
commit ac38d4c9c6
36 changed files with 81 additions and 81 deletions

View File

@@ -133,7 +133,7 @@ private module TypeTrackingSteps {
class LocalSourceNode extends RelevantNode {
LocalSourceNode() {
this.asExpr() instanceof Call or
this.asExpr() instanceof RValue or
this.asExpr() instanceof VarRead or
this instanceof DataFlow::ParameterNode or
this instanceof DataFlow::ImplicitVarargsArray or
this.asExpr() instanceof ArrayInit or
@@ -253,7 +253,7 @@ private module TypeTrackingSteps {
exists(AssignExpr a, Variable v |
a.getSource() = n1.asExpr() and
a.getDest().(ArrayAccess).getArray() = v.getAnAccess() and
n2.asExpr() = v.getAnAccess().(RValue) and
n2.asExpr() = v.getAnAccess().(VarRead) and
f = ContentArray()
)
}

View File

@@ -118,7 +118,7 @@ private predicate step(Node n1, Node n2) {
exists(AssignExpr a, Field v |
a.getSource() = n1.asExpr() and
a.getDest().(ArrayAccess).getArray() = v.getAnAccess() and
n2.asExpr() = v.getAnAccess().(RValue)
n2.asExpr() = v.getAnAccess().(VarRead)
)
or
exists(AssignExpr a |