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

Skip to content

Commit bfd8a3d

Browse files
committed
Dataflow: Rename stage 2 cons-cand predicates.
1 parent 0a60a3a commit bfd8a3d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ private module Stage2 {
812812
// read
813813
exists(Content c |
814814
fwdFlowRead(c, node, cc, argAp, config) and
815-
fwdFlowIsStored(c, ap, config)
815+
fwdFlowConsCand(c, ap, config)
816816
)
817817
or
818818
// flow into a callable
@@ -837,7 +837,7 @@ private module Stage2 {
837837
* Holds if `c` is the target of a store in the flow covered by `fwdFlow`.
838838
*/
839839
pragma[noinline]
840-
private predicate fwdFlowIsStored(Content c, Ap ap, Configuration config) {
840+
private predicate fwdFlowConsCand(Content c, Ap ap, Configuration config) {
841841
exists(Node mid, Node node |
842842
useFieldFlow(config) and
843843
Stage1::revFlow(node, unbind(config)) and
@@ -954,13 +954,13 @@ private module Stage2 {
954954
// store
955955
exists(Content c |
956956
revFlowStore(c, node, toReturn, returnAp, ap, config) and
957-
revFlowIsRead(c, ap, config)
957+
revFlowConsCand(c, ap, config)
958958
)
959959
or
960960
// read
961961
exists(Node mid, Content c, Ap ap0 |
962962
read(node, c, mid, config) and
963-
fwdFlowIsStored(c, unbindBool(ap0), unbind(config)) and
963+
fwdFlowConsCand(c, unbindBool(ap0), unbind(config)) and
964964
revFlow(mid, toReturn, returnAp, ap0, config) and
965965
ap = true
966966
)
@@ -988,12 +988,12 @@ private module Stage2 {
988988
* Holds if `c` is the target of a read in the flow covered by `revFlow`.
989989
*/
990990
pragma[noinline]
991-
private predicate revFlowIsRead(Content c, Ap ap, Configuration config) {
991+
private predicate revFlowConsCand(Content c, Ap ap, Configuration config) {
992992
exists(Node mid, Node node |
993993
useFieldFlow(config) and
994994
fwdFlow(node, _, _, true, unbind(config)) and
995995
read(node, c, mid, config) and
996-
fwdFlowIsStored(c, unbindBool(ap), unbind(config)) and
996+
fwdFlowConsCand(c, unbindBool(ap), unbind(config)) and
997997
revFlow(mid, _, _, ap, config)
998998
)
999999
}
@@ -1028,7 +1028,7 @@ private module Stage2 {
10281028
predicate revFlowIsReadAndStored(Content c, Configuration conf) {
10291029
exists(boolean apNonEmpty |
10301030
revFlowIsStored(c, apNonEmpty, conf) and
1031-
revFlowIsRead(c, apNonEmpty, conf)
1031+
revFlowConsCand(c, apNonEmpty, conf)
10321032
)
10331033
}
10341034

0 commit comments

Comments
 (0)