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 Summary
Fields inherited from class de.uzl.its.swat.symbolic.value.primitive.numeric.NumericalValue
imgr
-
Constructor Summary
ConstructorDescriptionShortValue
(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 Summary
Modifier and TypeMethodDescriptionNumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Short> 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 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.NumericalValue
genericToString, wrapByte, wrapCharacter, wrapInteger, wrapLong, wrapShort
Methods inherited from class de.uzl.its.swat.symbolic.value.Value
asBooleanValue, asByteValue, asCharValue, asDoubleValue, asFloatValue, asLongValue, asObjectValue, asStringValue, getConcrete, getName, getType, initSymbolic, initSymbolic, reset
-
Constructor Details
-
ShortValue
public 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 SolverContextconcrete
- The concrete short value
-
ShortValue
public 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 SolverContextconcrete
- The concrete short valueformula
- The symbolic formula representing prior symbolic information about this short
-
-
Method Details
-
MAKE_SYMBOLIC
Turns this ShortValue into a symbolic variable- Overrides:
MAKE_SYMBOLIC
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Short> - Parameters:
namePrefix
-- Returns:
- The numerical identifier of this symbolic variable
-
MAKE_SYMBOLIC
Turns this ShortValue into a symbolic variable- Overrides:
MAKE_SYMBOLIC
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Short> - Returns:
- The numerical identifier of this symbolic variable
-
MAKE_SYMBOLIC
Turns this IntValue into a symbolic variable- Overrides:
MAKE_SYMBOLIC
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Short> - Parameters:
idx
-- Returns:
- The numerical identifier of this symbolic variable
-
getBounds
public 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 -
asNumericalValue
public NumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Short> asNumericalValue()- Overrides:
asNumericalValue
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Short>
-
asShortValue
- Overrides:
asShortValue
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Short>
-
asIntValue
- Overrides:
asIntValue
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Short>
-
getConcreteEncoded
- Overrides:
getConcreteEncoded
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Short>
-
toString
Returns the string representation of the value used to visualize the stack. The representation is not complete.
-