10 #ifndef CPROVER_ANSI_C_EXPR2C_H
11 #define CPROVER_ANSI_C_EXPR2C_H
94 const std::string &identifier,
Base class for all expressions.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
The type of an expression, extends irept.
std::string type2c(const typet &type, const namespacet &ns)
std::string expr2c(const exprt &expr, const namespacet &ns)
Used for configuring the behaviour of expr2c and type2c.
bool print_enum_int_value
When printing an enum-typed constant, print the integer representation.
static expr2c_configurationt clean_configuration
This prints compilable C that loses some of the internal details of the GOTO program.
expr2c_configurationt(const bool include_struct_padding_components, const bool print_struct_body_in_type, const bool include_array_size, const std::string &true_string, const std::string &false_string, const bool use_library_macros, const bool print_enum_int_value, const bool expand_typedef)
bool expand_typedef
Print the expanded type instead of a typedef name, even when a typedef is present.
static expr2c_configurationt default_configuration
This prints a human readable C like syntax that closely mirrors the internals of the GOTO program.
std::string true_string
This is the string that will be printed for the true boolean expression.
bool print_struct_body_in_type
When printing a struct_typet, should the components of the struct be printed inline.
bool use_library_macros
This is the string that will be printed for null pointers.
bool include_struct_padding_components
When printing struct_typet or struct_exprt, include the artificial padding components introduced to k...
std::string false_string
This is the string that will be printed for the false boolean expression.
bool include_array_size
When printing array_typet, should the size of the array be printed.