20
20
class goto_program2codet
21
21
{
22
22
typedef std::list<irep_idt> id_listt;
23
- typedef std::unordered_set<irep_idt, irep_id_hash> id_sett;
24
23
typedef std::map<goto_programt::const_targett, goto_programt::const_targett>
25
24
loopt;
26
25
typedef std::unordered_map<irep_idt, unsigned , irep_id_hash> dead_mapt;
@@ -47,23 +46,23 @@ class goto_program2codet
47
46
48
47
public:
49
48
goto_program2codet (
50
- const irep_idt &identifier,
51
- const goto_programt &_goto_program,
52
- symbol_tablet &_symbol_table,
53
- code_blockt &_dest,
54
- id_listt &_local_static,
55
- id_listt &_type_names,
56
- const id_sett &_typedef_names,
57
- std::set<std::string> &_system_headers):
58
- func_name (identifier),
59
- goto_program (_goto_program),
60
- symbol_table (_symbol_table),
61
- ns (_symbol_table),
62
- toplevel_block (_dest),
63
- local_static (_local_static),
64
- type_names (_type_names),
65
- typedef_names (_typedef_names),
66
- system_headers (_system_headers)
49
+ const irep_idt &identifier,
50
+ const goto_programt &_goto_program,
51
+ symbol_tablet &_symbol_table,
52
+ code_blockt &_dest,
53
+ id_listt &_local_static,
54
+ id_listt &_type_names,
55
+ const unordered_id_sett &_typedef_names,
56
+ std::set<std::string> &_system_headers)
57
+ : func_name(identifier),
58
+ goto_program (_goto_program),
59
+ symbol_table(_symbol_table),
60
+ ns(_symbol_table),
61
+ toplevel_block(_dest),
62
+ local_static(_local_static),
63
+ type_names(_type_names),
64
+ typedef_names(_typedef_names),
65
+ system_headers(_system_headers)
67
66
{
68
67
assert (local_static.empty ());
69
68
@@ -84,18 +83,18 @@ class goto_program2codet
84
83
code_blockt &toplevel_block;
85
84
id_listt &local_static;
86
85
id_listt &type_names;
87
- const id_sett &typedef_names;
86
+ const unordered_id_sett &typedef_names;
88
87
std::set<std::string> &system_headers;
89
88
std::unordered_set<exprt, irep_hash> va_list_expr;
90
89
91
90
natural_loopst loops;
92
91
loopt loop_map;
93
- id_sett labels_in_use;
92
+ unordered_id_sett labels_in_use;
94
93
dead_mapt dead_map;
95
94
loop_last_stackt loop_last_stack;
96
- id_sett local_static_set;
97
- id_sett type_names_set;
98
- id_sett const_removed;
95
+ unordered_id_sett local_static_set;
96
+ unordered_id_sett type_names_set;
97
+ unordered_id_sett const_removed;
99
98
100
99
void build_loop_map ();
101
100
void build_dead_map ();
0 commit comments