Class ArrayArrayValue<TE extends org.sosy_lab.java_smt.api.Formula>
java.lang.Object
de.uzl.its.swat.symbolic.value.Value<T,K>
de.uzl.its.swat.symbolic.value.reference.ObjectValue<org.sosy_lab.java_smt.api.ArrayFormula<TI,TE>,K>
de.uzl.its.swat.symbolic.value.reference.array.AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,TE,IntValue,AbstractArrayValue<?,?,?,?,?>,ArrayList<AbstractArrayValue>>
de.uzl.its.swat.symbolic.value.reference.array.ArrayArrayValue<TE>
public class ArrayArrayValue<TE extends org.sosy_lab.java_smt.api.Formula>
extends AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,TE,IntValue,AbstractArrayValue<?,?,?,?,?>,ArrayList<AbstractArrayValue>>
-
Field Summary
FieldsFields inherited from class de.uzl.its.swat.symbolic.value.reference.array.AbstractArrayValue
amgr, context, elementFormulaType, formulaType, indexFormulaType, parentRef, parentRefIdxFields inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValue
address, ADDRESS_UNKNOWN, className -
Constructor Summary
ConstructorsConstructorDescriptionArrayArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue[] dims, int address, org.sosy_lab.java_smt.api.FormulaType elementFormulaType, String desc, IntValue parentRefIdx, ArrayArrayValue parentRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayArrayValuearrayMagic(org.sosy_lab.java_smt.api.SolverContext context, String desc, IntValue[] dims) AbstractArrayValue<?,?, ?, ?, ?> getElement(IntValue idx) Returns the formula that represents the element at the specified index.protected voidinitArray(int size) Initializes the array with the default value.voidstoreElement(IntValue idx, AbstractArrayValue val) Stores the formula representing an element at the position specified by the index formula.toString()Returns the string representation of the value.voidupdateFormula(IntValue idx, TE val) Methods inherited from class de.uzl.its.swat.symbolic.value.reference.array.AbstractArrayValue
asArrayValue, asBooleanArrayValue, asByteArrayValue, asCharArrayValue, asDoubleArrayValue, asFloatArrayValue, asIntArrayValue, asLongArrayValue, asObjectArrayValue, asShortArrayValue, checkIndex, genericToString, getContextMethods inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValue
asFloatValue, asIntValue, asObjectValue, equals, getAddress, getConcrete, getField, getFields, getnFields, IF_ACMPEQ, IF_ACMPNE, IFNONNULL, IFNULL, invokeMethod, MAKE_SYMBOLIC, MAKE_SYMBOLIC, setAddress, setField, setFieldsMethods 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
-
desc
-
-
Constructor Details
-
ArrayArrayValue
public ArrayArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue[] dims, int address, org.sosy_lab.java_smt.api.FormulaType elementFormulaType, String desc, IntValue parentRefIdx, ArrayArrayValue parentRef)
-
-
Method Details
-
arrayMagic
public static ArrayArrayValue arrayMagic(org.sosy_lab.java_smt.api.SolverContext context, String desc, IntValue[] dims) -
getElement
Description copied from class:AbstractArrayValueReturns the formula that represents the element at the specified index.- Specified by:
getElementin classAbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,TE extends org.sosy_lab.java_smt.api.Formula, IntValue, AbstractArrayValue<?, ?, ?, ?, ?>, ArrayList<AbstractArrayValue>> - Parameters:
idx- The formula that specifies the index.- Returns:
- The formula that specifies the retrieved/ retrievable element.
-
updateFormula
-
storeElement
Description copied from class:AbstractArrayValueStores the formula representing an element at the position specified by the index formula.- Specified by:
storeElementin classAbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,TE extends org.sosy_lab.java_smt.api.Formula, IntValue, AbstractArrayValue<?, ?, ?, ?, ?>, ArrayList<AbstractArrayValue>> - Parameters:
idx- The index formula.val- The element formula.
-
initArray
protected void initArray(int size) Description copied from class:AbstractArrayValueInitializes the array with the default value.- Specified by:
initArrayin classAbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,TE extends org.sosy_lab.java_smt.api.Formula, IntValue, AbstractArrayValue<?, ?, ?, ?, ?>, ArrayList<AbstractArrayValue>> - Parameters:
size- The size of the array.
-
toString
Description copied from class:ValueReturns the string representation of the value. Should be implemented by each inheriting class.- Overrides:
toStringin classObjectValue<org.sosy_lab.java_smt.api.ArrayFormula<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,TE extends org.sosy_lab.java_smt.api.Formula>, ArrayList<AbstractArrayValue>> - Returns:
- the string representation of the value
-