Skip to content

Commit b534e7b

Browse files
committed
Dataflow: Remove superfluous columns
1 parent a2fa97a commit b534e7b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ module Impl<FullStateConfigSig Config> {
391391
private predicate hasReadStep(Content c) { read(_, c, _) }
392392

393393
pragma[nomagic]
394-
private predicate storeEx(NodeEx node1, TypedContent tc, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType) {
395-
store(pragma[only_bind_into](node1.asNode()), tc, c, pragma[only_bind_into](node2.asNode()),
394+
private predicate storeEx(NodeEx node1, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType) {
395+
store(pragma[only_bind_into](node1.asNode()), _, c, pragma[only_bind_into](node2.asNode()),
396396
contentType, containerType) and
397397
hasReadStep(c) and
398398
stepFilter(node1, node2)
@@ -479,7 +479,7 @@ module Impl<FullStateConfigSig Config> {
479479
exists(NodeEx mid |
480480
useFieldFlow() and
481481
fwdFlow(mid, cc) and
482-
storeEx(mid, _, _, node, _, _)
482+
storeEx(mid, _, node, _, _)
483483
)
484484
or
485485
// read
@@ -575,7 +575,7 @@ module Impl<FullStateConfigSig Config> {
575575
not fullBarrier(node) and
576576
useFieldFlow() and
577577
fwdFlow(mid, _) and
578-
storeEx(mid, _, c, node, _, _)
578+
storeEx(mid, c, node, _, _)
579579
)
580580
}
581581

@@ -712,7 +712,7 @@ module Impl<FullStateConfigSig Config> {
712712
exists(NodeEx mid |
713713
revFlow(mid, toReturn) and
714714
fwdFlowConsCand(c) and
715-
storeEx(node, _, c, mid, _, _)
715+
storeEx(node, c, mid, _, _)
716716
)
717717
}
718718

@@ -802,11 +802,11 @@ module Impl<FullStateConfigSig Config> {
802802

803803
pragma[nomagic]
804804
predicate storeStepCand(
805-
NodeEx node1, Ap ap1, TypedContent tc, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
805+
NodeEx node1, Ap ap1, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
806806
) {
807807
revFlowIsReadAndStored(c) and
808808
revFlow(node2) and
809-
storeEx(node1, tc, c, node2, contentType, containerType) and
809+
storeEx(node1, c, node2, contentType, containerType) and
810810
exists(ap1)
811811
}
812812

@@ -1049,7 +1049,7 @@ module Impl<FullStateConfigSig Config> {
10491049
predicate returnMayFlowThrough(RetNodeEx ret, Ap argAp, Ap ap, ReturnKindExt kind);
10501050

10511051
predicate storeStepCand(
1052-
NodeEx node1, Ap ap1, TypedContent tc, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
1052+
NodeEx node1, Ap ap1, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
10531053
);
10541054

10551055
predicate readStepCand(NodeEx n1, Content c, NodeEx n2);
@@ -1319,7 +1319,7 @@ module Impl<FullStateConfigSig Config> {
13191319
) {
13201320
exists(DataFlowType contentType, DataFlowType containerType, ApApprox apa1 |
13211321
fwdFlow(node1, state, cc, summaryCtx, argT, argAp, t1, ap1, apa1) and
1322-
PrevStage::storeStepCand(node1, apa1, _, c, node2, contentType, containerType) and
1322+
PrevStage::storeStepCand(node1, apa1, c, node2, contentType, containerType) and
13231323
t2 = getTyp(containerType) and
13241324
typecheckStore(t1, contentType)
13251325
)
@@ -1671,10 +1671,10 @@ module Impl<FullStateConfigSig Config> {
16711671

16721672
pragma[nomagic]
16731673
predicate storeStepCand(
1674-
NodeEx node1, Ap ap1, TypedContent tc, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
1674+
NodeEx node1, Ap ap1, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
16751675
) {
16761676
exists(Ap ap2 |
1677-
PrevStage::storeStepCand(node1, _, tc, c, node2, contentType, containerType) and
1677+
PrevStage::storeStepCand(node1, _, c, node2, contentType, containerType) and
16781678
revFlowStore(ap2, c, ap1, _, node1, _, node2, _, _) and
16791679
revFlowConsCand(ap2, c, ap1)
16801680
)
@@ -2023,7 +2023,7 @@ module Impl<FullStateConfigSig Config> {
20232023
or
20242024
node.asNode() instanceof OutNodeExt
20252025
or
2026-
Stage2::storeStepCand(_, _, _, _, node, _, _)
2026+
Stage2::storeStepCand(_, _, _, node, _, _)
20272027
or
20282028
Stage2::readStepCand(_, _, node)
20292029
or
@@ -2046,7 +2046,7 @@ module Impl<FullStateConfigSig Config> {
20462046
additionalJumpStep(node, next) or
20472047
flowIntoCallNodeCand2(_, node, next, _) or
20482048
flowOutOfCallNodeCand2(_, node, _, next, _) or
2049-
Stage2::storeStepCand(node, _, _, _, next, _, _) or
2049+
Stage2::storeStepCand(node, _, _, next, _, _) or
20502050
Stage2::readStepCand(node, _, next)
20512051
)
20522052
or
@@ -3417,7 +3417,7 @@ module Impl<FullStateConfigSig Config> {
34173417
) {
34183418
t0 = mid.getType() and
34193419
ap0 = mid.getAp() and
3420-
Stage5::storeStepCand(mid.getNodeEx(), _, _, c, node, _, t) and
3420+
Stage5::storeStepCand(mid.getNodeEx(), _, c, node, _, t) and
34213421
state = mid.getState() and
34223422
cc = mid.getCallContext()
34233423
}
@@ -3624,7 +3624,7 @@ module Impl<FullStateConfigSig Config> {
36243624
result.isHidden() and
36253625
exists(NodeEx n1, NodeEx n2 | n1 = n.getNodeEx() and n2 = result.getNodeEx() |
36263626
localFlowBigStep(n1, _, n2, _, _, _, _) or
3627-
storeEx(n1, _, _, n2, _, _) or
3627+
storeEx(n1, _, n2, _, _) or
36283628
readSetEx(n1, _, n2)
36293629
)
36303630
}
@@ -4283,7 +4283,7 @@ module Impl<FullStateConfigSig Config> {
42834283
midNode = mid.getNodeEx() and
42844284
t1 = mid.getType() and
42854285
ap1 = mid.getAp() and
4286-
storeEx(midNode, _, c, node, contentType, t2) and
4286+
storeEx(midNode, c, node, contentType, t2) and
42874287
ap2.getHead() = c and
42884288
ap2.len() = unbindInt(ap1.len() + 1) and
42894289
compatibleTypes(t1, contentType)
@@ -4543,7 +4543,7 @@ module Impl<FullStateConfigSig Config> {
45434543
exists(NodeEx midNode |
45444544
midNode = mid.getNodeEx() and
45454545
ap = mid.getAp() and
4546-
storeEx(node, _, c, midNode, _, _) and
4546+
storeEx(node, c, midNode, _, _) and
45474547
ap.getHead() = c
45484548
)
45494549
}

0 commit comments

Comments
 (0)