Loading...
Searching...
No Matches
Symbol table entry.
More...
#include <symbol.h>
+ Inheritance diagram for symbolt:
+ Collaboration diagram for symbolt:
Return language specific display name if present.
Swap values between two symbols.
Dump the state of a symbol object to a given output stream.
Returns true iff the the symbol's value has been compiled to a goto program.
Set the symbol's value to "compiled"; to be used once the code-typed value has been converted to a goto program.
Check that a symbol is well formed.
Type of symbol.
Initial value of symbol.
Source code location of definition of symbol.
The unique identifier.
Name of module the symbol belongs to.
Language mode.
Language-specific display name.
Detailed Description
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.
Constructor & Destructor Documentation
◆ symbolt() [1/2]
symbolt::symbolt
(
)
inline
◆ symbolt() [2/2]
Member Function Documentation
◆ display_name()
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==()
◆ 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()
Member Data Documentation
◆ base_name
Name of module the symbol belongs to.
Base (non-scoped) name
Definition at line 46 of file symbol.h.
◆ is_auxiliary
◆ is_exported
◆ is_extern
◆ is_file_local
◆ is_input
◆ is_lvalue
◆ is_macro
◆ is_output
◆ is_parameter
◆ is_property
◆ is_state_var
◆ is_static_lifetime
◆ is_thread_local
◆ is_type
◆ is_volatile
◆ is_weak
◆ 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.
◆ 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