GEN and KILL sets
In data-flow analysis , GEN and KILL sets are concepts used to track where locations (~equiv. to place expressions and variables) are used throughout a program.
The set contains facts that are created within (basic block) .
Example (reaching definitions), the GEN set of contains that specific definition of .
Example (available expressions), the GEN set of contains the expression .
Example (live variables), the GEN set of is .
The set contains facts that are invalidated by .
Reaching Definitions
def=
Available Expression
Liveness Analysis