Class ShortValue
java.lang.Object
de.uzl.its.swat.symbolic.value.Value<T,K>
 
de.uzl.its.swat.symbolic.value.primitive.numeric.NumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Short>
 
de.uzl.its.swat.symbolic.value.primitive.numeric.integral.ShortValue
public class ShortValue
extends NumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Short> 
Wrapper for shorts to represent symbolic and concrete information on the symbolic stack
- 
Field SummaryFields inherited from class de.uzl.its.swat.symbolic.value.primitive.numeric.NumericalValueimgr
- 
Constructor SummaryConstructorsConstructorDescriptionShortValue(org.sosy_lab.java_smt.api.SolverContext context, short concrete) Creates a new ShortValue that has no prior symbolic information and only contains a specific valueShortValue(org.sosy_lab.java_smt.api.SolverContext context, short concrete, org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula formula) Creates a new ShortValue that has prior symbolic information and contains a specific value
- 
Method SummaryModifier and TypeMethodDescriptionNumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Short> org.sosy_lab.java_smt.api.BooleanFormulagetBounds(boolean upper) Creates a formula that asserts that this symbolic value is withing the bounds of this typeTurns this ShortValue into a symbolic variableMAKE_SYMBOLIC(long idx) Turns this IntValue into a symbolic variableMAKE_SYMBOLIC(String namePrefix) Turns this ShortValue into a symbolic variabletoString()Returns the string representation of the value used to visualize the stack.Methods inherited from class de.uzl.its.swat.symbolic.value.primitive.numeric.NumericalValuegenericToString, wrapByte, wrapCharacter, wrapInteger, wrapLong, wrapShortMethods inherited from class de.uzl.its.swat.symbolic.value.ValueasBooleanValue, asByteValue, asCharValue, asDoubleValue, asFloatValue, asLongValue, asObjectValue, asStringValue, getConcrete, getName, getType, initSymbolic, initSymbolic, reset
- 
Constructor Details- 
ShortValuepublic ShortValue(org.sosy_lab.java_smt.api.SolverContext context, short concrete) Creates a new ShortValue that has no prior symbolic information and only contains a specific value- Parameters:
- context- The SolverContext
- concrete- The concrete short value
 
- 
ShortValuepublic ShortValue(org.sosy_lab.java_smt.api.SolverContext context, short concrete, org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula formula) Creates a new ShortValue that has prior symbolic information and contains a specific value- Parameters:
- context- The SolverContext
- concrete- The concrete short value
- formula- The symbolic formula representing prior symbolic information about this short
 
 
- 
- 
Method Details- 
MAKE_SYMBOLICTurns this ShortValue into a symbolic variable- Overrides:
- MAKE_SYMBOLICin class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Short> 
- Parameters:
- namePrefix-
- Returns:
- The numerical identifier of this symbolic variable
 
- 
MAKE_SYMBOLICTurns this ShortValue into a symbolic variable- Overrides:
- MAKE_SYMBOLICin class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Short> 
- Returns:
- The numerical identifier of this symbolic variable
 
- 
MAKE_SYMBOLICTurns this IntValue into a symbolic variable- Overrides:
- MAKE_SYMBOLICin class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Short> 
- Parameters:
- idx-
- Returns:
- The numerical identifier of this symbolic variable
 
- 
getBoundspublic org.sosy_lab.java_smt.api.BooleanFormula getBounds(boolean upper) Creates a formula that asserts that this symbolic value is withing the bounds of this type
- 
asNumericalValuepublic NumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Short> asNumericalValue()- Overrides:
- asNumericalValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Short> 
 
- 
asShortValue- Overrides:
- asShortValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Short> 
 
- 
asIntValue- Overrides:
- asIntValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Short> 
 
- 
getConcreteEncoded- Overrides:
- getConcreteEncodedin class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Short> 
 
- 
toStringReturns the string representation of the value used to visualize the stack. The representation is not complete.
 
-