|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstreamit.frontend.controlflow.DataFlow
public abstract class DataFlow
Abstract base class for data-flow analyses. This provides the basic algorithm, but still leaves some parts to be filled in by derived classes.
Constructor Summary | |
---|---|
DataFlow()
|
Method Summary | |
---|---|
abstract Lattice |
flowFunction(CFGNode node,
Lattice in)
Modify a lattice value by passing through a CFG node. |
abstract Lattice |
getInit()
Get the lattice value that is at the entry node. |
boolean |
isForward()
Determine if this is a forward or backward data-flow analysis. |
Map<CFGNode,Lattice> |
run(CFG cfg)
Actually perform the data-flow analysis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataFlow()
Method Detail |
---|
public Map<CFGNode,Lattice> run(CFG cfg)
cfg
- control-flow graph to perform analysis on
public abstract Lattice getInit()
public abstract Lattice flowFunction(CFGNode node, Lattice in)
node
- CFG node to considerin
- lattice value at entry to the node
public boolean isForward()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |