Skip to content

Commit 10ce475

Browse files
committed
Data flow: unify apNext with ap as they're always equal in this clause
1 parent 76eba98 commit 10ce475

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

+4-8
Original file line numberDiff line numberDiff line change
@@ -2704,19 +2704,15 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
27042704
private predicate localFlowExit(NodeEx node, FlowState state, Ap ap) {
27052705
revFlow(node, pragma[only_bind_into](state), pragma[only_bind_into](ap)) and
27062706
(
2707-
exists(NodeEx next, Ap apNext | revFlow(next, pragma[only_bind_into](state), apNext) |
2708-
jumpStepEx(node, next) and
2709-
apNext = ap
2707+
exists(NodeEx next | revFlow(next, pragma[only_bind_into](state), ap) |
2708+
jumpStepEx(node, next)
27102709
or
27112710
additionalJumpStep(node, next, _) and
2712-
apNext = ap and
27132711
ap instanceof ApNil
27142712
or
2715-
callEdgeArgParam(_, _, node, next, _, ap) and
2716-
apNext = ap
2713+
callEdgeArgParam(_, _, node, next, _, ap)
27172714
or
2718-
callEdgeReturn(_, _, node, _, next, _, ap) and
2719-
apNext = ap
2715+
callEdgeReturn(_, _, node, _, next, _, ap)
27202716
)
27212717
or
27222718
exists(NodeEx next | revFlow(next, pragma[only_bind_into](state), _) |

0 commit comments

Comments
 (0)