File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,9 @@ class dump_ct
35
35
copied_symbol_table (_ns.get_symbol_table()),
36
36
ns (copied_symbol_table),
37
37
language (factory()),
38
- harness (include_harness)
38
+ harness (include_harness),
39
+ system_symbols (use_system_headers)
39
40
{
40
- if (use_system_headers)
41
- system_symbols=system_library_symbolst ();
42
41
system_symbols.set_use_all_headers (use_all_headers);
43
42
}
44
43
Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ Author: Thomas Kiley
17
17
#include < util/type.h>
18
18
#include < sstream>
19
19
20
- system_library_symbolst::system_library_symbolst ():
20
+ system_library_symbolst::system_library_symbolst (bool init ):
21
21
use_all_headers(false )
22
22
{
23
- init_system_library_map ();
23
+ if (init)
24
+ init_system_library_map ();
24
25
}
25
26
26
27
// / To generate a map of header file names -> list of symbols The symbol names
@@ -220,13 +221,7 @@ void system_library_symbolst::init_system_library_map()
220
221
{
221
222
" __error" , " __errno_location" , " __errno"
222
223
};
223
- add_to_system_library (" errno.c" , errno_syms);
224
-
225
- std::list<irep_idt> noop_syms=
226
- {
227
- " __noop"
228
- };
229
- add_to_system_library (" noop.c" , noop_syms);
224
+ add_to_system_library (" errno.h" , errno_syms);
230
225
231
226
#if 0
232
227
// sys/types.h
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Author: Thomas Kiley
13
13
#define CPROVER_GOTO_PROGRAMS_SYSTEM_LIBRARY_SYMBOLS_H
14
14
15
15
#include < list>
16
+ #include < map>
16
17
#include < set>
17
18
#include < string>
18
19
#include < util/irep.h>
@@ -24,7 +25,12 @@ class typet;
24
25
class system_library_symbolst
25
26
{
26
27
public:
27
- system_library_symbolst ();
28
+ explicit system_library_symbolst (bool init);
29
+
30
+ system_library_symbolst ():
31
+ system_library_symbolst (true ) // NOLINT(runtime/explicit)
32
+ {
33
+ }
28
34
29
35
bool is_symbol_internal_symbol (
30
36
const symbolt &symbol,
You can’t perform that action at this time.
0 commit comments