Class IntValue
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,Integer>
 
de.uzl.its.swat.symbolic.value.primitive.numeric.integral.IntValue
public class IntValue
extends NumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Integer> 
IntValue contains a pair of concrete value and a path constraint. Note that the path constraint
 flip the boolean signs according to the evaluated concrete value.
- 
Field SummaryFields inherited from class de.uzl.its.swat.symbolic.value.primitive.numeric.NumericalValueimgr
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionNumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Integer> org.sosy_lab.java_smt.api.BooleanFormulaCreates a formula that asserts that a value is positiveorg.sosy_lab.java_smt.api.BooleanFormulaorg.sosy_lab.java_smt.api.BooleanFormulagetBounds(boolean upper) Creates a formula that asserts that this symbolic value is withing the bounds of this typeI2B()I2C()I2D()Converts anIntValueinto aDoubleValueI2F()Converts anIntValueinto aFloatValueI2L()I2S()Converts anIntValueinto aShortValueAdds two integersCalculates the bitwise and of two integers in binary representationDivides two integersorg.sosy_lab.java_smt.api.BooleanFormulaChecks if the two integers are equalorg.sosy_lab.java_smt.api.BooleanFormulaChecks if the integer is greater or equal to the second integerorg.sosy_lab.java_smt.api.BooleanFormulaChecks if the integer is greater than the second integerorg.sosy_lab.java_smt.api.BooleanFormulaChecks if the integer is less or equal to the second integerorg.sosy_lab.java_smt.api.BooleanFormulaChecks if the integer is less than the second integerorg.sosy_lab.java_smt.api.BooleanFormulaChecks if the two integers are not equalorg.sosy_lab.java_smt.api.BooleanFormulaIFEQ()Checks if the current Value is 0org.sosy_lab.java_smt.api.BooleanFormulaIFGE()Checks if the current Value is greater or equal to 0org.sosy_lab.java_smt.api.BooleanFormulaIFGT()Checks if the current Value is greater then 0org.sosy_lab.java_smt.api.BooleanFormulaIFLE()Checks if the current Value is less or equal to 0org.sosy_lab.java_smt.api.BooleanFormulaIFLT()Checks if the current Value is greater then 0org.sosy_lab.java_smt.api.BooleanFormulaIFNE()Checks if the current Value is not equal to 0IINC(int increment) Increments an integerMultiplies two integersINEG()Negates an integerCalculates the bitwise or of two integersCalculates the modulo of two integersCalculates the bitwise left shift of an integerCalculates the bitwise arithmetic right shift of an integerSubtracts two integersCalculates the bitwise logical right shift of an integerCalculates the bitwise exclusive or of two integersTurns this IntValue into a symbolic variableMAKE_SYMBOLIC(long idx) Turns this IntValue into a symbolic variableMAKE_SYMBOLIC(String namePrefix) Turns this IntValue 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.ValueasDoubleValue, asFloatValue, asObjectValue, getConcrete, getName, getType, initSymbolic, initSymbolic, reset
- 
Constructor Details- 
IntValuepublic IntValue(org.sosy_lab.java_smt.api.SolverContext context, int concrete) Instantiates a new Int value.- Parameters:
- context- the context
- concrete- the concrete
 
- 
IntValuepublic IntValue(org.sosy_lab.java_smt.api.SolverContext context, int concrete, org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula formula) Instantiates a new Int value.- Parameters:
- context- the context
- concrete- the concrete
- formula- the formula
 
 
- 
- 
Method Details- 
MAKE_SYMBOLICTurns this IntValue into a symbolic variable- Overrides:
- MAKE_SYMBOLICin class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
- Parameters:
- namePrefix-
- 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,- Integer> 
- Parameters:
- idx-
- 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,- Integer> 
- 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
- 
checkPositivepublic org.sosy_lab.java_smt.api.BooleanFormula checkPositive()Creates a formula that asserts that a value is positive- Returns:
- The BooleanFormulathat represents the check
 
- 
IADDAdds two integers
- 
ISUBSubtracts two integers
- 
IMULMultiplies two integers
- 
IDIVDivides two integers
- 
IREMCalculates the modulo of two integers
- 
INEGNegates an integer- Returns:
- The resulting IntValue
 
- 
IINCIncrements an integer- Parameters:
- increment- The amount to increment
- Returns:
- The incremented IntValue
 
- 
IANDCalculates the bitwise and of two integers in binary representation
- 
ISHLCalculates the bitwise left shift of an integer- Parameters:
- i- The amount to shift
- Returns:
- The resulting IntValue
 
- 
ISHRCalculates the bitwise arithmetic right shift of an integer- Parameters:
- i- The amount to shift
- Returns:
- The resulting IntValue
 
- 
IUSHRCalculates the bitwise logical right shift of an integer- Parameters:
- i- The amount to shift
- Returns:
- The resulting IntValue
 
- 
IORCalculates the bitwise or of two integers
- 
IXORCalculates the bitwise exclusive or of two integers
- 
IFEQpublic org.sosy_lab.java_smt.api.BooleanFormula IFEQ()Checks if the current Value is 0- Returns:
- A BooleanFormulathat represents this check
 
- 
IFGEpublic org.sosy_lab.java_smt.api.BooleanFormula IFGE()Checks if the current Value is greater or equal to 0- Returns:
- A BooleanFormulathat represents this check
 
- 
IFGTpublic org.sosy_lab.java_smt.api.BooleanFormula IFGT()Checks if the current Value is greater then 0- Returns:
- A BooleanFormulathat represents this check
 
- 
IFLEpublic org.sosy_lab.java_smt.api.BooleanFormula IFLE()Checks if the current Value is less or equal to 0- Returns:
- A BooleanFormulathat represents this check
 
- 
IFLTpublic org.sosy_lab.java_smt.api.BooleanFormula IFLT()Checks if the current Value is greater then 0- Returns:
- A BooleanFormulathat represents this check
 
- 
IFNEpublic org.sosy_lab.java_smt.api.BooleanFormula IFNE()Checks if the current Value is not equal to 0- Returns:
- A BooleanFormulathat represents this check
 
- 
IF_ICMPEQChecks if the two integers are equal- Parameters:
- i- The other- IntValue
- Returns:
- A BooleanFormulathat represents this check
 
- 
IF_ICMPGEChecks if the integer is greater or equal to the second integer- Parameters:
- i- The other- IntValue
- Returns:
- A BooleanFormulathat represents this check
 
- 
IF_ICMPGTChecks if the integer is greater than the second integer- Parameters:
- i- The other- IntValue
- Returns:
- A BooleanFormulathat represents this check
 
- 
IF_ICMPLEChecks if the integer is less or equal to the second integer- Parameters:
- i- The other- IntValue
- Returns:
- A BooleanFormulathat represents this check
 
- 
IF_ICMPLTChecks if the integer is less than the second integer- Parameters:
- i- The other- IntValue
- Returns:
- A BooleanFormulathat represents this check
 
- 
IF_ICMPNEChecks if the two integers are not equal- Parameters:
- i- The other- IntValue
- Returns:
- A BooleanFormulathat represents this check
 
- 
I2DConverts anIntValueinto aDoubleValue- Returns:
- The resulting DoubleValue
 
- 
I2FConverts anIntValueinto aFloatValue- Returns:
- The resulting FloatValue
 
- 
I2L- Returns:
- The resulting LongValue
 
- 
I2B- Returns:
- The resulting ByteValue
 
- 
I2C- Returns:
- The resulting CharValue
 
- 
I2SConverts anIntValueinto aShortValue- Returns:
- The resulting ShortValue
 
- 
checkZeropublic org.sosy_lab.java_smt.api.BooleanFormula checkZero()
- 
asIntValue- Overrides:
- asIntValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
asCharValue- Overrides:
- asCharValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
asBooleanValue- Overrides:
- asBooleanValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
asLongValue- Overrides:
- asLongValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
asShortValue- Overrides:
- asShortValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
asByteValue- Overrides:
- asByteValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
asStringValue- Overrides:
- asStringValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
asNumericalValuepublic NumericalValue<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,Integer> asNumericalValue()- Overrides:
- asNumericalValuein class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
getConcreteEncoded- Overrides:
- getConcreteEncodedin class- Value<org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula,- Integer> 
 
- 
toStringReturns the string representation of the value used to visualize the stack. The representation is not complete.
 
-