Skip to content

Commit 5def288

Browse files
committed
Shared: Add an example for SemBound.getExpr.
1 parent cb1c682 commit 5def288

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,9 @@ signature module BoundSig<LocationSig Location, Semantic Sem, DeltaSig D> {
393393
Location getLocation();
394394

395395
/**
396-
* Gets an expression that equals this bound plus `delta`.
396+
* Gets an expression that equals this bound plus `delta`. For example given
397+
* the expression `x = foo() + 1` the variable `x` has a bound with
398+
* expression `call to foo()` and delta `-1`.
397399
*
398400
* For the zero-bound this gets integer constants equal to `delta`, and for
399401
* other bounds this gets expressions equal to the bound while `delta = 0`.

0 commit comments

Comments
 (0)