Module Make
Provides an SSA implementation.
The SSA construction is pruned based on liveness. That is, SSA definitions are only
constructed for Input::variableWrites when it is possible to reach an
Input::variableRead, without going through a certain write (the same goes for phi
nodes). Whenever a variable is both read and written at the same index in some basic
block, the read is assumed to happen before the write.
The result of invoking this parameterized module is not meant to be exposed directly;
instead, one should invoke the nested MakeSsa module and expose the
resulting class hierarchy.
Import path
import codeql.ssa.SsaPredicates
| adjacentUseUse | Holds if the certain read at index |
| firstUse | Holds if |
| phiHasInputFromBlock | Holds if |
| ssaDefReachesRead | Holds if the SSA definition of |
Classes
| Definition | A static single assignment (SSA) definition. |
| PhiNode | A phi node. |
| UncertainWriteDefinition | An SSA definition that represents an uncertain update of the underlying source variable. |
| WriteDefinition | An SSA definition that corresponds to a write. |
Modules
| Consistency | Provides a set of consistency queries. |
| DataFlowIntegration | Constructs the type |
| MakeSsa | Builds the user-facing SSA API (the |
| TestAdjacentRefs | Provides query predicates for testing adjacent SSA references and insertion of phi reads. |
Module signatures
| DataFlowIntegrationInputSig | Provides the input to |
| SsaInputSig |
Aliases
| ssaDefReachesEndOfBlock | Holds if the SSA definition of |
| uncertainWriteDefinitionInput | Holds if |