Content deleted Content added
m →Example: -<code> |
|||
Line 19:
== Expression in terms of dataflow equations ==
Liveness analysis is a "backwards may"
The dataflow equations used for a given basic block ''s'' and exiting block ''f'' in live variable analysis are the following:
Line 48:
The in-state of a block is the set of variables that are live at the start of the block. Its out-state is the set of variables that are live at the end of it. The out-state is the union of the in-states of the block's successors. The transfer function of a statement is applied by making the variables that are written dead, then making the variables that are read live.
== Second example ==
|