mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Remove 'IRConfiguration' since we no longer generate bad IR for range analysis.
This commit is contained in:
@@ -8,19 +8,6 @@ import semmle.code.cpp.valuenumbering.GlobalValueNumbering
|
||||
import semmle.code.cpp.models.interfaces.Allocation
|
||||
import semmle.code.cpp.ir.IRConfiguration
|
||||
|
||||
class RangeAnalysisIRConfig extends IRConfiguration {
|
||||
override predicate shouldCreateIRForFunction(Declaration decl) {
|
||||
not exists(DeclStmt stmt |
|
||||
stmt.getEnclosingFunction() = decl and
|
||||
(
|
||||
not exists(stmt.getADeclaration())
|
||||
or
|
||||
not exists(stmt.getADeclarationEntry())
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
predicate bounded(Instruction i, Bound b, int delta, boolean upper) {
|
||||
// TODO: reason
|
||||
semBounded(getSemanticExpr(i), b, delta, upper, _)
|
||||
|
||||
Reference in New Issue
Block a user