10#ifndef CPROVER_LANGAPI_LANGUAGE_FILE_H
11#define CPROVER_LANGAPI_LANGUAGE_FILE_H
18#include <unordered_set>
65 typedef std::map<std::string, language_filet>
file_mapt;
80 return file_map.emplace(filename, std::move(language_file)).first->second;
87 std::unordered_set<irep_idt> files_methods;
90 if(method.second == language_file)
91 files_methods.insert(method.first);
93 for(
const irep_idt &method_name : files_methods)
128 it->second->convert_lazy_method(
id, symbol_table);
147 const bool keep_file_local);
151 const std::string &module,
152 const bool keep_file_local);
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
bool typecheck_module(symbol_tablet &symbol_table, language_modulet &module, const bool keep_file_local)
std::map< std::string, language_modulet > module_mapt
void show_parse(std::ostream &out)
std::map< std::string, language_filet > file_mapt
bool typecheck(symbol_tablet &symbol_table, const bool keep_file_local=false)
bool interfaces(symbol_tablet &symbol_table)
lazy_method_mapt lazy_method_map
language_filet & add_file(const std::string &filename)
bool can_convert_lazy_method(const irep_idt &id) const
std::map< irep_idt, language_filet * > lazy_method_mapt
void convert_lazy_method(const irep_idt &id, symbol_table_baset &symbol_table)
void remove_file(const std::string &filename)
bool generate_support_functions(symbol_tablet &symbol_table)
language_filet(const std::string &filename)
~language_filet()
To avoid compiler errors, the complete definition of a pointed-to type must be visible at the point a...
void convert_lazy_method(const irep_idt &id, symbol_table_baset &symbol_table)
std::set< std::string > modulest
std::unique_ptr< languaget > language
Class that provides messages with a built-in verbosity 'level'.
The symbol table base class interface.
bool has_symbol(const irep_idt &name) const
Check whether a symbol exists in the symbol table.
#define PRECONDITION(CONDITION)