GP-2037 RuleDoubleStore

This commit is contained in:
caheckman 2022-04-01 13:27:33 -04:00
parent cb4b309942
commit 4448f11cb4
15 changed files with 761 additions and 231 deletions

View file

@ -41,6 +41,9 @@ struct VarnodeData {
/// Get the location of the varnode as an address
Address getAddr(void) const;
/// Treat \b this as a constant and recover encoded address space
AddrSpace *getSpaceFromConst(void) const;
/// Recover this object from an XML tag
void restoreXml(const Element *el,const AddrSpaceManager *manage);
@ -86,6 +89,11 @@ inline Address VarnodeData::getAddr(void) const {
return Address(space,offset);
}
/// \return the encoded AddrSpace
inline AddrSpace *VarnodeData::getSpaceFromConst(void) const {
return (AddrSpace *)(uintp)offset;
}
/// \brief A low-level representation of a single pcode operation
///
/// This is just the minimum amount of data to represent a pcode operation