edu.ksu.cis.projects.bogor.analyses
Class LiveVariableAnalysis
java.lang.Object
edu.ksu.cis.projects.bogor.analyses.IntraFSMAnalysis<String>
edu.ksu.cis.projects.bogor.analyses.LiveVariableAnalysis
public class LiveVariableAnalysis
- extends IntraFSMAnalysis<String>
This class provides a live variables analysis for a certain FSM. This
analysis requires that the AST for IdExp have been decided whether it is a
local reference or not.
- Version:
- CVS $Revision: 1.5 $ $Date: 2005/05/19 17:19:39 $
- Author:
- Robby , Matt Hoosier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lvc
protected LocalVariablesCollector lvc
result
protected IntObjectTable<Set<String>> result
LiveVariableAnalysis
public LiveVariableAnalysis(CFG cfg)
getResult
public IntObjectTable<Set<String>> getResult()
dispose
public void dispose()
- Overrides:
dispose
in class IntraFSMAnalysis<String>
analyze
protected void analyze()
- Description copied from class:
IntraFSMAnalysis
- Perform Phase II of the MDF algorithm. Computes a fixed-point for the
working sets on each location.
- Overrides:
analyze
in class IntraFSMAnalysis<String>
analyzeBlockTransformation
protected void analyzeBlockTransformation(BlockTransformation t,
Set<String> s)
analyzeInvokeTransformation
protected void analyzeInvokeTransformation(InvokeTransformation t,
Set<String> s)
analyzeLocation
protected Set<String> analyzeLocation(int locDesc,
Set<String> s)
- Description copied from class:
IntraFSMAnalysis
- Compute an analysis-specific "active" set of variables given a known
active input set and a program location.
- Specified by:
analyzeLocation
in class IntraFSMAnalysis<String>
analyzeNextState
protected void analyzeNextState(NextState ns,
Set<String> s)
init
protected void init()
- Description copied from class:
IntraFSMAnalysis
- Perform Phase I of the MDF algorithm. Enqueues a work item for every
(pred, succ) pair in the flow graph and sets initial working sets for
each program label.
- Overrides:
init
in class IntraFSMAnalysis<String>