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 Details

  • Constructor Details

    • ShortArrayValue

      public ShortArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address)
      Creates 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
    • ShortArrayValue

      public ShortArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address, IntValue parentRefIdx, ArrayArrayValue parentRef)
    • ShortArrayValue

      public ShortArrayValue(org.sosy_lab.java_smt.api.SolverContext context, short[] concrete, int address)
  • Method Details

    • getElement

      public ShortValue getElement(IntValue idx)
      Returns the formula that represents the element at the specified index.
      Specified by:
      getElement in 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.
    • storeElement

      public void storeElement(IntValue idx, ShortValue val)
      Stores the formula representing an element at the position specified by the index formula.
      Specified by:
      storeElement in 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.
    • initArray

      protected void initArray(int size)
      Initializes the array with the default value.
      Specified by:
      initArray in 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.
    • initArray

      protected void initArray(short[] array)
    • asShortArrayValue

      public ShortArrayValue asShortArrayValue()
      Overrides:
      asShortArrayValue in class AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,IntValue,ShortValue,short[]>
    • toString

      public String toString()
      Returns the string representation of the value used to visualize the stack. The representation is not complete.
      Overrides:
      toString in 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.