mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
C++: Filter out instructions with incomplete SSA in range analysis.
This commit is contained in:
@@ -112,7 +112,14 @@ module SemanticExprConfig {
|
||||
}
|
||||
|
||||
/** Holds if no range analysis should be performed on the phi edges in `f`. */
|
||||
private predicate excludeFunction(Cpp::Function f) { count(f.getEntryPoint()) > 1 }
|
||||
private predicate excludeFunction(Cpp::Function f) {
|
||||
count(f.getEntryPoint()) > 1
|
||||
or
|
||||
exists(IR::IRFunction irFunction |
|
||||
irFunction.getFunction() = f and
|
||||
irFunction.hasIncompleteSsa()
|
||||
)
|
||||
}
|
||||
|
||||
SemType getUnknownExprType(Expr expr) { result = getSemanticType(expr.getResultIRType()) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user