We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c656d commit c7ea7caCopy full SHA for c7ea7ca
cpp/ql/lib/semmle/code/cpp/rangeanalysis/SimpleRangeAnalysis.qll
@@ -1597,7 +1597,8 @@ private module SimpleRangeAnalysisCached {
1597
cached
1598
predicate upperBoundMayBeWidened(Expr e) {
1599
isRecursiveExpr(e) and
1600
- // Corresponds to taking max on the RHS
+ // 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.
1602
not getGuardedUpperBound(e) < getTruncatedUpperBounds(e)
1603
}
1604
0 commit comments