We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f9235 commit b331556Copy full SHA for b331556
2 files changed
go/ql/lib/semmle/go/controlflow/IR.qll
@@ -446,6 +446,7 @@ module IR {
446
/** Gets the target to which this instruction writes. */
447
WriteTarget getLhs() { result = lhs }
448
449
+ /** Holds if this instruction initializes a literal. */
450
predicate isInitialization() { initialization = true }
451
452
/** Gets the instruction computing the value this instruction writes. */
go/ql/lib/semmle/go/dataflow/internal/DataFlowNodes.qll
@@ -817,6 +817,7 @@ module Public {
817
abstract Node getPreUpdateNode();
818
}
819
820
+ /** Holds if the node corresponding to `insn` has a post-update node. */
821
predicate insnHasPostUpdateNode(IR::Instruction insn) {
822
exists(Expr e | insn.(IR::EvalInstruction).getExpr() = e |
823
e instanceof AddressExpr or
0 commit comments