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 b092da4 commit 261ba8eCopy full SHA for 261ba8e
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternalsCommon.qll
@@ -320,6 +320,14 @@ private module IteratorIndirections {
320
}
321
322
323
+/**
324
+ * Holds if `deref` is the result of loading the value at the address
325
+ * represented by `address`.
326
+ *
327
+ * If `additional = true` then the dereference comes from an `Indirection`
328
+ * class (such as a call to an iterator's `operator*`), and if
329
+ * `additional = false` the dereference is a `LoadInstruction`.
330
+ */
331
predicate isDereference(Instruction deref, Operand address, boolean additional) {
332
any(Indirection ind).isAdditionalDereference(deref, address) and
333
additional = true
0 commit comments