My Project
Public Member Functions | Friends | List of all members
LoadGuard Class Reference

Description of a LOAD operation that needs to be guarded. More...

#include <heritage.hh>

Public Member Functions

PcodeOpgetOp (void) const
 Get the PcodeOp being guarded.
 
uintb getMinimum (void) const
 Get minimum offset of the guarded range.
 
uintb getMaximum (void) const
 Get maximum offset of the guarded range.
 
int4 getStep (void) const
 Get the calculated step associated with the range (or 0)
 
bool isGuarded (const Address &addr) const
 Does this guard apply to the given address. More...
 
bool isRangeLocked (void) const
 Return true if the range is fully determined.
 
bool isValid (OpCode opc) const
 Return true if the record still describes an active LOAD.
 

Friends

class Heritage
 

Detailed Description

Description of a LOAD operation that needs to be guarded.

Heritage maintains a list of CPUI_LOAD ops that reference the stack dynamically. These can potentially alias stack Varnodes, so we maintain what (possibly limited) information we known about the range of stack addresses that can be referenced.

Member Function Documentation

◆ isGuarded()

bool LoadGuard::isGuarded ( const Address addr) const

Does this guard apply to the given address.

Check if the address falls within the range defined by this

Parameters
addris the given address
Returns
true if the address is contained

The documentation for this class was generated from the following files: