We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40719b commit d6fb29dCopy full SHA for d6fb29d
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll
@@ -68,6 +68,7 @@ private predicate ignoreConstantValue(Operation op) {
68
* means to express those as QL values.
69
*/
70
predicate isIRConstant(Expr expr) {
71
+ not expr = any(IfStmt ifstmt).getCondition().getFullyConverted() and
72
exists(expr.getValue()) and
73
// We avoid constant folding certain operations since it's often useful to
74
// mark one of those as a source in dataflow, and if the operation is
0 commit comments