JavaScript: Add utility predicate SSA::implicitInit.

This commit is contained in:
Max Schaefer
2020-09-02 14:34:52 +01:00
parent beca44ec2f
commit cd64ce7b1a

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 }