Skip to content

Commit 4877659

Browse files
Fix names.
1 parent bc752e1 commit 4877659

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

cpp/ql/src/semmle/code/cpp/controlflow/Dominance.qll

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ private predicate nodePred(ControlFlowNode src, ControlFlowNode pred) {
5656
predicate iDominates(ControlFlowNode dominator, ControlFlowNode node) = idominance(functionEntry/1,nodeSucc/2)(_, dominator, node)
5757

5858
/**
59-
* Holds if `postdominator` is an immediate post-dominator of `node` in the control-flow
59+
* Holds if `postDominator` is an immediate post-dominator of `node` in the control-flow
6060
* graph.
6161
*/
62-
predicate iPostDominates(ControlFlowNode postdominator, ControlFlowNode node) = idominance(functionExit/1,nodePred/2)(_, postdominator, node)
62+
predicate iPostDominates(ControlFlowNode postDominator, ControlFlowNode node) = idominance(functionExit/1,nodePred/2)(_, postDominator, node)
6363

6464
/**
6565
* Holds if `dominator` is a strict dominator of `node` in the control-flow
@@ -70,11 +70,11 @@ predicate strictlyDominates(ControlFlowNode dominator, ControlFlowNode node) {
7070
}
7171

7272
/**
73-
* Holds if `postdominator` is a strict post-dominator of `node` in the control-flow
74-
* graph. Being strict means that `postdominator != node`.
73+
* Holds if `postDominator` is a strict post-dominator of `node` in the control-flow
74+
* graph. Being strict means that `postDominator != node`.
7575
*/
76-
predicate strictlyPostDominates(ControlFlowNode postdominator, ControlFlowNode node) {
77-
iPostDominates+(postdominator, node)
76+
predicate strictlyPostDominates(ControlFlowNode postDominator, ControlFlowNode node) {
77+
iPostDominates+(postDominator, node)
7878
}
7979

8080
/**
@@ -86,11 +86,11 @@ predicate dominates(ControlFlowNode dominator, ControlFlowNode node) {
8686
}
8787

8888
/**
89-
* Holds if `postdominator` is a post-dominator of `node` in the control-flow graph. This
89+
* Holds if `postDominator` is a post-dominator of `node` in the control-flow graph. This
9090
* is reflexive.
9191
*/
92-
predicate postdominates(ControlFlowNode postdominator, ControlFlowNode node) {
93-
strictlyPostDominates(postdominator, node) or postdominator = node
92+
predicate postDominates(ControlFlowNode postDominator, ControlFlowNode node) {
93+
strictlyPostDominates(postDominator, node) or postDominator = node
9494
}
9595

9696
/*
@@ -111,16 +111,16 @@ private predicate bb_predecessor(BasicBlock succ, BasicBlock pred) {
111111
bb_successor(pred, succ)
112112
}
113113

114-
/** Holds if `exit` an `ExitBasicBlock`. */
114+
/** Holds if `exit` is an `ExitBasicBlock`. */
115115
private predicate bb_exit(ExitBasicBlock exit) {
116116
any()
117117
}
118118

119119
/**
120-
* Holds if `postdominator` is an immediate post-dominator of `node` in the control-flow
120+
* Holds if `postDominator` is an immediate post-dominator of `node` in the control-flow
121121
* graph of basic blocks.
122122
*/
123-
predicate bbIPostDominates(BasicBlock dom, BasicBlock node) = idominance(bb_exit/1, bb_predecessor/2)(_, dom, node)
123+
predicate bbIPostDominates(BasicBlock pDom, BasicBlock node) = idominance(bb_exit/1, bb_predecessor/2)(_, pDom, node)
124124

125125
/**
126126
* Holds if `dominator` is a strict dominator of `node` in the control-flow
@@ -131,11 +131,11 @@ predicate bbStrictlyDominates(BasicBlock dominator, BasicBlock node) {
131131
}
132132

133133
/**
134-
* Holds if `postdominator` is a strict post-dominator of `node` in the control-flow
135-
* graph of basic blocks. Being strict means that `postdominator != node`.
134+
* Holds if `postDominator` is a strict post-dominator of `node` in the control-flow
135+
* graph of basic blocks. Being strict means that `postDominator != node`.
136136
*/
137-
predicate bbStrictlyPostDominates(BasicBlock postdominator, BasicBlock node) {
138-
bbIPostDominates+(postdominator, node)
137+
predicate bbStrictlyPostDominates(BasicBlock postDominator, BasicBlock node) {
138+
bbIPostDominates+(postDominator, node)
139139
}
140140

141141
/**
@@ -147,9 +147,9 @@ predicate bbDominates(BasicBlock dominator, BasicBlock node) {
147147
}
148148

149149
/**
150-
* Holds if `postdominator` is a post-dominator of `node` in the control-flow graph of
150+
* Holds if `postDominator` is a post-dominator of `node` in the control-flow graph of
151151
* basic blocks. This is reflexive.
152152
*/
153-
predicate bbPostDominates(BasicBlock postdominator, BasicBlock node) {
154-
bbStrictlyPostDominates(postdominator, node) or postdominator = node
153+
predicate bbPostDominates(BasicBlock postDominator, BasicBlock node) {
154+
bbStrictlyPostDominates(postDominator, node) or postDominator = node
155155
}

0 commit comments

Comments
 (0)