Class CharArrayValue
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.NumeralFormula.IntegerFormula,IntValue,CharValue,char[]>
de.uzl.its.swat.symbolic.value.reference.array.CharArrayValue
public class CharArrayValue
extends AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,IntValue,CharValue,char[]>
Wrapper for Arrays that contain char values.
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionCharArrayValue(org.sosy_lab.java_smt.api.SolverContext context, char[] concrete, int address) CharArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address) CharArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address, IntValue parentRefIdx, ArrayArrayValue parentRef) -
Method Summary
Modifier and TypeMethodDescriptiongetElement(IntValue idx) Returns the formula that represents the element at the specified index.protected voidinitArray(char[] array) protected voidinitArray(int size) Initializes the array with the default value.voidstoreElement(IntValue idx, CharValue 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
asArrayValue, asBooleanArrayValue, asByteArrayValue, 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, getBounds, getConcreteEncoded, getName, getType, initSymbolic, initSymbolic, MAKE_SYMBOLIC, reset
-
Constructor Details
-
CharArrayValue
-
CharArrayValue
public CharArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address, IntValue parentRefIdx, ArrayArrayValue parentRef) -
CharArrayValue
public CharArrayValue(org.sosy_lab.java_smt.api.SolverContext context, char[] concrete, int address)
-
-
Method Details
-
getElement
Returns 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.NumeralFormula.IntegerFormula, IntValue, CharValue, char[]> - Parameters:
idx- The formula that specifies the index.- Returns:
- The formula that specifies the retrieved/ retrievable element.
-
storeElement
Stores 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.NumeralFormula.IntegerFormula, IntValue, CharValue, char[]> - Parameters:
idx- The index formula.val- The element formula.
-
initArray
protected void initArray(int size) Initializes the array with the default value.- Specified by:
initArrayin classAbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula, IntValue, CharValue, char[]> - Parameters:
size- The size of the array.
-
initArray
protected void initArray(char[] array) -
asCharArrayValue
- Overrides:
asCharArrayValuein classAbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula, IntValue, CharValue, char[]>
-
asStringValue
- Overrides:
asStringValuein classValue<org.sosy_lab.java_smt.api.ArrayFormula<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula>, char[]>
-
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.NumeralFormula.IntegerFormula>, char[]> - Returns:
- the string representation of the value.
-