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 e78091e commit b78537dCopy full SHA for b78537d
cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll
@@ -1156,5 +1156,14 @@ private predicate add_eq(
1156
)
1157
}
1158
1159
+private class IntegerOrPointerConstantInstruction extends ConstantInstruction {
1160
+ IntegerOrPointerConstantInstruction() {
1161
+ this instanceof IntegerConstantInstruction or
1162
+ this instanceof PointerConstantInstruction
1163
+ }
1164
+}
1165
+
1166
/** The int value of integer constant expression. */
-private int int_value(Instruction i) { result = i.(IntegerConstantInstruction).getValue().toInt() }
1167
+private int int_value(Instruction i) {
1168
+ result = i.(IntegerOrPointerConstantInstruction).getValue().toInt()
1169
0 commit comments