|
cprover
|
Symbol table entry. More...
#include <symbol.h>
Public Member Functions | |
| const irep_idt & | display_name () const |
| Return language specific display name if present. | |
| symbolt () | |
| symbolt (const irep_idt &_name, typet _type, const irep_idt &_mode) | |
| void | swap (symbolt &b) |
| Swap values between two symbols. | |
| void | show (std::ostream &out) const |
| Dump the state of a symbol object to a given output stream. | |
| class symbol_exprt | symbol_expr () const |
| Produces a symbol_exprt for a symbol. | |
| bool | is_shared () const |
| bool | is_function () const |
| bool | is_compiled () const |
| Returns true iff the the symbol's value has been compiled to a goto program. | |
| void | set_compiled () |
| Set the symbol's value to "compiled"; to be used once the code-typed value has been converted to a goto program. | |
| bool | is_well_formed () const |
| Check that a symbol is well formed. | |
| bool | operator== (const symbolt &other) const |
| bool | operator!= (const symbolt &other) const |
Public Attributes | |
| typet | type |
| Type of symbol. | |
| exprt | value |
| Initial value of symbol. | |
| source_locationt | location |
| Source code location of definition of symbol. | |
| irep_idt | name |
| The unique identifier. | |
| irep_idt | module |
| Name of module the symbol belongs to. | |
| irep_idt | base_name |
| Base (non-scoped) name. | |
| irep_idt | mode |
| Language mode. | |
| irep_idt | pretty_name |
| Language-specific display name. | |
| bool | is_type = false |
| bool | is_macro = false |
| bool | is_exported = false |
| bool | is_input = false |
| bool | is_output = false |
| bool | is_state_var = false |
| bool | is_property = false |
| bool | is_static_lifetime = false |
| bool | is_thread_local = false |
| bool | is_lvalue = false |
| bool | is_file_local = false |
| bool | is_extern = false |
| bool | is_volatile = false |
| bool | is_parameter = false |
| bool | is_auxiliary = false |
| bool | is_weak = false |
Symbol table entry.
This is a symbol in the symbol table, stored in an object of type symbol_tablet.
|
inline |
|
inline |
| bool symbolt::is_well_formed | ( | ) | const |
Check that a symbol is well formed.
Check that the instance object is well formed.
Definition at line 128 of file symbol.cpp.
| bool symbolt::operator!= | ( | const symbolt & | other | ) | const |
Definition at line 233 of file symbol.cpp.
| bool symbolt::operator== | ( | const symbolt & | other | ) | const |
Definition at line 202 of file symbol.cpp.
|
inline |
| void symbolt::show | ( | std::ostream & | out | ) | const |
Dump the state of a symbol object to a given output stream.
| out | The stream to output object state to. |
Definition at line 19 of file symbol.cpp.
| void symbolt::swap | ( | symbolt & | b | ) |
Swap values between two symbols.
| b | The second symbol to swap values with. |
Definition at line 85 of file symbol.cpp.
| symbol_exprt symbolt::symbol_expr | ( | ) | const |
Produces a symbol_exprt for a symbol.
Definition at line 121 of file symbol.cpp.
| source_locationt symbolt::location |
| irep_idt symbolt::module |
| irep_idt symbolt::pretty_name |