Jump to content

Live-variable analysis

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Liao (talk | contribs) at 18:21, 12 February 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The live variable analysis calculates for each program point the variables that may be potentially read afterwards before their next write update.

1: a = 3;
2: c = 5;
3: a = b + c;

The set of live variables at line 2 is {b,c}, but the set of live variables at line 1 is only {b} since variable "c" is updated in line 2.