Class ByteValue
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,Byte>
de.uzl.its.swat.symbolic.value.primitive.numeric.integral.ByteValue
public class ByteValue
extends NumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Byte>
Wrapper to represent byte values on the symbolic stack. Can contain concrete and symbolic
information.
-
Field Summary
Fields inherited from class de.uzl.its.swat.symbolic.value.primitive.numeric.NumericalValue
imgr
-
Constructor Summary
ConstructorDescriptionByteValue
(org.sosy_lab.java_smt.api.SolverContext context, byte concrete) Creates a new ByteValue that has no prior symbolic information and only contains a specific valueByteValue
(org.sosy_lab.java_smt.api.SolverContext context, byte concrete, org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula formula) Creates a new ByteValue that has prior symbolic information and contains a specific value -
Method Summary
Modifier and TypeMethodDescriptionNumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Byte> 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 ByteValue into a symbolic variableMAKE_SYMBOLIC
(long idx) Turns this IntValue into a symbolic variableMAKE_SYMBOLIC
(String namePrefix) Turns this ByteValue 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, asCharValue, asDoubleValue, asFloatValue, asLongValue, asObjectValue, asShortValue, asStringValue, getConcrete, getName, getType, initSymbolic, initSymbolic, reset
-
Constructor Details
-
ByteValue
public ByteValue(org.sosy_lab.java_smt.api.SolverContext context, byte concrete) Creates a new ByteValue that has no prior symbolic information and only contains a specific value- Parameters:
context
- The SolverContextconcrete
- The concrete byte value
-
ByteValue
public ByteValue(org.sosy_lab.java_smt.api.SolverContext context, byte concrete, org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula formula) Creates a new ByteValue that has prior symbolic information and contains a specific value- Parameters:
context
- The SolverContextconcrete
- The concrete byte valueformula
- The symbolic formula representing prior symbolic information about this byte
-
-
Method Details
-
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 -
MAKE_SYMBOLIC
Turns this ByteValue into a symbolic variable- Overrides:
MAKE_SYMBOLIC
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Byte> - Parameters:
namePrefix
-- 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,
Byte> - Parameters:
idx
-- Returns:
- The numerical identifier of this symbolic variable
-
MAKE_SYMBOLIC
Turns this ByteValue into a symbolic variable- Overrides:
MAKE_SYMBOLIC
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Byte> - Returns:
- The numerical identifier of this symbolic variable
-
asNumericalValue
public NumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Byte> asNumericalValue()- Overrides:
asNumericalValue
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Byte>
-
asIntValue
- Overrides:
asIntValue
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Byte>
-
asByteValue
- Overrides:
asByteValue
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Byte>
-
getConcreteEncoded
- Overrides:
getConcreteEncoded
in classValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,
Byte>
-
toString
Returns the string representation of the value used to visualize the stack. The representation is not complete.
-