Skip to content

Commit 7435bb1

Browse files
committed
C++: Add number of bounds test to simple range analysis
1 parent 1a9a40c commit 7435bb1

File tree

3 files changed

+4579
-0
lines changed

3 files changed

+4579
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,4 +2135,6 @@ module SimpleRangeAnalysisInternal {
21352135
// bound is `typeUpperBound`.
21362136
defMightOverflowNegatively(def, v) and result = varMaxVal(v)
21372137
}
2138+
2139+
float estimateNrOfBounds(Expr e) { result = BoundsEstimate::nrOfBoundsExpr(e) }
21382140
}

0 commit comments

Comments
 (0)