Class LongArrayValue

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,LongValue,long[]>
de.uzl.its.swat.symbolic.value.reference.array.LongArrayValue

public class LongArrayValue extends AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,IntValue,LongValue,long[]>
  • Constructor Details

    • LongArrayValue

      public LongArrayValue(org.sosy_lab.java_smt.api.SolverContext context, IntValue size, int address)
    • LongArrayValue

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

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

    • getElement

      public LongValue getElement(IntValue idx)
      Description copied from class: AbstractArrayValue
      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,LongValue,long[]>
      Parameters:
      idx - The formula that specifies the index.
      Returns:
      The formula that specifies the retrieved/ retrievable element.
    • storeElement

      public void storeElement(IntValue idx, LongValue val)
      Description copied from class: AbstractArrayValue
      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,LongValue,long[]>
      Parameters:
      idx - The index formula.
      val - The element formula.
    • initArray

      protected void initArray(int size)
      Description copied from class: AbstractArrayValue
      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,LongValue,long[]>
      Parameters:
      size - The size of the array.
    • initArray

      protected void initArray(long[] array)
    • asLongArrayValue

      public LongArrayValue asLongArrayValue()
      Overrides:
      asLongArrayValue in class AbstractArrayValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,IntValue,LongValue,long[]>
    • 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>,long[]>
      Returns:
      the string representation of the value.