35 language->set_language_options(options, message_handler);
41 const symbolt ¤t_entry_point =
43 return current_entry_point.
mode;
52 std::vector<irep_idt> entry_point_symbols;
53 for(
const auto &symbol_entry : symbol_table.
symbols)
55 const bool is_entry_point_symbol=
60 if(is_entry_point_symbol)
61 entry_point_symbols.push_back(symbol_entry.first);
64 for(
const irep_idt &entry_point_symbol : entry_point_symbols)
66 symbol_table.
remove(entry_point_symbol);
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
The symbol table base class interface.
bool remove(const irep_idt &name)
Remove a symbol from the symbol table.
const symbolst & symbols
Read-only field, used to look up symbols given their names.
const symbolt & lookup_ref(const irep_idt &name) const
Find a symbol in the symbol table for read-only access.
irep_idt mode
Language mode.
bool has_prefix(const std::string &s, const std::string &prefix)
Goto Programs with Functions.
const std::string & id2string(const irep_idt &d)
Abstract interface to support a programming language.
std::unique_ptr< languaget > get_language_from_mode(const irep_idt &mode)
Get the language corresponding to the given mode.
void remove_existing_entry_point(symbol_table_baset &symbol_table)
Eliminate the existing entry point function symbol and any symbols created in that scope from the sym...
std::unique_ptr< languaget > get_entry_point_language(const symbol_table_baset &symbol_table, const optionst &options, message_handlert &message_handler)
Find the language corresponding to the __CPROVER_start function.
const irep_idt & get_entry_point_mode(const symbol_table_baset &symbol_table)
Find out the mode of the current entry point to determine the mode of the replacement entry point.
Goto Programs Author: Thomas Kiley, thomas@diffblue.com.
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.