Skip to content

Commit

Permalink
Merge pull request #18423 from aschackmull/dataflow/del-deadcode
Browse files Browse the repository at this point in the history
Dataflow: Remove some dead code.
  • Loading branch information
aschackmull authored Jan 7, 2025
2 parents 91f9fb2 + eea85d8 commit 148b78a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll
Original file line number Diff line number Diff line change
Expand Up @@ -894,12 +894,6 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
pragma[nomagic]
predicate revFlow(NodeEx node) { revFlow(node, _) }

pragma[nomagic]
predicate revFlowAp(NodeEx node, Ap ap) {
revFlow(node) and
exists(ap)
}

bindingset[node, state]
predicate revFlow(NodeEx node, FlowState state, Ap ap) {
revFlow(node, _) and
Expand Down Expand Up @@ -1278,8 +1272,6 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {

predicate revFlow(NodeEx node);

predicate revFlowAp(NodeEx node, Ap ap);

bindingset[node, state]
predicate revFlow(NodeEx node, FlowState state, Ap ap);

Expand Down Expand Up @@ -2456,16 +2448,11 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
)
}

additional predicate revFlow(NodeEx node, FlowState state) { revFlow(node, state, _, _, _) }

predicate revFlow(NodeEx node, FlowState state, Ap ap) { revFlow(node, state, _, _, ap) }

pragma[nomagic]
predicate revFlow(NodeEx node) { revFlow(node, _, _, _, _) }

pragma[nomagic]
predicate revFlowAp(NodeEx node, Ap ap) { revFlow(node, _, _, _, ap) }

private predicate fwdConsCand(Content c, Ap ap) { storeStepFwd(_, ap, c, _, _) }

private predicate revConsCand(Content c, Ap ap) {
Expand Down Expand Up @@ -2620,7 +2607,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
*/
private class FlowCheckNode extends NodeEx {
FlowCheckNode() {
revFlow(this, _, _) and
revFlow(this) and
(
flowCheckNode(this) or
Config::neverSkip(this.asNode())
Expand Down

0 comments on commit 148b78a

Please sign in to comment.