9.2.2 Transfer Equation for Reaching Definitions

For all forward flow problems, the information which comes out of the block is a function of the information which goes into the block. We write this symbolically as:

For reaching definitions, we define function f in terms of definitions which are generated and killed in the block B. We thus introduce two new variables:Kill(B) and Gen(B).

Definition def1 kills definition def1 and def2 define the same variable:

Block B generates definition def if def is in B and is the last definition of def's variable within B.

The transfer equation is:

Confluence Rule for Reaching Definitions

A definition def reaches the beginning of a block B if and only if it reaches the end of one of block B's predecessors.


Send questions and comments to: Karen Lemone