Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 628e0a7

Browse files
committed
Dataflow: A few variable renamings.
1 parent bfd8a3d commit 628e0a7

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

java/ql/src/semmle/code/java/dataflow/internal/DataFlowImpl.qll

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -825,9 +825,9 @@ private module Stage2 {
825825
fwdFlowOut(call, node, cc, argAp, ap, config) and
826826
cc = false
827827
or
828-
exists(boolean argStored0 |
829-
fwdFlowOutFromArg(call, node, argStored0, ap, config) and
830-
fwdFlowIsEntered(call, cc, argAp, argStored0, config)
828+
exists(Ap argAp0 |
829+
fwdFlowOutFromArg(call, node, argAp0, ap, config) and
830+
fwdFlowIsEntered(call, cc, argAp, argAp0, config)
831831
)
832832
)
833833
)
@@ -868,21 +868,21 @@ private module Stage2 {
868868

869869
pragma[nomagic]
870870
private predicate fwdFlowOut(
871-
DataFlowCall call, Node out, Cc cc, ApOption argAp, Ap ap, Configuration config
871+
DataFlowCall call, Node node, Cc cc, ApOption argAp, Ap ap, Configuration config
872872
) {
873873
exists(ReturnNodeExt ret, boolean allowsFieldFlow |
874874
fwdFlow(ret, cc, argAp, ap, config) and
875-
flowOutOfCallNodeCand1(call, ret, out, allowsFieldFlow, config)
875+
flowOutOfCallNodeCand1(call, ret, node, allowsFieldFlow, config)
876876
|
877877
ap instanceof ApNil or allowsFieldFlow = true
878878
)
879879
}
880880

881881
pragma[nomagic]
882882
private predicate fwdFlowOutFromArg(
883-
DataFlowCall call, Node out, boolean argAp, Ap ap, Configuration config
883+
DataFlowCall call, Node node, Ap argAp, Ap ap, Configuration config
884884
) {
885-
fwdFlowOut(call, out, true, apSome(argAp), ap, config)
885+
fwdFlowOut(call, node, true, apSome(argAp), ap, config)
886886
}
887887

888888
/**
@@ -1026,9 +1026,9 @@ private module Stage2 {
10261026
*/
10271027
pragma[noinline]
10281028
predicate revFlowIsReadAndStored(Content c, Configuration conf) {
1029-
exists(boolean apNonEmpty |
1030-
revFlowIsStored(c, apNonEmpty, conf) and
1031-
revFlowConsCand(c, apNonEmpty, conf)
1029+
exists(Ap ap |
1030+
revFlowIsStored(c, ap, conf) and
1031+
revFlowConsCand(c, ap, conf)
10321032
)
10331033
}
10341034

@@ -1332,9 +1332,9 @@ private module Stage3 {
13321332
fwdFlowOut(call, node, cc, argAp, ap, config) and
13331333
cc = false
13341334
or
1335-
exists(Ap argApf0 |
1336-
fwdFlowOutFromArg(call, node, argApf0, ap, config) and
1337-
fwdFlowIsEntered(call, cc, argAp, argApf0, config)
1335+
exists(Ap argAp0 |
1336+
fwdFlowOutFromArg(call, node, argAp0, ap, config) and
1337+
fwdFlowIsEntered(call, cc, argAp, argAp0, config)
13381338
)
13391339
)
13401340
}
@@ -2066,9 +2066,9 @@ private module Stage4 {
20662066
revFlowIn(call, node, toReturn, returnAp, ap, config) and
20672067
toReturn = false
20682068
or
2069-
exists(Ap returnApa0 |
2070-
revFlowInToReturn(call, node, returnApa0, ap, config) and
2071-
revFlowIsReturned(call, toReturn, returnAp, returnApa0, config)
2069+
exists(Ap returnAp0 |
2070+
revFlowInToReturn(call, node, returnAp0, ap, config) and
2071+
revFlowIsReturned(call, toReturn, returnAp, returnAp0, config)
20722072
)
20732073
)
20742074
or

0 commit comments

Comments
 (0)