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

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2020-09-14 17:08:39 +02:00
committed by GitHub
parent 4c02852358
commit 5efc06da2c

View File

@@ -157,8 +157,9 @@ class GuardNode extends ControlFlowNode {
GuardNode() { this = conditionBlock.getLastNode() }
predicate controlsBlock(BasicBlock b, boolean testIsTrue) {
conditionBlock.controls(b, testIsTrue)
/** Holds if this guard controls block `b` upon evaluating to `branch`. */
predicate controlsBlock(BasicBlock b, boolean branch) {
conditionBlock.controls(b, branch)
}
}