GCC Middle and Back End API Reference
ana::complexity Struct Reference

#include <complexity.h>

Public Member Functions

 complexity (unsigned num_nodes, unsigned max_depth)
 complexity (const symbolic::node &n)
 complexity (const region *reg)
 complexity (const svalue *sval)
bool operator== (const complexity &other) const
complexity operator+ (const complexity &other) const
complexity & operator+= (const complexity &other)

Static Public Member Functions

static complexity from_pair (const complexity &c1, const complexity &c)
static complexity from_vec_svalue (const vec< const svalue * > &vec)
static complexity from_child_complexities (const complexity &child_complexities)

Data Fields

unsigned m_num_nodes
unsigned m_max_depth

Detailed Description

A measurement of the complexity of a symbolic node, so that
we can impose bounds on the growth of these tree-like structures
and thus avoid infinite chains of analysis.   

Constructor & Destructor Documentation

◆ complexity() [1/4]

ana::complexity::complexity ( unsigned num_nodes,
unsigned max_depth )
inline

◆ complexity() [2/4]

ana::complexity::complexity ( const symbolic::node & n)

◆ complexity() [3/4]

ana::complexity::complexity ( const region * reg)

◆ complexity() [4/4]

ana::complexity::complexity ( const svalue * sval)

References complexity().

Member Function Documentation

◆ from_child_complexities()

complexity ana::complexity::from_child_complexities ( const complexity & child_complexities)
static

References complexity().

◆ from_pair()

complexity ana::complexity::from_pair ( const complexity & c1,
const complexity & c )
static

References complexity().

◆ from_vec_svalue()

complexity ana::complexity::from_vec_svalue ( const vec< const svalue * > & vec)
static

References complexity().

◆ operator+()

complexity ana::complexity::operator+ ( const complexity & other) const

References complexity().

◆ operator+=()

complexity & ana::complexity::operator+= ( const complexity & other)

References complexity().

◆ operator==()

bool ana::complexity::operator== ( const complexity & other) const
inline

Field Documentation

◆ m_max_depth

unsigned ana::complexity::m_max_depth

Referenced by complexity(), and operator==().

◆ m_num_nodes

unsigned ana::complexity::m_num_nodes

Referenced by complexity(), and operator==().


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