|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--soot.jimple.toolkits.scalar.pre.EarliestnessComputation
Computes the earliest points for the given expressions.
This basicly finds the highest point in the flow-graph where we can put each
computation, without introducing new computations on any path.
More technically: A computation is earliest, if at the current point the
computation is down-safe, and if either:
Note that this computation is linear in the number of units, as we don't need to find any fixed-point.
UpSafetyAnalysis,
DownSafetyAnalysis| Constructor Summary | |
EarliestnessComputation(UnitGraph unitGraph,
UpSafetyAnalysis upSafe,
DownSafetyAnalysis downSafe,
SideEffectTester sideEffect)
given an UpSafetyAnalysis and a DownSafetyAnalysis, performs the earliest-computation. |
|
EarliestnessComputation(UnitGraph unitGraph,
UpSafetyAnalysis upSafe,
DownSafetyAnalysis downSafe,
SideEffectTester sideEffect,
FlowSet set)
given an UpSafetyAnalysis and a DownSafetyAnalysis, performs the earliest-computation. allows to share sets over multiple analyses (set-operations are usually more efficient, if the sets come from the same source). |
|
| Method Summary | |
java.lang.Object |
getFlowBefore(java.lang.Object node)
returns the FlowSet of expressions, that have their earliest computation just before node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EarliestnessComputation(UnitGraph unitGraph,
UpSafetyAnalysis upSafe,
DownSafetyAnalysis downSafe,
SideEffectTester sideEffect)
unitGraph - the Unitgraph we'll work on.upSafe - a UpSafetyAnalysis of unitGraphdownSafe - a DownSafetyAnalysis of unitGraphsideEffect - the SideEffectTester that will tell if a node is
transparent or not.
public EarliestnessComputation(UnitGraph unitGraph,
UpSafetyAnalysis upSafe,
DownSafetyAnalysis downSafe,
SideEffectTester sideEffect,
FlowSet set)
unitGraph - the Unitgraph we'll work on.upSafe - a UpSafetyAnalysis of unitGraphdownSafe - a DownSafetyAnalysis of unitGraphsideEffect - the SideEffectTester that will tell if a node is
transparent or not.set - the shared set.| Method Detail |
public java.lang.Object getFlowBefore(java.lang.Object node)
node.
node - a Object of the flow-graph (in our case always a unit).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||