We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 510df38 commit 9d2eb3dCopy full SHA for 9d2eb3d
cpp/ql/lib/semmle/code/cpp/rangeanalysis/new/internal/semantic/SemanticExprSpecific.qll
@@ -112,7 +112,14 @@ module SemanticExprConfig {
112
}
113
114
/** Holds if no range analysis should be performed on the phi edges in `f`. */
115
- private predicate excludeFunction(Cpp::Function f) { count(f.getEntryPoint()) > 1 }
+ private predicate excludeFunction(Cpp::Function f) {
116
+ count(f.getEntryPoint()) > 1
117
+ or
118
+ exists(IR::IRFunction irFunction |
119
+ irFunction.getFunction() = f and
120
+ irFunction.hasIncompleteSsa()
121
+ )
122
+ }
123
124
SemType getUnknownExprType(Expr expr) { result = getSemanticType(expr.getResultIRType()) }
125
0 commit comments