Class StringArrayValue
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,org.sosy_lab.java_smt.api.StringFormula,IntValue,StringValue,String[]>
de.uzl.its.swat.symbolic.value.reference.array.StringArrayValue
public class StringArrayValue
extends AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.StringFormula,IntValue,StringValue,String[]>
Wrapper for Arrays that contain String values.
-
Field Summary
FieldsFields inherited from class de.uzl.its.swat.symbolic.value.reference.array.AbstractArrayValue
amgr, context, elementFormulaType, formulaType, indexFormulaType, parentRef, parentRefIdx, sizeFields inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValue
address, ADDRESS_UNKNOWN, className -
Constructor Summary
ConstructorsConstructorDescriptionStringArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address) StringArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address, IntValue parentRefIdx, ArrayArrayValue parentRef) StringArrayValue(org.sosy_lab.java_smt.api.SolverContext context, String[] concrete, int address) -
Method Summary
Modifier and TypeMethodDescriptionAbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.StringFormula, IntValue, StringValue, String[]> 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.protected voidvoidstoreElement(IntValue idx, StringValue val) Stores the formula representing an element at the position specified by the index formula.toString()Returns the string representation of the value used to visualize the stack.Methods inherited from class de.uzl.its.swat.symbolic.value.reference.array.AbstractArrayValue
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
-
addressMap
-
-
Constructor Details
-
StringArrayValue
public StringArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address) -
StringArrayValue
public StringArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address, IntValue parentRefIdx, ArrayArrayValue parentRef) -
StringArrayValue
public StringArrayValue(org.sosy_lab.java_smt.api.SolverContext context, String[] concrete, int address)
-
-
Method Details
-
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,org.sosy_lab.java_smt.api.StringFormula, IntValue, StringValue, String[]> - Parameters:
idx- The formula that specifies the index.- Returns:
- The formula that specifies the retrieved/ retrievable element.
-
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,org.sosy_lab.java_smt.api.StringFormula, IntValue, StringValue, String[]> - 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,org.sosy_lab.java_smt.api.StringFormula, IntValue, StringValue, String[]> - Parameters:
size- The size of the array.
-
initArray
-
asArrayValue
public AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.StringFormula, asArrayValue()IntValue, StringValue, String[]> - Overrides:
asArrayValuein classAbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.StringFormula, IntValue, StringValue, String[]>
-
toString
Returns the string representation of the value used to visualize the stack. The representation is not complete.- Overrides:
toStringin classObjectValue<org.sosy_lab.java_smt.api.ArrayFormula<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.StringFormula>, String[]> - Returns:
- the string representation of the value.
-