|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.string.intermediate.operations.LivenessAnalysis
public class LivenessAnalysis
Intra-procedural liveness analysis performed on a set of methods.
The formal parameters of a method are always considered live.
| Constructor Summary | |
|---|---|
LivenessAnalysis(Application app)
Performs liveness analysis. |
|
| Method Summary | |
|---|---|
boolean |
addLiveAfter(Statement s,
Set<Variable> live)
Adds live variables to he program point after the given statement. |
Set<Variable> |
getLiveAfter(Statement s)
Returns the (unmodifiable) set of live variables as inferred just after the given statement. |
Set<Variable> |
getLiveBefore(Statement s)
Returns the (unmodifiable) set of live variables as inferred just before the given statement. |
void |
transfer(Statement s)
The transfer function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LivenessAnalysis(Application app)
| Method Detail |
|---|
public boolean addLiveAfter(Statement s,
Set<Variable> live)
s - statementlive - live variables to add
public Set<Variable> getLiveAfter(Statement s)
s - the statement.
Variable objects.public Set<Variable> getLiveBefore(Statement s)
s - the statement.
Variable objects.public void transfer(Statement s)
FlowAnalysis
transfer in interface FlowAnalysiss - the statement to transfer through.
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||