GCC Middle and Back End API Reference
ana::symbolic Namespace Reference

Data Structures

class  baseline_bit_contents
struct  baseline_key
class  bit_contents
class  bit_contents_manager
class  bit_overlay
class  bit_vector
class  bit_vector_from_svalue
class  bit_vector_from_ubc
class  bit_vector_manager
class  bits_from_bytes_scalar
struct  CompareNodeIds
class  concat_bit_vector
class  concrete_bit_overlay
class  concrete_scalar
class  conjured_bit_contents
class  conjured_bit_vector
class  cropped_bit_vector
class  empty_bit_vector
class  liveness_context
struct  markup_context
class  memory_offset
class  memory_range
class  node
struct  node_dump_state
class  node_manager
class  node_set
class  node_visitor
class  offset_bit_contents
class  overcomplex_scalar
class  pointer
class  poisoned_bit_vector
class  pp_element_for_node
class  product
class  range
class  repeated_bit_vector
class  scalar
class  scalar_from_svalue
class  scalar_manager
class  scalar_managers
class  sum
class  symbolic_bit_overlay
class  tristate_bit_vector
class  unfoldable_bit_contents
class  uniform_bit_contents
class  uniform_bit_vector
class  uninit_contents
class  untracked_bit_contents
class  value_node
class  value_node_visitor
class  zero_contents

Functions

template<typename T>
void dump_node_tree_to_pp (const T &obj, const text_art::theme *theme, pretty_printer *pp, bool show_ids, bool elide_repeated_nodes)
template<typename T>
void dump_node_tree_to_file (const T &obj, FILE *outf)
template<typename T>
void dump_node_tree_to_stderr (const T &obj)
template<typename T>
void dump_node_tree_to_logger (const T &obj, logger &log, const text_art::theme *theme, bool show_ids, bool elide_repeated_nodes)
template<typename T>
void dump_node_tree_to_logger (const T &obj, logger &log, const text_art::theme *theme, const char *label, bool show_ids, bool elide_repeated_nodes)
template<typename T>
void dump_node_tree_to_logger (const T &obj, logger &log)
template<typename T>
void dump_node_tree_to_logger (const T &obj, logger &log, const char *label)
template<typename ConcreteValueType>
bool concrete_from_symbolic (const symbolic::range< ConcreteValueType > &in, concrete::range< ConcreteValueType > *out)
template<typename ConcreteValueType>
symbolic::range< ConcreteValueType > symbolic_from_concrete (const concrete::range< ConcreteValueType > &conc_range, scalar_manager< concrete_bit_size > &bit_mgr)

Function Documentation

◆ concrete_from_symbolic()

template<typename ConcreteValueType>
bool ana::symbolic::concrete_from_symbolic ( const symbolic::range< ConcreteValueType > & in,
concrete::range< ConcreteValueType > * out )
inline

◆ dump_node_tree_to_file()

template<typename T>
void ana::symbolic::dump_node_tree_to_file ( const T & obj,
FILE * outf )
Dump OBJ to OUTF, using OBJ's make_dump_widget member function,
global_dc's color/theme options, with symbol IDs shown,
and eliding repeated occurrences of nodes.   

References dump_node_tree_to_file(), dump_node_tree_to_pp(), diagnostics::context::get_diagram_theme(), and global_dc.

Referenced by dump_node_tree_to_file(), and dump_node_tree_to_stderr().

◆ dump_node_tree_to_logger() [1/4]

template<typename T>
void ana::symbolic::dump_node_tree_to_logger ( const T & obj,
logger & log )
Dump a tree-like representation of OBJ and its constituent symbolic::nodes
to LOG with symbol IDs shown.   

References dump_node_tree_to_logger(), and log().

◆ dump_node_tree_to_logger() [2/4]

template<typename T>
void ana::symbolic::dump_node_tree_to_logger ( const T & obj,
logger & log,
const char * label )
As above, but pass LABEL to OBJ's make_dump_widget call.   

References dump_node_tree_to_logger(), and log().

◆ dump_node_tree_to_logger() [3/4]

template<typename T>
void ana::symbolic::dump_node_tree_to_logger ( const T & obj,
logger & log,
const text_art::theme * theme,
bool show_ids,
bool elide_repeated_nodes )
As dump_node_tree_to_pp, but write to LOG, indenting the whole output
according to the current nesting level of the log.   

References dump_node_tree_to_logger(), text_art::style_manager::get_or_create_id(), text_art::get_style_from_color_cap_name(), log(), and text_art::dump_widget_info::m_sm.

Referenced by dump_node_tree_to_logger(), dump_node_tree_to_logger(), dump_node_tree_to_logger(), and dump_node_tree_to_logger().

◆ dump_node_tree_to_logger() [4/4]

template<typename T>
void ana::symbolic::dump_node_tree_to_logger ( const T & obj,
logger & log,
const text_art::theme * theme,
const char * label,
bool show_ids,
bool elide_repeated_nodes )

◆ dump_node_tree_to_pp()

template<typename T>
void ana::symbolic::dump_node_tree_to_pp ( const T & obj,
const text_art::theme * theme,
pretty_printer * pp,
bool show_ids,
bool elide_repeated_nodes )
Dump a tree-like representation of OBJ and its constituent symbolic::nodes
to PP.

For example:
. (gdb) call index_sval->dump()
. (27): ‘int’: initial_svalue
. ╰─ m_reg: (26): ‘int’: decl_region(‘x_10(D)’)
.    ╰─ parent: (9): frame_region(‘test_bitmask_2’, index: 0, depth: 1)
.       ╰─ parent: (1): stack region
.          ╰─ parent: (0): root region

Note that OBJ is not necessarily itself a symbolic::node, it just needs
to implement make_dump_widget.

Set show_ids to false for generating repeatable output (e.g. for unit
testing of dump output).   

References dump_node_tree_to_pp(), text_art::style_manager::get_or_create_id(), text_art::get_style_from_color_cap_name(), and text_art::dump_widget_info::m_sm.

Referenced by dump_node_tree_to_file(), and dump_node_tree_to_pp().

◆ dump_node_tree_to_stderr()

template<typename T>
void ana::symbolic::dump_node_tree_to_stderr ( const T & obj)
Dump a tree-like representation of OBJ and its constituent symbolic::nodes
to stderr, using global_dc's colorization and theming options, with
symbolic::node IDs shown.

For example:
. (gdb) call reg->dump()
. (26): ‘int’: decl_region(‘x_10(D)’)
. ╰─ parent: (9): frame_region(‘test_bitmask_2’, index: 0, depth: 1)
.    ╰─ parent: (1): stack region
.       ╰─ parent: (0): root region

Note that OBJ is not necessarily itself a symbolic::node, it just needs
to implement make_dump_widget.   

References dump_node_tree_to_file(), and dump_node_tree_to_stderr().

Referenced by dump_node_tree_to_stderr().

◆ symbolic_from_concrete()

template<typename ConcreteValueType>
symbolic::range< ConcreteValueType > ana::symbolic::symbolic_from_concrete ( const concrete::range< ConcreteValueType > & conc_range,
scalar_manager< concrete_bit_size > & bit_mgr )
inline