mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C++: Filter out lower bounds on overflowing exprs
Fixes performance issues where multiple lower bounds would be computed for overflowing expressions
This commit is contained in:
@@ -625,7 +625,8 @@ private float getTruncatedLowerBounds(Expr expr) {
|
||||
)
|
||||
else result = newLB
|
||||
else result = exprMinVal(expr)
|
||||
)
|
||||
) and
|
||||
getUpperBoundsImpl(expr) <= exprMaxVal(expr)
|
||||
or
|
||||
// The expression might overflow and wrap. If so, the
|
||||
// lower bound is exprMinVal.
|
||||
|
||||
Reference in New Issue
Block a user