Skip to content

Commit 3cbf8e5

Browse files
committed
Dataflow: Remove superfluous constraint.
1 parent 04db61a commit 3cbf8e5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,10 +1623,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
16231623
or
16241624
node instanceof FlowCheckNode
16251625
or
1626-
exists(FlowState s |
1627-
additionalLocalStateStep(_, s, node, state, _, _, _) and
1628-
s != state
1629-
)
1626+
additionalLocalStateStep(_, _, node, state, _, _, _)
16301627
)
16311628
}
16321629

@@ -1661,8 +1658,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
16611658
|
16621659
additionalJumpStateStep(node, state, next, s, _)
16631660
or
1664-
additionalLocalStateStep(node, state, next, s, _, _, _) and
1665-
s != state
1661+
additionalLocalStateStep(node, state, next, s, _, _, _)
16661662
)
16671663
or
16681664
node instanceof FlowCheckNode

0 commit comments

Comments
 (0)