Go to the documentation of this file.
10 #ifndef CPROVER_UTIL_SYMBOL_H
11 #define CPROVER_UTIL_SYMBOL_H
91 void show(std::ostream &out)
const;
183 #endif // CPROVER_UTIL_SYMBOL_H
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
const irep_idt & display_name() const
Return language specific display name if present.
The type of an expression, extends irept.
typet type
Type of symbol.
bool operator==(const symbolt &other) const
Base class for all expressions.
irep_idt base_name
Base (non-scoped) name.
Internally generated symbol table entry.
Expression to hold a symbol (variable)
std::ostream & operator<<(std::ostream &out, const symbolt &symbol)
Overload of stream operator to work with symbols.
irep_idt pretty_name
Language-specific display name.
bool is_well_formed() const
Check that a symbol is well formed.
irep_idt mode
Language mode.
void set_compiled()
Set the symbol's value to "compiled"; to be used once the code-typed value has been converted to a go...
#define PRECONDITION(CONDITION)
class symbol_exprt symbol_expr() const
Produces a symbol_exprt for a symbol.
type_symbolt(const typet &_type)
const irep_idt & id() const
void clear()
Zero initialise a symbol object.
exprt value
Initial value of symbol.
source_locationt location
Source code location of definition of symbol.
void show(std::ostream &out) const
Dump the state of a symbol object to a given output stream.
bool is_compiled() const
Returns true iff the the symbol's value has been compiled to a goto program.
auxiliary_symbolt(const irep_idt &name, const typet &type)
Symbol table entry describing a data type.
void swap(symbolt &b)
Swap values between two symbols.
bool operator!=(const symbolt &other) const
Symbol table entry of function parameter.
irep_idt module
Name of module the symbol belongs to.
irep_idt name
The unique identifier.