Skip to content

Commit 376e01a

Browse files
committed
C++: update docs for new range analysis AST wrapper
1 parent 3f86386 commit 376e01a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cpp/ql/lib/semmle/code/cpp/rangeanalysis/new/RangeAnalysis.qll

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Provides an AST-based interface to the relative range analysis, which tracks bounds of the form
3-
* `a < B + delta` for expressions `a` and `b` and an integer offset `delta`.
3+
* `a <= b + delta` for expressions `a` and `b` and an integer offset `delta`.
44
*/
55

66
private import semmle.code.cpp.rangeanalysis.new.internal.semantic.analysis.RangeAnalysis
@@ -14,7 +14,7 @@ private import semmle.code.cpp.valuenumbering.GlobalValueNumbering
1414

1515
/**
1616
* Holds if e is bounded by `b + delta`. The bound is an upper bound if
17-
* `upper` is true, and can be traced baack to a guard represented by `reason`.
17+
* `upper` is true, and can be traced back to a guard represented by `reason`.
1818
*/
1919
predicate bounded(Expr e, Bound b, float delta, boolean upper, Reason reason) {
2020
exists(SemanticExprConfig::Expr semExpr |
@@ -26,7 +26,8 @@ predicate bounded(Expr e, Bound b, float delta, boolean upper, Reason reason) {
2626

2727
/**
2828
* Holds if e is bounded by `b + delta`. The bound is an upper bound if
29-
* `upper` is true, and can be traced baack to a guard represented by `reason`.
29+
* `upper` is true, and can be traced back to a guard represented by `reason`.
30+
* The `Expr` may be a conversion.
3031
*/
3132
predicate convertedBounded(Expr e, Bound b, float delta, boolean upper, Reason reason) {
3233
exists(SemanticExprConfig::Expr semExpr |

0 commit comments

Comments
 (0)