JavaScript: Add utility predicate SSA::implicitInit.

This commit is contained in:
Max Schaefer
2020-09-02 14:34:52 +01:00
parent d81d80430e
commit 9840a7ddfb

View File

@@ -737,6 +737,9 @@ class SsaRefinementNode extends SsaPseudoDefinition, TRefinement {
}
module SSA {
/** Gets the SSA definition corresponding to the implicit initialization of `v`. */
SsaImplicitInit implicitInit(SsaSourceVariable v) { result.getSourceVariable() = v }
/** Gets the SSA definition corresponding to `d`. */
SsaExplicitDefinition definition(VarDef d) { result.getDef() = d }