Class ObjectArrayValue
java.lang.Object
de.uzl.its.swat.symbolic.value.Value<T,K>
de.uzl.its.swat.symbolic.value.reference.ObjectValue
de.uzl.its.swat.symbolic.value.reference.array.ObjectArrayValue
Wrapper for arrays of references (non-primitive types)
-
Field Summary
Fields inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValue
address, ADDRESS_UNKNOWN, className
-
Constructor Summary
ConstructorDescriptionObjectArrayValue
(org.sosy_lab.java_smt.api.SolverContext context, String className, IntValue size) Creates an Array of references To create multidimensional arrays, this class is nested -
Method Summary
Modifier and TypeMethodDescriptionCast replacementorg.sosy_lab.java_smt.api.BooleanFormula
checkIndex
(IntValue idx) Value<?,
?> getElement
(IntValue idx) Retrieves a reference from an Array ToDo (Nils): The index and value are currently not tracked symbolically See: Issue 59getSize()
Getter for the concrete size of the arrayvoid
storeElement
(IntValue idx, Value<?, ?> ref) Stores a reference value in an array at index idx ToDo (Nils): The index and value are currently not tracked symbolically See: Issue 59toString()
Returns the string representation of the value.Methods inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValue
asArrayValue, asFloatValue, asIntValue, asObjectValue, equals, getAddress, getConcrete, getField, getFields, getnFields, IF_ACMPEQ, IF_ACMPNE, IFNONNULL, IFNULL, invokeMethod, MAKE_SYMBOLIC, MAKE_SYMBOLIC, setAddress, setField, setFields
Methods inherited from class de.uzl.its.swat.symbolic.value.Value
asBooleanValue, asByteValue, asCharValue, asDoubleValue, asLongValue, asNumericalValue, asShortValue, asStringValue, getBounds, getConcreteEncoded, getName, getType, initSymbolic, initSymbolic, MAKE_SYMBOLIC, reset
-
Field Details
-
size
Size of the array
-
-
Constructor Details
-
ObjectArrayValue
public ObjectArrayValue(org.sosy_lab.java_smt.api.SolverContext context, String className, IntValue size) Creates an Array of references To create multidimensional arrays, this class is nested- Parameters:
className
- The type of the referencesize
- The size of the array (this dimension)
-
-
Method Details
-
checkIndex
-
getElement
Retrieves a reference from an Array ToDo (Nils): The index and value are currently not tracked symbolically See: Issue 59- Parameters:
idx
- The index of the position to retrieve- Returns:
- The reference value at position idx
-
storeElement
Stores a reference value in an array at index idx ToDo (Nils): The index and value are currently not tracked symbolically See: Issue 59- Parameters:
idx
- The index where to store the Valueref
- The value to be stored
-
asObjectArrayValue
Cast replacement- Overrides:
asObjectArrayValue
in classObjectValue
- Returns:
- ObjectArrayValue this
-
getSize
Getter for the concrete size of the array- Returns:
- The concrete size of the array
-
toString
Description copied from class:Value
Returns the string representation of the value. Should be implemented by each inheriting class.- Overrides:
toString
in classObjectValue
- Returns:
- the string representation of the value
-