Package soot.jimple.toolkits.scalar
Class SlowAvailableExpressions
- java.lang.Object
-
- soot.jimple.toolkits.scalar.SlowAvailableExpressions
-
- All Implemented Interfaces:
AvailableExpressions
public class SlowAvailableExpressions extends Object implements AvailableExpressions
Provides an user-interface for the AvailableExpressionsAnalysis class. Returns, for each statement, the list of expressions available before and after it.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Unit,Chain<EquivalentValue>>unitToEquivsAfterprotected Map<Unit,Chain<EquivalentValue>>unitToEquivsBeforeprotected Map<Unit,List<UnitValueBoxPair>>unitToPairsAfterprotected Map<Unit,List<UnitValueBoxPair>>unitToPairsBefore
-
Constructor Summary
Constructors Constructor Description SlowAvailableExpressions(Body b)Wrapper for SlowAvailableExpressionsAnalysis.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Chain<EquivalentValue>getAvailableEquivsAfter(Unit u)Returns a Chain containing the EquivalentValue objects corresponding to expressions available after u.Chain<EquivalentValue>getAvailableEquivsBefore(Unit u)Returns a Chain containing the EquivalentValue objects corresponding to expressions available before u.List<UnitValueBoxPair>getAvailablePairsAfter(Unit u)Returns a List containing the UnitValueBox pairs corresponding to expressions available after u.List<UnitValueBoxPair>getAvailablePairsBefore(Unit u)Returns a List containing the UnitValueBox pairs corresponding to expressions available before u.
-
-
-
Field Detail
-
unitToPairsAfter
protected final Map<Unit,List<UnitValueBoxPair>> unitToPairsAfter
-
unitToPairsBefore
protected final Map<Unit,List<UnitValueBoxPair>> unitToPairsBefore
-
unitToEquivsAfter
protected final Map<Unit,Chain<EquivalentValue>> unitToEquivsAfter
-
unitToEquivsBefore
protected final Map<Unit,Chain<EquivalentValue>> unitToEquivsBefore
-
-
Constructor Detail
-
SlowAvailableExpressions
public SlowAvailableExpressions(Body b)
Wrapper for SlowAvailableExpressionsAnalysis.
-
-
Method Detail
-
getAvailablePairsBefore
public List<UnitValueBoxPair> getAvailablePairsBefore(Unit u)
Returns a List containing the UnitValueBox pairs corresponding to expressions available before u.- Specified by:
getAvailablePairsBeforein interfaceAvailableExpressions
-
getAvailablePairsAfter
public List<UnitValueBoxPair> getAvailablePairsAfter(Unit u)
Returns a List containing the UnitValueBox pairs corresponding to expressions available after u.- Specified by:
getAvailablePairsAfterin interfaceAvailableExpressions
-
getAvailableEquivsBefore
public Chain<EquivalentValue> getAvailableEquivsBefore(Unit u)
Returns a Chain containing the EquivalentValue objects corresponding to expressions available before u.- Specified by:
getAvailableEquivsBeforein interfaceAvailableExpressions
-
getAvailableEquivsAfter
public Chain<EquivalentValue> getAvailableEquivsAfter(Unit u)
Returns a Chain containing the EquivalentValue objects corresponding to expressions available after u.- Specified by:
getAvailableEquivsAfterin interfaceAvailableExpressions
-
-