Package proguard.analysis.cpa.defaults
Class ProgramLocationDependentReachedSet<CfaNodeT extends CfaNode<CfaEdgeT,SignatureT>,CfaEdgeT extends CfaEdge<CfaNodeT>,AbstractStateT extends AbstractState & ProgramLocationDependent<CfaNodeT,CfaEdgeT,SignatureT>,SignatureT extends Signature>
- java.lang.Object
-
- proguard.analysis.cpa.defaults.ProgramLocationDependentReachedSet<CfaNodeT,CfaEdgeT,AbstractStateT,SignatureT>
-
- All Implemented Interfaces:
ReachedSet
public final class ProgramLocationDependentReachedSet<CfaNodeT extends CfaNode<CfaEdgeT,SignatureT>,CfaEdgeT extends CfaEdge<CfaNodeT>,AbstractStateT extends AbstractState & ProgramLocationDependent<CfaNodeT,CfaEdgeT,SignatureT>,SignatureT extends Signature> extends java.lang.Object implements ReachedSet
ThisReachedSet
storesProgramLocationDependent
AbstractState
s. It assumes the analysis does merge theAbstractState
s belonging to differentCfaNode
s and stores them in separate bins.
-
-
Constructor Summary
Constructors Constructor Description ProgramLocationDependentReachedSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(AbstractState abstractState)
Adds an abstract state.boolean
addAll(java.util.Collection<? extends AbstractState> abstractStates)
Adds multiple abstract states.java.util.Collection<AbstractStateT>
asCollection()
Returns a collection representation of itself.java.util.Collection<? extends AbstractState>
getReached(CfaNodeT location)
Returns a collection of abstract states belonging to the givenlocation
.java.util.Collection<? extends AbstractState>
getReached(AbstractState abstractState)
Returns a collection of abstract states mergeable with theabstractState
.boolean
remove(AbstractState abstractState)
Removes an abstract state.boolean
removeAll(java.util.Collection<?> abstractStates)
Removes multiple abstract states.
-
-
-
Method Detail
-
add
public boolean add(AbstractState abstractState)
Description copied from interface:ReachedSet
Adds an abstract state.- Specified by:
add
in interfaceReachedSet
-
addAll
public boolean addAll(java.util.Collection<? extends AbstractState> abstractStates)
Description copied from interface:ReachedSet
Adds multiple abstract states.- Specified by:
addAll
in interfaceReachedSet
-
remove
public boolean remove(AbstractState abstractState)
Description copied from interface:ReachedSet
Removes an abstract state.- Specified by:
remove
in interfaceReachedSet
-
removeAll
public boolean removeAll(java.util.Collection<?> abstractStates)
Description copied from interface:ReachedSet
Removes multiple abstract states.- Specified by:
removeAll
in interfaceReachedSet
-
asCollection
public java.util.Collection<AbstractStateT> asCollection()
Description copied from interface:ReachedSet
Returns a collection representation of itself.- Specified by:
asCollection
in interfaceReachedSet
-
getReached
public java.util.Collection<? extends AbstractState> getReached(AbstractState abstractState)
Description copied from interface:ReachedSet
Returns a collection of abstract states mergeable with theabstractState
.- Specified by:
getReached
in interfaceReachedSet
-
getReached
public java.util.Collection<? extends AbstractState> getReached(CfaNodeT location)
Returns a collection of abstract states belonging to the givenlocation
.
-
-