Skip to content

Commit 7742d69

Browse files
Use id_usett consistently
1 parent e508b02 commit 7742d69

26 files changed

+51
-54
lines changed

src/analyses/dirty.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class incremental_dirtyt
130130

131131
private:
132132
dirtyt dirty;
133-
std::unordered_set<irep_idt, irep_id_hash> dirty_processed_functions;
133+
id_usett dirty_processed_functions;
134134
};
135135

136136
#endif // CPROVER_ANALYSES_DIRTY_H

src/ansi-c/c_typecheck_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ void c_typecheck_baset::typecheck_compound_body(
877877
// scan for duplicate members
878878

879879
{
880-
std::unordered_set<irep_idt, irep_id_hash> members;
880+
id_usett members;
881881

882882
for(struct_union_typet::componentst::iterator
883883
it=components.begin();

src/ansi-c/expr2c_class.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ class expr2ct
6464

6565
static std::string indent_str(unsigned indent);
6666

67-
std::unordered_map<irep_idt,
68-
std::unordered_set<irep_idt, irep_id_hash>,
69-
irep_id_hash> ns_collision;
67+
std::unordered_map<irep_idt, id_usett, irep_id_hash> ns_collision;
7068
std::unordered_map<irep_idt, irep_idt, irep_id_hash> shorthands;
7169

7270
unsigned sizeof_nesting;

src/cbmc/symex_bmc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class symex_bmct: public goto_symext
147147

148148
virtual void no_body(const irep_idt &identifier);
149149

150-
std::unordered_set<irep_idt, irep_id_hash> body_warnings;
150+
id_usett body_warnings;
151151

152152
symex_coveraget symex_coverage;
153153
};

src/goto-instrument/count_eloc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Date: December 2012
2121

2222
#include <goto-programs/cfg.h>
2323

24-
typedef std::unordered_set<irep_idt, irep_id_hash> linest;
24+
typedef id_usett linest;
2525
typedef std::unordered_map<irep_idt, linest, irep_id_hash> filest;
2626
typedef std::unordered_map<irep_idt, filest, irep_id_hash> working_dirst;
2727

src/goto-instrument/dump_c.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ void dump_ct::cleanup_decl(
613613

614614
tmp.add_instruction(END_FUNCTION);
615615

616-
std::unordered_set<irep_idt, irep_id_hash> typedef_names;
616+
id_usett typedef_names;
617617
for(const auto &td : typedef_map)
618618
typedef_names.insert(td.first);
619619

@@ -640,7 +640,7 @@ void dump_ct::cleanup_decl(
640640
/// function declarations or struct definitions
641641
void dump_ct::collect_typedefs(const typet &type, bool early)
642642
{
643-
std::unordered_set<irep_idt, irep_id_hash> deps;
643+
id_usett deps;
644644
collect_typedefs_rec(type, early, deps);
645645
}
646646

@@ -654,12 +654,12 @@ void dump_ct::collect_typedefs(const typet &type, bool early)
654654
void dump_ct::collect_typedefs_rec(
655655
const typet &type,
656656
bool early,
657-
std::unordered_set<irep_idt, irep_id_hash> &dependencies)
657+
id_usett &dependencies)
658658
{
659659
if(system_symbols.is_type_internal(type, system_headers))
660660
return;
661661

662-
std::unordered_set<irep_idt, irep_id_hash> local_deps;
662+
id_usett local_deps;
663663

664664
if(type.id()==ID_code)
665665
{
@@ -985,7 +985,7 @@ void dump_ct::convert_function_declaration(
985985
code_blockt b;
986986
std::list<irep_idt> type_decls, local_static;
987987

988-
std::unordered_set<irep_idt, irep_id_hash> typedef_names;
988+
id_usett typedef_names;
989989
for(const auto &td : typedef_map)
990990
typedef_names.insert(td.first);
991991

src/goto-instrument/dump_c_class.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class dump_ct
5252
std::unique_ptr<languaget> language;
5353
const bool harness;
5454

55-
typedef std::unordered_set<irep_idt, irep_id_hash> convertedt;
55+
typedef id_usett convertedt;
5656
convertedt converted_compound, converted_global, converted_enum;
5757

5858
std::set<std::string> system_headers;
@@ -68,7 +68,7 @@ class dump_ct
6868
irep_idt typedef_name;
6969
std::string type_decl_str;
7070
bool early;
71-
std::unordered_set<irep_idt, irep_id_hash> dependencies;
71+
id_usett dependencies;
7272

7373
explicit typedef_infot(const irep_idt &name):
7474
typedef_name(name),
@@ -108,7 +108,7 @@ class dump_ct
108108
void collect_typedefs_rec(
109109
const typet &type,
110110
bool early,
111-
std::unordered_set<irep_idt, irep_id_hash> &dependencies);
111+
id_usett &dependencies);
112112
void gather_global_typedefs();
113113
void dump_typedefs(std::ostream &os) const;
114114

src/goto-programs/goto_inline_class.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ class goto_inlinet:public messaget
193193
typedef goto_functionst::function_mapt cachet;
194194
cachet cache;
195195

196-
typedef std::unordered_set<irep_idt, irep_id_hash> finished_sett;
196+
typedef id_usett finished_sett;
197197
finished_sett finished_set;
198198

199-
typedef std::unordered_set<irep_idt, irep_id_hash> recursion_sett;
199+
typedef id_usett recursion_sett;
200200
recursion_sett recursion_set;
201201

202-
typedef std::unordered_set<irep_idt, irep_id_hash> no_body_sett;
202+
typedef id_usett no_body_sett;
203203
no_body_sett no_body_set;
204204
};
205205

src/goto-programs/lazy_goto_functions_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class lazy_goto_functions_mapt final
6161
/// Names of functions that are already fully available in the programt state.
6262
/// \remarks These functions do not need processing before being returned
6363
/// whenever they are requested
64-
mutable std::unordered_set<irep_idt, irep_id_hash> processed_functions;
64+
mutable id_usett processed_functions;
6565

6666
language_filest &language_files;
6767
symbol_tablet &symbol_table;

src/goto-programs/link_goto_model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static bool link_functions(
4747
const symbol_tablet &src_symbol_table,
4848
goto_functionst &src_functions,
4949
const rename_symbolt &rename_symbol,
50-
const std::unordered_set<irep_idt, irep_id_hash> &weak_symbols,
50+
const id_usett &weak_symbols,
5151
const replace_symbolt &object_type_updates)
5252
{
5353
namespacet ns(dest_symbol_table);

0 commit comments

Comments
 (0)