Class Value
java.lang.Object
pascal.taie.analysis.dataflow.analysis.constprop.Value
Represents lattice values in constant propagation.
A value can be either UNDEF, a constant, or NAC.
-
Method Summary
-
Method Details
-
getUndef
- Returns:
- the UNDEF.
-
makeConstant
Makes a constant value.- Returns:
- the constant for given value.
-
getNAC
- Returns:
- the NAC.
-
isUndef
public boolean isUndef()- Returns:
- true if this value is UNDEF, otherwise false.
-
isConstant
public boolean isConstant()- Returns:
- true if this value represents a constant, otherwise false.
-
isNAC
public boolean isNAC()- Returns:
- true if this value is NAC, otherwise false.
-
getConstant
public int getConstant()If this value represents a (integer) constant, then returns the integer. The client code should callisConstant()
to check if this Value is constant before calling this method.- Throws:
AnalysisException
- if this value is not a constant
-
hashCode
public int hashCode() -
equals
-
toString
-