45 return (this->
high - this->
low) + 1;
79 if (this->low > this->high)
92 stream <<
"bv[" << bv.
getHigh() <<
".." << bv.
getLow() <<
"]";
This class is used to deal with registers and memory as bits vector.
TRITON_EXPORT triton::uint512 getMaxValue(void) const
Returns the max possible value of the bitvector.
triton::uint32 low
The lower bit of the bitvector.
TRITON_EXPORT triton::uint32 getHigh(void) const
Returns the highest bit.
TRITON_EXPORT triton::uint32 getVectorSize(void) const
Returns the size in bits of the vector.
TRITON_EXPORT triton::uint32 getLow(void) const
Returns the lower bit.
TRITON_EXPORT void setHigh(triton::uint32 v)
Sets the highest bit position.
TRITON_EXPORT void setBits(triton::uint32 high, triton::uint32 low)
Sets the bits (high, low) position.
TRITON_EXPORT BitsVector()
Constructor.
TRITON_EXPORT void setLow(triton::uint32 v)
Sets the lower bit position.
triton::uint32 high
The highest bit of the bitvector.
TRITON_EXPORT BitsVector & operator=(const BitsVector &other)
Copy a BitsVector.
The exception class used by bitvectors.
std::ostream & operator<<(std::ostream &stream, BasicBlock &block)
Displays an BasicBlock.
constexpr triton::uint32 max_supported
max size supported in bit
std::uint32_t uint32
unisgned 32-bits