C++: Apply documentation change suggestion

Co-authored-by: Jonas Jensen <jbj@github.com>
This commit is contained in:
Anders Peter Fugmann
2021-09-28 09:40:25 +02:00
committed by GitHub
parent 49c656d904
commit c7ea7ca5cd

View File

@@ -1597,7 +1597,8 @@ private module SimpleRangeAnalysisCached {
cached
predicate upperBoundMayBeWidened(Expr e) {
isRecursiveExpr(e) and
// Corresponds to taking max on the RHS
// Widening is not a problem if the post-analysis in `getGuardedUpperBound` has overridden the widening.
// Note that the RHS of `<` may be multi-valued.
not getGuardedUpperBound(e) < getTruncatedUpperBounds(e)
}