bugfixes, overlapping lanerecords check

This commit is contained in:
caheckman 2019-10-18 14:01:53 -04:00
parent 04d28bcc4e
commit ce0ab31576
7 changed files with 56 additions and 13 deletions

View file

@ -93,7 +93,8 @@ public:
bool restoreXml(const Element *el,const AddrSpaceManager *manage); ///< Restore object from XML stream
const VarnodeData &getStorage(void) const { return storage; } ///< Get VarnodeData for storage
void addSize(int4 size) { sizeBitMask |= ((uint4)1 << size); } ///< Add a new \e size to the allowed list
bool contains(int4 size) const { return (((sizeBitMask >> size) & 1) != 0); } ///< Is \e size among the allowed lane sizes
bool allowedLane(int4 size) const { return (((sizeBitMask >> size) & 1) != 0); } ///< Is \e size among the allowed lane sizes
bool contains(const LanedRegister &op2) const; ///< Does \b this contain the given register and its possible lanes
bool operator<(const LanedRegister &op2) const { return (storage < op2.storage); } ///< Compare based on VarnodeData
};