CBMC
system_library_symbols.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Goto Programs
4 
5 Author: Thomas Kiley
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_PROGRAMS_SYSTEM_LIBRARY_SYMBOLS_H
13 #define CPROVER_GOTO_PROGRAMS_SYSTEM_LIBRARY_SYMBOLS_H
14 
15 #include <list>
16 #include <map>
17 #include <set>
18 #include <string>
19 #include <util/irep.h>
20 
21 class symbolt;
22 class typet;
23 
25 {
26 public:
27  explicit system_library_symbolst(bool init);
28 
30  system_library_symbolst(true) // NOLINT(runtime/explicit)
31  {
32  }
33 
35  const symbolt &symbol,
36  std::set<std::string> &out_system_headers) const;
37 
38  void set_use_all_headers(bool use)
39  {
40  use_all_headers=use;
41  }
42 
43 private:
45 
47  irep_idt header_file,
48  std::list<irep_idt> symbols);
49 
50  std::map<irep_idt, irep_idt> system_library_map;
52 };
53 
54 #endif // CPROVER_GOTO_PROGRAMS_SYSTEM_LIBRARY_SYMBOLS_H
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:36
system_library_symbolst
Definition: system_library_symbols.h:24
typet
The type of an expression, extends irept.
Definition: type.h:28
system_library_symbolst::init_system_library_map
void init_system_library_map()
To generate a map of header file names -> list of symbols The symbol names are reserved as the header...
Definition: system_library_symbols.cpp:30
system_library_symbolst::use_all_headers
bool use_all_headers
Definition: system_library_symbols.h:51
system_library_symbolst::system_library_symbolst
system_library_symbolst()
Definition: system_library_symbols.h:29
system_library_symbolst::system_library_map
std::map< irep_idt, irep_idt > system_library_map
Definition: system_library_symbols.h:50
system_library_symbolst::set_use_all_headers
void set_use_all_headers(bool use)
Definition: system_library_symbols.h:38
symbolt
Symbol table entry.
Definition: symbol.h:27
system_library_symbolst::is_symbol_internal_symbol
bool is_symbol_internal_symbol(const symbolt &symbol, std::set< std::string > &out_system_headers) const
To find out if a symbol is an internal symbol.
Definition: system_library_symbols.cpp:261
system_library_symbolst::add_to_system_library
void add_to_system_library(irep_idt header_file, std::list< irep_idt > symbols)
To add the symbols from a specific header file to the system library map.
Definition: system_library_symbols.cpp:246
irep.h