Skip to content

Commit 7d98d39

Browse files
committed
UniversalFlow: Rename FlowScc.
1 parent d41b86a commit 7d98d39

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

shared/typeflow/codeql/typeflow/UniversalFlow.qll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ module UfMake<LocationSig Location, UniversalFlowInput<Location> I> {
107107

108108
private module Scc = QlBuiltins::EquivalenceRelation<FlowNode, sccEdge/2>;
109109

110-
private class TypeFlowScc = Scc::EquivalenceClass;
110+
private class FlowScc = Scc::EquivalenceClass;
111111

112112
/** Holds if `n` is part of an SCC of size 2 or more represented by `scc`. */
113-
private predicate sccRepr(FlowNode n, TypeFlowScc scc) { scc = Scc::getEquivalenceClass(n) }
113+
private predicate sccRepr(FlowNode n, FlowScc scc) { scc = Scc::getEquivalenceClass(n) }
114114

115-
private predicate sccJoinStepNotNull(FlowNode n, TypeFlowScc scc) {
115+
private predicate sccJoinStepNotNull(FlowNode n, FlowScc scc) {
116116
exists(FlowNode mid |
117117
joinStepNotNull(n, mid) and
118118
sccRepr(mid, scc) and
@@ -221,7 +221,7 @@ module UfMake<LocationSig Location, UniversalFlowInput<Location> I> {
221221
}
222222

223223
private module SccJoinStep implements Edge {
224-
class Node = TypeFlowScc;
224+
class Node = FlowScc;
225225

226226
predicate edge = sccJoinStepNotNull/2;
227227
}
@@ -256,11 +256,11 @@ module UfMake<LocationSig Location, UniversalFlowInput<Location> I> {
256256
// `forex(FlowNode mid | joinStepNotNull(mid, n) | hasPropery(mid))`
257257
ForAll<FlowNode, RankedJoinStep, Propagation>::flowJoin(n, _)
258258
or
259-
exists(TypeFlowScc scc |
259+
exists(FlowScc scc |
260260
sccRepr(n, scc) and
261261
// Optimized version of
262262
// `forex(FlowNode mid | sccJoinStepNotNull(mid, scc) | hasPropery(mid))`
263-
ForAll<TypeFlowScc, RankedSccJoinStep, Propagation>::flowJoin(scc, _)
263+
ForAll<FlowScc, RankedSccJoinStep, Propagation>::flowJoin(scc, _)
264264
)
265265
)
266266
}
@@ -304,11 +304,11 @@ module UfMake<LocationSig Location, UniversalFlowInput<Location> I> {
304304
// `forex(FlowNode mid | joinStepNotNull(mid, n) | hasPropery(mid, t))`
305305
ForAll<FlowNode, RankedJoinStep, Propagation>::flowJoin(n, t)
306306
or
307-
exists(TypeFlowScc scc |
307+
exists(FlowScc scc |
308308
sccRepr(n, scc) and
309309
// Optimized version of
310310
// `forex(FlowNode mid | sccJoinStepNotNull(mid, scc) | hasPropery(mid, t))`
311-
ForAll<TypeFlowScc, RankedSccJoinStep, Propagation>::flowJoin(scc, t)
311+
ForAll<FlowScc, RankedSccJoinStep, Propagation>::flowJoin(scc, t)
312312
)
313313
)
314314
}

0 commit comments

Comments
 (0)