Skip to content

Commit 445b82b

Browse files
committed
Shared: Explain 'guard'.
1 parent 70465b2 commit 445b82b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ signature module Semantic {
189189
* Console.WriteLine("x is greater than y");
190190
* }
191191
* ```
192+
* `branch` indicates whether the basic block is entered when the guard
193+
* evaluates to `true` or when it evaluates to `false`.
192194
*/
193195
predicate directlyControls(BasicBlock controlled, boolean branch);
194196

@@ -211,6 +213,8 @@ signature module Semantic {
211213
* printf("x is not greater than y\n");
212214
* }
213215
* ```
216+
* `branch` indicates whether the second basic block is the one entered
217+
* when the guard evaluates to `true` or when it evaluates to `false`.
214218
*/
215219
predicate hasBranchEdge(BasicBlock bb1, BasicBlock bb2, boolean branch);
216220
}

0 commit comments

Comments
 (0)