28 template <
typename maybe_lazy_goto_modelt>
32 maybe_lazy_goto_modelt &goto_model,
34 :
messaget(message_handler), options(options), goto_model(goto_model)
44 template<
typename maybe_lazy_goto_modelt>
47 const irep_idt &mode=get_entry_point_mode();
56 remove_existing_entry_point();
72 template<
typename maybe_lazy_goto_modelt>
76 const symbolt ¤t_entry_point=
78 return current_entry_point.
mode;
83 template<
typename maybe_lazy_goto_modelt>
91 std::vector<irep_idt> entry_point_symbols;
92 for(
const auto &symbol_entry : goto_model.symbol_table.symbols)
94 const bool is_entry_point_symbol=
99 if(is_entry_point_symbol)
100 entry_point_symbols.push_back(symbol_entry.first);
103 for(
const irep_idt &entry_point_symbol : entry_point_symbols)
105 goto_model.symbol_table.remove(entry_point_symbol);
Goto Programs Author: Thomas Kiley, thomas@diffblue.com.
const std::string & id2string(const irep_idt &d)
irep_idt mode
Language mode.
std::unique_ptr< languaget > get_language_from_mode(const irep_idt &mode)
Get the language corresponding to the given mode.
irep_idt get_entry_point_mode() const
Find out the mode of the current entry point to determine the mode of the replacement entry point...
Abstract interface to support a programming language.
bool has_prefix(const std::string &s, const std::string &prefix)
virtual bool generate_support_functions(symbol_tablet &symbol_table)=0
Create language-specific support functions, such as __CPROVER_start, __CPROVER_initialize and languag...
virtual void set_message_handler(message_handlert &_message_handler)
Class that provides messages with a built-in verbosity 'level'.
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
bool operator()()
To rebuild the _start function in the event the program was compiled into GOTO with a different entry...
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
void remove_existing_entry_point()
Eliminate the existing entry point function symbol and any symbols created in that scope from the sym...
rebuild_goto_start_function_baset(const optionst &options, maybe_lazy_goto_modelt &goto_model, message_handlert &message_handler)
To rebuild the _start function in the event the program was compiled into GOTO with a different entry...
virtual void set_language_options(const optionst &)
Set language-specific options.