CBMC
|
Struct for a single variable declaration in Statement List. More...
#include <statement_list_parse_tree.h>
Public Member Functions | |
var_declarationt (const symbol_exprt &symbol) | |
Creates a new. More... | |
Public Attributes | |
symbol_exprt | variable |
Representation of the variable, including identifier and type. More... | |
std::optional< exprt > | default_value |
Optional default value of the variable. More... | |
Struct for a single variable declaration in Statement List.
Includes identifier, type and an optional default value.
Definition at line 31 of file statement_list_parse_tree.h.
|
explicit |
Creates a new.
variable declaration.
symbol | The variable, including type and name. |
Definition at line 125 of file statement_list_parse_tree.cpp.
std::optional<exprt> statement_list_parse_treet::var_declarationt::default_value |
Optional default value of the variable.
Definition at line 36 of file statement_list_parse_tree.h.
symbol_exprt statement_list_parse_treet::var_declarationt::variable |
Representation of the variable, including identifier and type.
Definition at line 34 of file statement_list_parse_tree.h.