Class TestConstantStrategy
java.lang.Object
soot.jimple.infoflow.collections.strategies.containers.ConstantMapStrategy
soot.jimple.infoflow.collections.strategies.containers.AbstractListStrategy
soot.jimple.infoflow.collections.strategies.containers.TestConstantStrategy
- All Implemented Interfaces:
IContainerStrategy
Strategy that reasons about maps with constant keys and lists with constant
indices. Uses
ListSizeAnalysis to retrieve the list size, thus,
should only be used for testing the semantics of list operations.- Author:
- Tim Lange
-
Field Summary
Fields inherited from class soot.jimple.infoflow.collections.strategies.containers.ConstantMapStrategy
indexTypes, itAnalysis, manager -
Constructor Summary
ConstructorsConstructorDescriptionTestConstantStrategy(InfoflowManager manager) TestConstantStrategy(InfoflowManager manager, IShiftOperation shiftOp) -
Method Summary
Modifier and TypeMethodDescriptiongetLastPosition(soot.Value value, soot.jimple.Stmt stmt) Retrieves a context given an implicit key before the given statement (i.e. a list where the key is dependent on the number of add calls before)getNextPosition(soot.Value value, soot.jimple.Stmt stmt) Retrieves a context given an implicit key after the given statement (i.e. a list where the key is dependent on the number of add calls before)Methods inherited from class soot.jimple.infoflow.collections.strategies.containers.AbstractListStrategy
append, getFirstPosition, getIndexContext, getResolvedIndices, getUnresolvedIndices, intersect, lessThanEqual, shiftMethods inherited from class soot.jimple.infoflow.collections.strategies.containers.ConstantMapStrategy
getKeyContext, getResolvedKeys, getUnresolvedKeys, isReadOnly, shouldResolveIndex, shouldSmash
-
Constructor Details
-
TestConstantStrategy
-
TestConstantStrategy
-
-
Method Details
-
getNextPosition
Description copied from interface:IContainerStrategyRetrieves a context given an implicit key after the given statement (i.e. a list where the key is dependent on the number of add calls before)- Specified by:
getNextPositionin interfaceIContainerStrategy- Specified by:
getNextPositionin classAbstractListStrategy- Parameters:
value- liststmt- statement that uses value- Returns:
- new context definition
-
getLastPosition
Description copied from interface:IContainerStrategyRetrieves a context given an implicit key before the given statement (i.e. a list where the key is dependent on the number of add calls before)- Specified by:
getLastPositionin interfaceIContainerStrategy- Specified by:
getLastPositionin classAbstractListStrategy- Parameters:
value- liststmt- statement that uses value- Returns:
- new context definition
-