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

Skip to content

Commit 19a9285

Browse files
committed
Dataflow: Reshuffle a few conjuncts.
1 parent 7a95466 commit 19a9285

1 file changed

Lines changed: 28 additions & 29 deletions

File tree

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

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -619,13 +619,13 @@ private predicate read(Node n1, Content c, Node n2, Configuration config) {
619619

620620
pragma[noinline]
621621
private predicate localFlowStepNodeCand1(Node node1, Node node2, Configuration config) {
622-
Stage1::revFlow(node1, config) and
622+
Stage1::revFlow(node2, config) and
623623
localFlowStep(node1, node2, config)
624624
}
625625

626626
pragma[noinline]
627627
private predicate additionalLocalFlowStepNodeCand1(Node node1, Node node2, Configuration config) {
628-
Stage1::revFlow(node1, config) and
628+
Stage1::revFlow(node2, config) and
629629
additionalLocalFlowStep(node1, node2, config)
630630
}
631631

@@ -804,33 +804,32 @@ private module Stage2 {
804804
argAp = apNone() and
805805
ap = getApNil(node)
806806
or
807-
flowCand(node, _, unbind(config)) and
808-
(
809-
exists(Node mid |
810-
fwdFlow(mid, cc, argAp, ap, config) and
811-
localFlowStepNodeCand1(mid, node, config)
812-
)
813-
or
814-
exists(Node mid |
815-
fwdFlow(mid, cc, argAp, ap, config) and
816-
additionalLocalFlowStepNodeCand1(mid, node, config) and
817-
ap = false
818-
)
819-
or
820-
exists(Node mid |
821-
fwdFlow(mid, _, _, ap, config) and
822-
jumpStep(mid, node, config) and
823-
cc = ccAny() and
824-
argAp = apNone()
825-
)
826-
or
827-
exists(Node mid, ApNil nil |
828-
fwdFlow(mid, _, _, nil, config) and
829-
additionalJumpStep(mid, node, config) and
830-
cc = ccAny() and
831-
argAp = apNone() and
832-
ap = getApNil(node)
833-
)
807+
exists(Node mid |
808+
fwdFlow(mid, cc, argAp, ap, config) and
809+
localFlowStepNodeCand1(mid, node, config)
810+
)
811+
or
812+
exists(Node mid |
813+
fwdFlow(mid, cc, argAp, ap, config) and
814+
additionalLocalFlowStepNodeCand1(mid, node, config) and
815+
ap = false
816+
)
817+
or
818+
exists(Node mid |
819+
fwdFlow(mid, _, _, ap, config) and
820+
flowCand(node, _, unbind(config)) and
821+
jumpStep(mid, node, config) and
822+
cc = ccAny() and
823+
argAp = apNone()
824+
)
825+
or
826+
exists(Node mid, ApNil nil |
827+
fwdFlow(mid, _, _, nil, config) and
828+
flowCand(node, _, unbind(config)) and
829+
additionalJumpStep(mid, node, config) and
830+
cc = ccAny() and
831+
argAp = apNone() and
832+
ap = getApNil(node)
834833
)
835834
or
836835
// store

0 commit comments

Comments
 (0)