Skip to content

Commit 5efc06d

Browse files
yoffRasmusWL
andauthored
Update python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
1 parent 4c02852 commit 5efc06d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ class GuardNode extends ControlFlowNode {
157157

158158
GuardNode() { this = conditionBlock.getLastNode() }
159159

160-
predicate controlsBlock(BasicBlock b, boolean testIsTrue) {
161-
conditionBlock.controls(b, testIsTrue)
160+
/** Holds if this guard controls block `b` upon evaluating to `branch`. */
161+
predicate controlsBlock(BasicBlock b, boolean branch) {
162+
conditionBlock.controls(b, branch)
162163
}
163164
}
164165

0 commit comments

Comments
 (0)