GCC Middle and Back End API Reference
ana::symbolic::pointer Class Reference

#include <symbolic-pointers.h>

Collaboration diagram for ana::symbolic::pointer:

Public Types

using symbolic_byte_offset = symbolic::scalar<integer_with_unit<units::byte>>

Public Member Functions

 pointer (const region &base_reg, const symbolic_byte_offset &byte_offset)
void dump () const
bool operator== (const pointer &other) const
bool operator!= (const pointer &other) const
int cmp (const pointer &other) const
bool zero_offset_p () const
bool non_null_p () const
std::unique_ptr< text_art::tree_widget > make_dump_widget (node_dump_state &nds) const
void accept_node_visitor (symbolic::node_visitor &v) const
std::unique_ptr< json::object > to_json () const
const region & get_base_region () const
const symbolic_byte_offset & get_byte_offset () const

Static Public Member Functions

static tristate eval_condition (const pointer &lhs_ptr, enum tree_code op, const pointer &rhs_ptr, const region_model &model)

Private Attributes

const region & m_base_reg
const symbolic_byte_offset & m_byte_offset

Detailed Description

A (base_region, symbolic byte offset) pair.
Note that these have a granularity of *bytes*.   

Member Typedef Documentation

◆ symbolic_byte_offset

Constructor & Destructor Documentation

◆ pointer()

ana::symbolic::pointer::pointer ( const region & base_reg,
const symbolic_byte_offset & byte_offset )
inline

References m_base_reg, and m_byte_offset.

Referenced by cmp(), eval_condition(), operator!=(), and operator==().

Member Function Documentation

◆ accept_node_visitor()

void ana::symbolic::pointer::accept_node_visitor ( symbolic::node_visitor & v) const

◆ cmp()

int ana::symbolic::pointer::cmp ( const pointer & other) const

References pointer().

◆ dump()

void ana::symbolic::pointer::dump ( ) const

◆ eval_condition()

tristate ana::symbolic::pointer::eval_condition ( const pointer & lhs_ptr,
enum tree_code op,
const pointer & rhs_ptr,
const region_model & model )
static

References pointer().

◆ get_base_region()

const region & ana::symbolic::pointer::get_base_region ( ) const
inline

◆ get_byte_offset()

const symbolic_byte_offset & ana::symbolic::pointer::get_byte_offset ( ) const
inline

◆ make_dump_widget()

std::unique_ptr< text_art::tree_widget > ana::symbolic::pointer::make_dump_widget ( node_dump_state & nds) const

◆ non_null_p()

bool ana::symbolic::pointer::non_null_p ( ) const

◆ operator!=()

bool ana::symbolic::pointer::operator!= ( const pointer & other) const
inline

References ana::other, and pointer().

◆ operator==()

bool ana::symbolic::pointer::operator== ( const pointer & other) const
inline

◆ to_json()

std::unique_ptr< json::object > ana::symbolic::pointer::to_json ( ) const

◆ zero_offset_p()

bool ana::symbolic::pointer::zero_offset_p ( ) const
inline

Field Documentation

◆ m_base_reg

const region& ana::symbolic::pointer::m_base_reg
private

◆ m_byte_offset

const symbolic_byte_offset& ana::symbolic::pointer::m_byte_offset
private

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