Skip to content

Commit c7ea7ca

Browse files
andersfugmannjbj
andauthored
C++: Apply documentation change suggestion
Co-authored-by: Jonas Jensen <[email protected]>
1 parent 49c656d commit c7ea7ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/ql/lib/semmle/code/cpp/rangeanalysis/SimpleRangeAnalysis.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,8 @@ private module SimpleRangeAnalysisCached {
15971597
cached
15981598
predicate upperBoundMayBeWidened(Expr e) {
15991599
isRecursiveExpr(e) and
1600-
// Corresponds to taking max on the RHS
1600+
// Widening is not a problem if the post-analysis in `getGuardedUpperBound` has overridden the widening.
1601+
// Note that the RHS of `<` may be multi-valued.
16011602
not getGuardedUpperBound(e) < getTruncatedUpperBounds(e)
16021603
}
16031604

0 commit comments

Comments
 (0)