Symbol table entry.
More...
#include <symbol.h>
Symbol table entry.
This is a symbol in the symbol table, stored in an object of type symbol_tablet.
Definition at line 27 of file symbol.h.
◆ symbolt() [1/2]
◆ symbolt() [2/2]
◆ display_name()
const irep_idt& symbolt::display_name |
( |
| ) |
const |
|
inline |
Return language specific display name if present.
Definition at line 55 of file symbol.h.
◆ is_compiled()
bool symbolt::is_compiled |
( |
| ) |
const |
|
inline |
Returns true iff the the symbol's value has been compiled to a goto program.
Definition at line 113 of file symbol.h.
◆ is_function()
bool symbolt::is_function |
( |
| ) |
const |
|
inline |
◆ is_shared()
bool symbolt::is_shared |
( |
| ) |
const |
|
inline |
◆ is_well_formed()
bool symbolt::is_well_formed |
( |
| ) |
const |
Check that a symbol is well formed.
Check that the instance object is well formed.
- Returns
- true if well-formed; false otherwise.
Definition at line 128 of file symbol.cpp.
◆ operator!=()
◆ operator==()
bool symbolt::operator== |
( |
const symbolt & |
other | ) |
const |
◆ set_compiled()
void symbolt::set_compiled |
( |
| ) |
|
|
inline |
Set the symbol's value to "compiled"; to be used once the code-typed value has been converted to a goto program.
Definition at line 120 of file symbol.h.
◆ show()
void symbolt::show |
( |
std::ostream & |
out | ) |
const |
Dump the state of a symbol object to a given output stream.
- Parameters
-
out | The stream to output object state to. |
Definition at line 19 of file symbol.cpp.
◆ swap()
Swap values between two symbols.
- Parameters
-
b | The second symbol to swap values with. |
Definition at line 85 of file symbol.cpp.
◆ symbol_expr()
◆ base_name
Base (non-scoped) name.
Definition at line 46 of file symbol.h.
◆ is_auxiliary
bool symbolt::is_auxiliary = false |
◆ is_exported
bool symbolt::is_exported = false |
◆ is_extern
bool symbolt::is_extern = false |
◆ is_file_local
bool symbolt::is_file_local = false |
◆ is_input
bool symbolt::is_input = false |
◆ is_lvalue
bool symbolt::is_lvalue = false |
◆ is_macro
bool symbolt::is_macro = false |
◆ is_output
bool symbolt::is_output = false |
◆ is_parameter
bool symbolt::is_parameter = false |
◆ is_property
bool symbolt::is_property = false |
◆ is_state_var
bool symbolt::is_state_var = false |
◆ is_static_lifetime
bool symbolt::is_static_lifetime = false |
◆ is_thread_local
bool symbolt::is_thread_local = false |
◆ is_type
bool symbolt::is_type = false |
◆ is_volatile
bool symbolt::is_volatile = false |
◆ is_weak
bool symbolt::is_weak = false |
◆ location
Source code location of definition of symbol.
Definition at line 37 of file symbol.h.
◆ mode
Language mode.
Definition at line 49 of file symbol.h.
◆ module
Name of module the symbol belongs to.
Definition at line 43 of file symbol.h.
◆ name
The unique identifier.
Definition at line 40 of file symbol.h.
◆ pretty_name
Language-specific display name.
Definition at line 52 of file symbol.h.
◆ type
Type of symbol.
Definition at line 31 of file symbol.h.
◆ value
Initial value of symbol.
Definition at line 34 of file symbol.h.
The documentation for this class was generated from the following files:
- /home/runner/work/cbmc/cbmc/src/util/symbol.h
- /home/runner/work/cbmc/cbmc/src/util/symbol.cpp