CodeQL library for Go
codeql/go-all 7.3.1 (changelog, source)
Search

Class SsaPseudoDefinition

An SSA definition such as a phi node that has no actual semantics, but simply serves to merge or filter data flow.

Import path

import semmle.go.dataflow.SSA

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getAnInput

Gets an input of this pseudo-definition.

Inherited predicates

definesAt

Holds if this SSA definition defines v at index i in basic block bb. Phi nodes are considered to be at index -1, while normal variable writes are at the index of the control flow node they wrap.

from Definition
getAFirstUse

Gets the first instruction that the value of this SsaDefinition can reach without passing through any other instructions, but possibly through phi nodes.

from SsaDefinition
getBasicBlock

Gets the basic block to which this SSA definition belongs.

from Definition
getKind

INTERNAL: Do not use.

from SsaDefinition
getLocation

Gets the location of this SSA definition.

from Definition
getRoot

Gets the innermost function or file to which this SSA definition belongs.

from SsaDefinition
getSourceVariable

Gets the source variable underlying this SSA definition.

from Definition
getVariable

Gets the SSA variable defined by this definition.

from SsaDefinition
hasLocationInfo

DEPRECATED: Use getLocation() instead.

from SsaDefinition
toString

Gets a textual representation of this SSA definition.

from Definition