public class ListAbstractState<AbstractSpaceT extends AbstractState<AbstractSpaceT>> extends java.util.ArrayList<AbstractSpaceT> implements AbstractState<ListAbstractState<AbstractSpaceT>>
ListAbstractState represents a list of AbstractStates with the semilattice operators lifted to the
list.| Constructor and Description |
|---|
ListAbstractState()
Create a list abstract state with initial capacity 0.
|
ListAbstractState(int initalCapacity)
Create a list abstract state with selected initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
ListAbstractState<AbstractSpaceT> |
copy()
Creates a copy of itself.
|
AbstractSpaceT |
getOrDefault(int index,
AbstractSpaceT defaultState)
Returns the abstract state at
index, if present, returns the defaultState
otherwise. |
boolean |
isLessOrEqual(ListAbstractState<AbstractSpaceT> abstractState)
Compares itself to the
abstractState (i.e., compare the states on the partial order
provided by the domain of the analysis). |
ListAbstractState<AbstractSpaceT> |
join(ListAbstractState<AbstractSpaceT> abstractState)
Computes a join over itself and another abstract state
abstractState (i.e., finds the
least upper bound on the semilattice). |
AbstractSpaceT |
set(int index,
AbstractSpaceT element,
AbstractSpaceT defaultState)
Sets an element at
index to elem. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitequals, getPrecision, hashCode, isLesspublic ListAbstractState()
public ListAbstractState(int initalCapacity)
initalCapacity - initial capacitypublic ListAbstractState<AbstractSpaceT> join(ListAbstractState<AbstractSpaceT> abstractState)
AbstractStateabstractState (i.e., finds the
least upper bound on the semilattice).join in interface AbstractState<ListAbstractState<AbstractSpaceT extends AbstractState<AbstractSpaceT>>>public boolean isLessOrEqual(ListAbstractState<AbstractSpaceT> abstractState)
AbstractStateabstractState (i.e., compare the states on the partial order
provided by the domain of the analysis).isLessOrEqual in interface AbstractState<ListAbstractState<AbstractSpaceT extends AbstractState<AbstractSpaceT>>>public ListAbstractState<AbstractSpaceT> copy()
AbstractStatecopy in interface AbstractState<ListAbstractState<AbstractSpaceT extends AbstractState<AbstractSpaceT>>>public AbstractSpaceT getOrDefault(int index, AbstractSpaceT defaultState)
index, if present, returns the defaultState
otherwise.public AbstractSpaceT set(int index, AbstractSpaceT element, AbstractSpaceT defaultState)
index to elem. Extends its length and pads with defaultState, if necessary.