Class ShortArrayValue
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,ShortValue,short[]>
    
de.uzl.its.swat.symbolic.value.reference.array.ShortArrayValue
public class ShortArrayValue
extends AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,IntValue,ShortValue,short[]>    
- 
Field SummaryFieldsFields inherited from class de.uzl.its.swat.symbolic.value.reference.array.AbstractArrayValueamgr, context, elementFormulaType, formulaType, indexFormulaType, parentRef, parentRefIdxFields inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValueaddress, ADDRESS_UNKNOWN, className
- 
Constructor SummaryConstructorsConstructorDescriptionShortArrayValue(org.sosy_lab.java_smt.api.SolverContext context, short[] concrete, int address) ShortArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address) Creates a new symbolic array that contains short valuesShortArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address, IntValue parentRefIdx, ArrayArrayValue parentRef) 
- 
Method SummaryModifier and TypeMethodDescriptiongetElement(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 voidinitArray(short[] array) voidstoreElement(IntValue idx, ShortValue 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.AbstractArrayValueasArrayValue, asBooleanArrayValue, asByteArrayValue, asCharArrayValue, asDoubleArrayValue, asFloatArrayValue, asIntArrayValue, asLongArrayValue, asObjectArrayValue, checkIndex, genericToString, getContextMethods inherited from class de.uzl.its.swat.symbolic.value.reference.ObjectValueasFloatValue, 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.ValueasBooleanValue, asByteValue, asCharValue, asDoubleValue, asLongValue, asNumericalValue, asShortValue, asStringValue, getBounds, getConcreteEncoded, getName, getType, initSymbolic, initSymbolic, MAKE_SYMBOLIC, reset
- 
Field Details- 
size
 
- 
- 
Constructor Details- 
ShortArrayValueCreates a new symbolic array that contains short values- Parameters:
- context- The SolverContext to create formulas in the native Solver environment.
- size- The size of the array
- address- The address of the array reference
 
- 
ShortArrayValuepublic ShortArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address, IntValue parentRefIdx, ArrayArrayValue parentRef) 
- 
ShortArrayValuepublic ShortArrayValue(org.sosy_lab.java_smt.api.SolverContext context, short[] concrete, int address) 
 
- 
- 
Method Details- 
getElementReturns the formula that represents the element at the specified index.- Specified by:
- getElementin class- AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula, - IntValue, - ShortValue, - short[]> 
- Parameters:
- idx- The formula that specifies the index.
- Returns:
- The formula that specifies the retrieved/ retrievable element.
 
- 
storeElementStores the formula representing an element at the position specified by the index formula.- Specified by:
- storeElementin class- AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula, - IntValue, - ShortValue, - short[]> 
- Parameters:
- idx- The index formula.
- val- The element formula.
 
- 
initArrayprotected void initArray(int size) Initializes the array with the default value.- Specified by:
- initArrayin class- AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula, - IntValue, - ShortValue, - short[]> 
- Parameters:
- size- The size of the array.
 
- 
initArrayprotected void initArray(short[] array) 
- 
asShortArrayValue- Overrides:
- asShortArrayValuein class- AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula, - IntValue, - ShortValue, - short[]> 
 
- 
toStringReturns the string representation of the value used to visualize the stack. The representation is not complete.- Overrides:
- toStringin class- ObjectValue<org.sosy_lab.java_smt.api.ArrayFormula<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula>, - short[]> 
- Returns:
- the string representation of the value.
 
 
-