Skip to content

Commit e37848e

Browse files
committed
C++: Remove 'IRConfiguration' since we no longer generate bad IR for range analysis.
1 parent 86259ce commit e37848e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

cpp/ql/src/experimental/Likely Bugs/ArrayAccessProductFlow.ql

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ import semmle.code.cpp.valuenumbering.GlobalValueNumbering
88
import semmle.code.cpp.models.interfaces.Allocation
99
import semmle.code.cpp.ir.IRConfiguration
1010

11-
class RangeAnalysisIRConfig extends IRConfiguration {
12-
override predicate shouldCreateIRForFunction(Declaration decl) {
13-
not exists(DeclStmt stmt |
14-
stmt.getEnclosingFunction() = decl and
15-
(
16-
not exists(stmt.getADeclaration())
17-
or
18-
not exists(stmt.getADeclarationEntry())
19-
)
20-
)
21-
}
22-
}
23-
2411
predicate bounded(Instruction i, Bound b, int delta, boolean upper) {
2512
// TODO: reason
2613
semBounded(getSemanticExpr(i), b, delta, upper, _)

0 commit comments

Comments
 (0)