diff --git a/src/analyses/call_graph.cpp b/src/analyses/call_graph.cpp index e3abe2fdcc2..c093c531924 100644 --- a/src/analyses/call_graph.cpp +++ b/src/analyses/call_graph.cpp @@ -165,7 +165,7 @@ class function_indicest call_grapht::directed_grapht &graph; public: - std::unordered_map function_indices; + std::unordered_map function_indices; explicit function_indicest(call_grapht::directed_grapht &graph): graph(graph) diff --git a/src/analyses/call_graph.h b/src/analyses/call_graph.h index 262a644ced8..ad3310dea1e 100644 --- a/src/analyses/call_graph.h +++ b/src/analyses/call_graph.h @@ -115,7 +115,7 @@ class call_grapht friend class call_grapht; /// Maps function names onto node indices - std::unordered_map nodes_by_name; + std::unordered_map nodes_by_name; public: /// Find the graph node by function name @@ -124,8 +124,7 @@ class call_grapht optionalt get_node_index(const irep_idt &function) const; /// Type of the node name -> node index map. - typedef - std::unordered_map nodes_by_namet; + typedef std::unordered_map nodes_by_namet; /// Get the node name -> node index map /// \return node-by-name map diff --git a/src/analyses/dirty.h b/src/analyses/dirty.h index a50b8dbcaad..986b4334ed4 100644 --- a/src/analyses/dirty.h +++ b/src/analyses/dirty.h @@ -34,7 +34,6 @@ class dirtyt public: bool initialized; - typedef std::unordered_set id_sett; typedef goto_functionst::goto_functiont goto_functiont; /// \post dirtyt objects that are created through this constructor are not @@ -72,7 +71,7 @@ class dirtyt return operator()(expr.get_identifier()); } - const id_sett &get_dirty_ids() const + const std::unordered_set &get_dirty_ids() const { die_if_uninitialized(); return dirty; @@ -97,7 +96,7 @@ class dirtyt void build(const goto_functiont &goto_function); // variables whose address is taken - id_sett dirty; + std::unordered_set dirty; void find_dirty(const exprt &expr); void find_dirty_address_of(const exprt &expr); @@ -131,7 +130,7 @@ class incremental_dirtyt private: dirtyt dirty; - std::unordered_set dirty_processed_functions; + std::unordered_set dirty_processed_functions; }; #endif // CPROVER_ANALYSES_DIRTY_H diff --git a/src/analyses/invariant_propagation.cpp b/src/analyses/invariant_propagation.cpp index e1dca09f223..9ef31e4f962 100644 --- a/src/analyses/invariant_propagation.cpp +++ b/src/analyses/invariant_propagation.cpp @@ -40,8 +40,7 @@ void invariant_propagationt::add_objects( goto_program.get_decl_identifiers(locals); // cache the list for the locals to speed things up - typedef std::unordered_map - object_cachet; + typedef std::unordered_map object_cachet; object_cachet object_cache; forall_goto_program_instructions(i_it, goto_program) @@ -133,8 +132,7 @@ void invariant_propagationt::add_objects( const goto_programt &goto_program=f_it->second.body; // cache the list for the locals to speed things up - typedef std::unordered_map - object_cachet; + typedef std::unordered_map object_cachet; object_cachet object_cache; forall_goto_program_instructions(i_it, goto_program) diff --git a/src/analyses/reaching_definitions.h b/src/analyses/reaching_definitions.h index 046dae22863..133f81ab04f 100644 --- a/src/analyses/reaching_definitions.h +++ b/src/analyses/reaching_definitions.h @@ -60,7 +60,7 @@ class sparse_bitvector_analysist protected: typedef typename std::map inner_mapt; std::vector values; - std::unordered_map value_map; + std::unordered_map value_map; }; struct reaching_definitiont @@ -191,15 +191,14 @@ class rd_range_domaint:public ai_domain_baset #ifdef USE_DSTRING typedef std::map valuest; #else - typedef std::unordered_map valuest; + typedef std::unordered_map valuest; #endif valuest values; #ifdef USE_DSTRING typedef std::map export_cachet; #else - typedef std::unordered_map - export_cachet; + typedef std::unordered_map export_cachet; #endif mutable export_cachet export_cache; diff --git a/src/ansi-c/ansi_c_scope.h b/src/ansi-c/ansi_c_scope.h index 4095c58ec63..9e83fbc00da 100644 --- a/src/ansi-c/ansi_c_scope.h +++ b/src/ansi-c/ansi_c_scope.h @@ -41,8 +41,7 @@ class ansi_c_scopet public: // This maps "scope names" (tag-X, label-X, X) to // ansi_c_identifiert. - typedef std::unordered_map - name_mapt; + typedef std::unordered_map name_mapt; name_mapt name_map; std::string prefix; diff --git a/src/ansi-c/c_typecheck_base.h b/src/ansi-c/c_typecheck_base.h index cc2b68afa9b..7c2d3b93473 100644 --- a/src/ansi-c/c_typecheck_base.h +++ b/src/ansi-c/c_typecheck_base.h @@ -69,7 +69,7 @@ class c_typecheck_baset: const irep_idt mode; symbolt current_symbol; - typedef std::unordered_map id_type_mapt; + typedef std::unordered_map id_type_mapt; id_type_mapt parameter_map; // overload to use language specific syntax @@ -270,7 +270,7 @@ class c_typecheck_baset: src.id()==ID_real; } - typedef std::unordered_map asm_label_mapt; + typedef std::unordered_map asm_label_mapt; asm_label_mapt asm_label_map; void apply_asm_label(const irep_idt &asm_label, symbolt &symbol); diff --git a/src/ansi-c/c_typecheck_type.cpp b/src/ansi-c/c_typecheck_type.cpp index 5cc151ffac9..0a4d12ba913 100644 --- a/src/ansi-c/c_typecheck_type.cpp +++ b/src/ansi-c/c_typecheck_type.cpp @@ -877,7 +877,7 @@ void c_typecheck_baset::typecheck_compound_body( // scan for duplicate members { - std::unordered_set members; + std::unordered_set members; for(struct_union_typet::componentst::iterator it=components.begin(); diff --git a/src/ansi-c/expr2c.cpp b/src/ansi-c/expr2c.cpp index c97b1a9bdb8..8e723404511 100644 --- a/src/ansi-c/expr2c.cpp +++ b/src/ansi-c/expr2c.cpp @@ -1688,8 +1688,8 @@ std::string expr2ct::convert_symbol( dest=src.op0().get_string(ID_identifier); else { - std::unordered_map::const_iterator - entry=shorthands.find(id); + std::unordered_map::const_iterator entry = + shorthands.find(id); // we might be called from conversion of a type if(entry==shorthands.end()) { diff --git a/src/ansi-c/expr2c_class.h b/src/ansi-c/expr2c_class.h index 0886fb2f523..2e33e21ec9f 100644 --- a/src/ansi-c/expr2c_class.h +++ b/src/ansi-c/expr2c_class.h @@ -64,10 +64,8 @@ class expr2ct static std::string indent_str(unsigned indent); - std::unordered_map, - irep_id_hash> ns_collision; - std::unordered_map shorthands; + std::unordered_map> ns_collision; + std::unordered_map shorthands; unsigned sizeof_nesting; diff --git a/src/ansi-c/type2name.cpp b/src/ansi-c/type2name.cpp index c42b63f5a15..3f1b6e85905 100644 --- a/src/ansi-c/type2name.cpp +++ b/src/ansi-c/type2name.cpp @@ -19,8 +19,7 @@ Author: Daniel Kroening, kroening@cs.cmu.edu #include #include -typedef std::unordered_map, irep_id_hash> - symbol_numbert; +typedef std::unordered_map> symbol_numbert; static std::string type2name( const typet &type, diff --git a/src/cbmc/symex_bmc.h b/src/cbmc/symex_bmc.h index 65cd85880c8..b1b6108de9a 100644 --- a/src/cbmc/symex_bmc.h +++ b/src/cbmc/symex_bmc.h @@ -112,7 +112,7 @@ class symex_bmct: public goto_symext unsigned max_unwind; bool max_unwind_is_set; - typedef std::unordered_map loop_limitst; + typedef std::unordered_map loop_limitst; loop_limitst loop_limits; typedef std::map thread_loop_limitst; @@ -147,7 +147,7 @@ class symex_bmct: public goto_symext virtual void no_body(const irep_idt &identifier); - std::unordered_set body_warnings; + std::unordered_set body_warnings; symex_coveraget symex_coverage; }; diff --git a/src/cpp/cpp_scopes.h b/src/cpp/cpp_scopes.h index ca392497c7d..55c098d0c64 100644 --- a/src/cpp/cpp_scopes.h +++ b/src/cpp/cpp_scopes.h @@ -65,7 +65,7 @@ class cpp_scopest } // mapping from function/class/scope names to their cpp_idt - typedef std::unordered_map id_mapt; + typedef std::unordered_map id_mapt; id_mapt id_map; cpp_scopet *current_scope_ptr; diff --git a/src/cpp/expr2cpp.cpp b/src/cpp/expr2cpp.cpp index f10307f1f2b..7d483bd1b05 100644 --- a/src/cpp/expr2cpp.cpp +++ b/src/cpp/expr2cpp.cpp @@ -43,8 +43,6 @@ class expr2cppt:public expr2ct const typet &src, const qualifierst &qualifiers, const std::string &declarator) override; - - typedef std::unordered_set id_sett; }; std::string expr2cppt::convert_struct( diff --git a/src/goto-diff/goto_diff.h b/src/goto-diff/goto_diff.h index 0c637363e20..72171a76b31 100644 --- a/src/goto-diff/goto_diff.h +++ b/src/goto-diff/goto_diff.h @@ -51,12 +51,11 @@ class goto_difft:public messaget ui_message_handlert::uit ui; unsigned total_functions_count; - typedef std::set irep_id_sett; - irep_id_sett new_functions, modified_functions, deleted_functions; + std::set new_functions, modified_functions, deleted_functions; void output_function_group( const std::string &group_name, - const irep_id_sett &function_group, + const std::set &function_group, const goto_modelt &goto_model) const; void output_function( const irep_idt &function_name, @@ -64,7 +63,7 @@ class goto_difft:public messaget void convert_function_group_json( json_arrayt &result, - const irep_id_sett &function_group, + const std::set &function_group, const goto_modelt &goto_model) const; void convert_function_json( json_objectt &result, diff --git a/src/goto-diff/goto_diff_base.cpp b/src/goto-diff/goto_diff_base.cpp index 49f79b9858d..db3b925d702 100644 --- a/src/goto-diff/goto_diff_base.cpp +++ b/src/goto-diff/goto_diff_base.cpp @@ -64,7 +64,7 @@ void goto_difft::output_functions() const /// \param goto_model: the goto model void goto_difft::output_function_group( const std::string &group_name, - const irep_id_sett &function_group, + const std::set &function_group, const goto_modelt &goto_model) const { result() << group_name << ":\n"; @@ -113,7 +113,7 @@ void goto_difft::output_function( /// \param goto_model: the goto model void goto_difft::convert_function_group_json( json_arrayt &result, - const irep_id_sett &function_group, + const std::set &function_group, const goto_modelt &goto_model) const { for(const auto &function_name : function_group) diff --git a/src/goto-instrument/code_contracts.cpp b/src/goto-instrument/code_contracts.cpp index 5f40b8e35c5..256149084eb 100644 --- a/src/goto-instrument/code_contracts.cpp +++ b/src/goto-instrument/code_contracts.cpp @@ -45,8 +45,7 @@ class code_contractst unsigned temporary_counter; - typedef std::unordered_set id_sett; - id_sett summarized; + std::unordered_set summarized; void code_contracts(goto_functionst::goto_functiont &goto_function); @@ -389,10 +388,8 @@ void code_contractst::operator()() goto_functions.function_map.find(CPROVER_PREFIX "initialize"); assert(i_it!=goto_functions.function_map.end()); - for(id_sett::const_iterator it=summarized.begin(); - it!=summarized.end(); - ++it) - add_contract_check(*it, i_it->second.body); + for(const auto &contract : summarized) + add_contract_check(contract, i_it->second.body); // remove skips remove_skip(i_it->second.body); diff --git a/src/goto-instrument/count_eloc.cpp b/src/goto-instrument/count_eloc.cpp index ecd9c15ffbb..e6162a79b19 100644 --- a/src/goto-instrument/count_eloc.cpp +++ b/src/goto-instrument/count_eloc.cpp @@ -21,9 +21,9 @@ Date: December 2012 #include -typedef std::unordered_set linest; -typedef std::unordered_map filest; -typedef std::unordered_map working_dirst; +typedef std::unordered_set linest; +typedef std::unordered_map filest; +typedef std::unordered_map working_dirst; static void collect_eloc( const goto_modelt &goto_model, diff --git a/src/goto-instrument/cover_basic_blocks.h b/src/goto-instrument/cover_basic_blocks.h index 95ac68e4d23..b36da3039cf 100644 --- a/src/goto-instrument/cover_basic_blocks.h +++ b/src/goto-instrument/cover_basic_blocks.h @@ -125,7 +125,7 @@ class cover_basic_blocks_javat final : public cover_blocks_baset // map block number to its location std::vector block_locations; // map java indexes to block indexes - std::unordered_map index_to_block; + std::unordered_map index_to_block; public: explicit cover_basic_blocks_javat(const goto_programt &_goto_program); diff --git a/src/goto-instrument/dump_c.cpp b/src/goto-instrument/dump_c.cpp index 557a8a4e99d..c36cca90179 100644 --- a/src/goto-instrument/dump_c.cpp +++ b/src/goto-instrument/dump_c.cpp @@ -87,7 +87,7 @@ void dump_ct::operator()(std::ostream &os) copied_symbol_table.add(symbol_pair.second); } - typedef std::unordered_map unique_tagst; + typedef std::unordered_map unique_tagst; unique_tagst unique_tags; // add tags to anonymous union/struct/enum, @@ -613,7 +613,7 @@ void dump_ct::cleanup_decl( tmp.add_instruction(END_FUNCTION); - std::unordered_set typedef_names; + std::unordered_set typedef_names; for(const auto &td : typedef_map) typedef_names.insert(td.first); @@ -640,7 +640,7 @@ void dump_ct::cleanup_decl( /// function declarations or struct definitions void dump_ct::collect_typedefs(const typet &type, bool early) { - std::unordered_set deps; + std::unordered_set deps; collect_typedefs_rec(type, early, deps); } @@ -654,12 +654,12 @@ void dump_ct::collect_typedefs(const typet &type, bool early) void dump_ct::collect_typedefs_rec( const typet &type, bool early, - std::unordered_set &dependencies) + std::unordered_set &dependencies) { if(system_symbols.is_type_internal(type, system_headers)) return; - std::unordered_set local_deps; + std::unordered_set local_deps; if(type.id()==ID_code) { @@ -769,10 +769,9 @@ void dump_ct::dump_typedefs(std::ostream &os) const // output std::map to_insert; - typedef std::unordered_set id_sett; - id_sett typedefs_done; - std::unordered_map - forward_deps, reverse_deps; + std::unordered_set typedefs_done; + std::unordered_map> forward_deps, + reverse_deps; for(const auto &td : typedef_map) if(!td.second.type_decl_str.empty()) @@ -805,8 +804,9 @@ void dump_ct::dump_typedefs(std::ostream &os) const continue; // reduce remaining dependencies - id_sett &r_deps=r_it->second; - for(id_sett::iterator it=r_deps.begin(); it!=r_deps.end(); ) // no ++it + std::unordered_set &r_deps = r_it->second; + for(std::unordered_set::iterator it = r_deps.begin(); + it != r_deps.end();) // no ++it { auto f_it=forward_deps.find(*it); if(f_it==forward_deps.end()) // might be done already @@ -816,7 +816,7 @@ void dump_ct::dump_typedefs(std::ostream &os) const } // update dependencies - id_sett &f_deps=f_it->second; + std::unordered_set &f_deps = f_it->second; PRECONDITION(!f_deps.empty()); PRECONDITION(f_deps.find(t.typedef_name)!=f_deps.end()); f_deps.erase(t.typedef_name); @@ -986,7 +986,7 @@ void dump_ct::convert_function_declaration( code_blockt b; std::list type_decls, local_static; - std::unordered_set typedef_names; + std::unordered_set typedef_names; for(const auto &td : typedef_map) typedef_names.insert(td.first); diff --git a/src/goto-instrument/dump_c_class.h b/src/goto-instrument/dump_c_class.h index 40d32b9a64e..10368d9e044 100644 --- a/src/goto-instrument/dump_c_class.h +++ b/src/goto-instrument/dump_c_class.h @@ -52,15 +52,14 @@ class dump_ct std::unique_ptr language; const bool harness; - typedef std::unordered_set convertedt; + typedef std::unordered_set convertedt; convertedt converted_compound, converted_global, converted_enum; std::set system_headers; system_library_symbolst system_symbols; - typedef std::unordered_map - declared_enum_constants_mapt; + typedef std::unordered_map declared_enum_constants_mapt; declared_enum_constants_mapt declared_enum_constants; struct typedef_infot @@ -68,7 +67,7 @@ class dump_ct irep_idt typedef_name; std::string type_decl_str; bool early; - std::unordered_set dependencies; + std::unordered_set dependencies; explicit typedef_infot(const irep_idt &name): typedef_name(name), @@ -108,7 +107,7 @@ class dump_ct void collect_typedefs_rec( const typet &type, bool early, - std::unordered_set &dependencies); + std::unordered_set &dependencies); void gather_global_typedefs(); void dump_typedefs(std::ostream &os) const; @@ -129,8 +128,7 @@ class dump_ct const typet &type, std::ostream &os); - typedef std::unordered_map - local_static_declst; + typedef std::unordered_map local_static_declst; void convert_global_variable( const symbolt &symbol, diff --git a/src/goto-instrument/full_slicer_class.h b/src/goto-instrument/full_slicer_class.h index de1c50b54f4..852d3c0c3b6 100644 --- a/src/goto-instrument/full_slicer_class.h +++ b/src/goto-instrument/full_slicer_class.h @@ -62,7 +62,7 @@ class full_slicert typedef std::vector dep_node_to_cfgt; typedef std::stack queuet; typedef std::list jumpst; - typedef std::unordered_map decl_deadt; + typedef std::unordered_map decl_deadt; void fixedpoint( goto_functionst &goto_functions, diff --git a/src/goto-instrument/goto_program2code.h b/src/goto-instrument/goto_program2code.h index 2093774b709..3420c8e29c6 100644 --- a/src/goto-instrument/goto_program2code.h +++ b/src/goto-instrument/goto_program2code.h @@ -20,10 +20,9 @@ Author: Daniel Kroening, kroening@kroening.com class goto_program2codet { typedef std::list id_listt; - typedef std::unordered_set id_sett; typedef std::map loopt; - typedef std::unordered_map dead_mapt; + typedef std::unordered_map dead_mapt; typedef std::list > loop_last_stackt; @@ -47,23 +46,23 @@ class goto_program2codet public: goto_program2codet( - const irep_idt &identifier, - const goto_programt &_goto_program, - symbol_tablet &_symbol_table, - code_blockt &_dest, - id_listt &_local_static, - id_listt &_type_names, - const id_sett &_typedef_names, - std::set &_system_headers): - func_name(identifier), - goto_program(_goto_program), - symbol_table(_symbol_table), - ns(_symbol_table), - toplevel_block(_dest), - local_static(_local_static), - type_names(_type_names), - typedef_names(_typedef_names), - system_headers(_system_headers) + const irep_idt &identifier, + const goto_programt &_goto_program, + symbol_tablet &_symbol_table, + code_blockt &_dest, + id_listt &_local_static, + id_listt &_type_names, + const std::unordered_set &_typedef_names, + std::set &_system_headers) + : func_name(identifier), + goto_program(_goto_program), + symbol_table(_symbol_table), + ns(_symbol_table), + toplevel_block(_dest), + local_static(_local_static), + type_names(_type_names), + typedef_names(_typedef_names), + system_headers(_system_headers) { assert(local_static.empty()); @@ -84,18 +83,18 @@ class goto_program2codet code_blockt &toplevel_block; id_listt &local_static; id_listt &type_names; - const id_sett &typedef_names; + const std::unordered_set &typedef_names; std::set &system_headers; std::unordered_set va_list_expr; natural_loopst loops; loopt loop_map; - id_sett labels_in_use; + std::unordered_set labels_in_use; dead_mapt dead_map; loop_last_stackt loop_last_stack; - id_sett local_static_set; - id_sett type_names_set; - id_sett const_removed; + std::unordered_set local_static_set; + std::unordered_set type_names_set; + std::unordered_set const_removed; void build_loop_map(); void build_dead_map(); diff --git a/src/goto-instrument/rw_set.h b/src/goto-instrument/rw_set.h index 6de564f0783..69072389347 100644 --- a/src/goto-instrument/rw_set.h +++ b/src/goto-instrument/rw_set.h @@ -53,7 +53,7 @@ class rw_set_baset } }; - typedef std::unordered_map entriest; + typedef std::unordered_map entriest; entriest r_entries, w_entries; void swap(rw_set_baset &other) diff --git a/src/goto-programs/class_hierarchy.h b/src/goto-programs/class_hierarchy.h index c2fd3ec464f..9b926d25e18 100644 --- a/src/goto-programs/class_hierarchy.h +++ b/src/goto-programs/class_hierarchy.h @@ -75,8 +75,7 @@ class class_hierarchy_grapht : public grapht { public: /// Maps class identifiers onto node indices - typedef std::unordered_map - nodes_by_namet; + typedef std::unordered_map nodes_by_namet; void populate(const symbol_tablet &); diff --git a/src/goto-programs/goto_inline_class.h b/src/goto-programs/goto_inline_class.h index de59b889cac..eea4a63eba4 100644 --- a/src/goto-programs/goto_inline_class.h +++ b/src/goto-programs/goto_inline_class.h @@ -193,13 +193,13 @@ class goto_inlinet:public messaget typedef goto_functionst::function_mapt cachet; cachet cache; - typedef std::unordered_set finished_sett; + typedef std::unordered_set finished_sett; finished_sett finished_set; - typedef std::unordered_set recursion_sett; + typedef std::unordered_set recursion_sett; recursion_sett recursion_set; - typedef std::unordered_set no_body_sett; + typedef std::unordered_set no_body_sett; no_body_sett no_body_set; }; diff --git a/src/goto-programs/interpreter_class.h b/src/goto-programs/interpreter_class.h index a3dbd316f9b..b8e2e4cc437 100644 --- a/src/goto-programs/interpreter_class.h +++ b/src/goto-programs/interpreter_class.h @@ -104,7 +104,7 @@ class interpretert:public messaget const goto_functionst &goto_functions; - typedef std::unordered_map memory_mapt; + typedef std::unordered_map memory_mapt; typedef std::map inverse_memory_mapt; memory_mapt memory_map; inverse_memory_mapt inverse_memory_map; diff --git a/src/goto-programs/lazy_goto_functions_map.h b/src/goto-programs/lazy_goto_functions_map.h index ffdb878916a..1469856cb66 100644 --- a/src/goto-programs/lazy_goto_functions_map.h +++ b/src/goto-programs/lazy_goto_functions_map.h @@ -61,7 +61,7 @@ class lazy_goto_functions_mapt final /// Names of functions that are already fully available in the programt state. /// \remarks These functions do not need processing before being returned /// whenever they are requested - mutable std::unordered_set processed_functions; + mutable std::unordered_set processed_functions; language_filest &language_files; symbol_tablet &symbol_table; diff --git a/src/goto-programs/link_goto_model.cpp b/src/goto-programs/link_goto_model.cpp index 6fd9702cf0e..be7c761cdff 100644 --- a/src/goto-programs/link_goto_model.cpp +++ b/src/goto-programs/link_goto_model.cpp @@ -47,7 +47,7 @@ static bool link_functions( const symbol_tablet &src_symbol_table, goto_functionst &src_functions, const rename_symbolt &rename_symbol, - const std::unordered_set &weak_symbols, + const std::unordered_set &weak_symbols, const replace_symbolt &object_type_updates) { namespacet ns(dest_symbol_table); @@ -158,8 +158,7 @@ void link_goto_model( goto_modelt &src, message_handlert &message_handler) { - typedef std::unordered_set id_sett; - id_sett weak_symbols; + std::unordered_set weak_symbols; for(const auto &symbol_pair : dest.symbol_table.symbols) { diff --git a/src/goto-programs/set_properties.cpp b/src/goto-programs/set_properties.cpp index a79802118ba..19bea8f19fa 100644 --- a/src/goto-programs/set_properties.cpp +++ b/src/goto-programs/set_properties.cpp @@ -16,7 +16,7 @@ Author: Daniel Kroening, kroening@kroening.com void set_properties( goto_programt &goto_program, - std::unordered_set &property_set) + std::unordered_set &property_set) { for(goto_programt::instructionst::iterator it=goto_program.instructions.begin(); @@ -28,8 +28,8 @@ void set_properties( irep_idt property_id=it->source_location.get_property_id(); - std::unordered_set::iterator - c_it=property_set.find(property_id); + std::unordered_set::iterator c_it = + property_set.find(property_id); if(c_it==property_set.end()) it->type=SKIP; @@ -102,7 +102,7 @@ void set_properties( goto_functionst &goto_functions, const std::list &properties) { - std::unordered_set property_set; + std::unordered_set property_set; property_set.insert(properties.begin(), properties.end()); diff --git a/src/goto-programs/string_abstraction.cpp b/src/goto-programs/string_abstraction.cpp index 7790d6bd471..bf97e4c0c5d 100644 --- a/src/goto-programs/string_abstraction.cpp +++ b/src/goto-programs/string_abstraction.cpp @@ -252,8 +252,7 @@ void string_abstractiont::abstract(goto_programt &dest) void string_abstractiont::declare_define_locals(goto_programt &dest) { - typedef std::unordered_map - available_declst; + typedef std::unordered_map available_declst; available_declst available_decls; Forall_goto_program_instructions(it, dest) diff --git a/src/goto-programs/string_abstraction.h b/src/goto-programs/string_abstraction.h index 68949fc6db7..8e5ddef9554 100644 --- a/src/goto-programs/string_abstraction.h +++ b/src/goto-programs/string_abstraction.h @@ -134,7 +134,7 @@ class string_abstractiont:public messaget typet string_struct; goto_programt initialization; - typedef std::unordered_map localst; + typedef std::unordered_map localst; localst locals; void abstract(goto_programt &dest); diff --git a/src/goto-symex/goto_symex_state.h b/src/goto-symex/goto_symex_state.h index fd8e80ed2fd..b30c3a27448 100644 --- a/src/goto-symex/goto_symex_state.h +++ b/src/goto-symex/goto_symex_state.h @@ -192,7 +192,7 @@ class goto_symex_statet final void get_l1_name(exprt &expr) const; // this maps L1 names to (L2) types - typedef std::unordered_map l1_typest; + typedef std::unordered_map l1_typest; l1_typest l1_types; public: @@ -298,8 +298,7 @@ class goto_symex_statet final unsigned count; bool is_recursion; }; - typedef std::unordered_map - loop_iterationst; + typedef std::unordered_map loop_iterationst; loop_iterationst loop_iterations; }; diff --git a/src/goto-symex/partial_order_concurrency.cpp b/src/goto-symex/partial_order_concurrency.cpp index aa5356c0712..bd05a170109 100644 --- a/src/goto-symex/partial_order_concurrency.cpp +++ b/src/goto-symex/partial_order_concurrency.cpp @@ -28,7 +28,7 @@ partial_order_concurrencyt::~partial_order_concurrencyt() void partial_order_concurrencyt::add_init_writes( symex_target_equationt &equation) { - std::unordered_set init_done; + std::unordered_set init_done; bool spawn_seen=false; symex_target_equationt::SSA_stepst init_steps; diff --git a/src/goto-symex/postcondition.cpp b/src/goto-symex/postcondition.cpp index 4383439b72d..2b1e096258c 100644 --- a/src/goto-symex/postcondition.cpp +++ b/src/goto-symex/postcondition.cpp @@ -175,7 +175,7 @@ bool postconditiont::is_used( value_setst::valuest expr_set; value_set.get_value_set(expr.op0(), expr_set, ns); - std::unordered_set symbols; + std::unordered_set symbols; for(value_setst::valuest::const_iterator it=expr_set.begin(); diff --git a/src/goto-symex/precondition.cpp b/src/goto-symex/precondition.cpp index 8b3f9cdf082..69d26cd19f6 100644 --- a/src/goto-symex/precondition.cpp +++ b/src/goto-symex/precondition.cpp @@ -117,7 +117,7 @@ void preconditiont::compute_rec(exprt &dest) value_setst::valuest expr_set; value_sets.get_values(target, dest.op0(), expr_set); - std::unordered_set symbols; + std::unordered_set symbols; for(value_setst::valuest::const_iterator it=expr_set.begin(); diff --git a/src/goto-symex/slice.h b/src/goto-symex/slice.h index ca1111ea648..5d62bd5d92a 100644 --- a/src/goto-symex/slice.h +++ b/src/goto-symex/slice.h @@ -29,7 +29,7 @@ void slice( // Collects "open" variables that are used but not assigned -typedef std::unordered_set symbol_sett; +typedef std::unordered_set symbol_sett; void collect_open_variables( const symex_target_equationt &equation, diff --git a/src/java_bytecode/character_refine_preprocess.h b/src/java_bytecode/character_refine_preprocess.h index 11cfdd3635f..8300d037229 100644 --- a/src/java_bytecode/character_refine_preprocess.h +++ b/src/java_bytecode/character_refine_preprocess.h @@ -36,8 +36,7 @@ class character_refine_preprocesst:public messaget typedef const code_function_callt &conversion_inputt; typedef codet (*conversion_functiont)(conversion_inputt &target); // A table tells us what method to call for each java method signature - std::unordered_map - conversion_table; + std::unordered_map conversion_table; // Conversion functions static exprt expr_of_char_count(const exprt &chr, const typet &type); diff --git a/src/java_bytecode/java_bytecode_language.cpp b/src/java_bytecode/java_bytecode_language.cpp index 0c26b23e2ab..a139b75c613 100644 --- a/src/java_bytecode/java_bytecode_language.cpp +++ b/src/java_bytecode/java_bytecode_language.cpp @@ -819,7 +819,8 @@ const select_pointer_typet & /// \return Populates `methods` with the complete list of lazy methods that are /// available to convert (those which are valid parameters for /// `convert_lazy_method`) -void java_bytecode_languaget::methods_provided(id_sett &methods) const +void java_bytecode_languaget::methods_provided( + std::unordered_set &methods) const { // Add all string solver methods to map string_preprocess.get_all_function_names(methods); diff --git a/src/java_bytecode/java_bytecode_language.h b/src/java_bytecode/java_bytecode_language.h index 9db26385d8f..47d5fb69d82 100644 --- a/src/java_bytecode/java_bytecode_language.h +++ b/src/java_bytecode/java_bytecode_language.h @@ -135,7 +135,8 @@ class java_bytecode_languaget:public languaget std::set extensions() const override; void modules_provided(std::set &modules) override; - virtual void methods_provided(id_sett &methods) const override; + virtual void + methods_provided(std::unordered_set &methods) const override; virtual void convert_lazy_method( const irep_idt &function_id, symbol_table_baset &symbol_table) override; diff --git a/src/java_bytecode/java_object_factory.cpp b/src/java_bytecode/java_object_factory.cpp index f05e6d13e90..feaeb218f6c 100644 --- a/src/java_bytecode/java_object_factory.cpp +++ b/src/java_bytecode/java_object_factory.cpp @@ -52,7 +52,7 @@ class java_object_factoryt /// non-det generator visits a type, the type is added to this set. We forbid /// the non-det initialization when we see the type for the second time in /// this set AND the tree depth becomes >= than the maximum value above. - std::unordered_set recursion_set; + std::unordered_set recursion_set; /// Every time the non-det generator visits a type and the type is generic /// (either a struct or a pointer), the following map is used to store and @@ -462,7 +462,7 @@ void java_object_factoryt::gen_pointer_target_init( class recursion_set_entryt { /// Recursion set to modify - std::unordered_set &recursion_set; + std::unordered_set &recursion_set; /// Entry to erase on destruction, if non-empty irep_idt erase_entry; @@ -470,8 +470,7 @@ class recursion_set_entryt /// Initialize a recursion-set entry owner operating on a given set. /// Initially it does not own any set entry. /// \param _recursion_set: set to operate on. - explicit recursion_set_entryt( - std::unordered_set &_recursion_set) + explicit recursion_set_entryt(std::unordered_set &_recursion_set) : recursion_set(_recursion_set) { } diff --git a/src/java_bytecode/java_static_initializers.cpp b/src/java_bytecode/java_static_initializers.cpp index aeac00275e6..eefa2a42eb7 100644 --- a/src/java_bytecode/java_static_initializers.cpp +++ b/src/java_bytecode/java_static_initializers.cpp @@ -267,7 +267,7 @@ static itertype advance_to_next_key(itertype in, itertype end) /// when it is required. void stub_global_initializer_factoryt::create_stub_global_initializer_symbols( symbol_tablet &symbol_table, - const std::unordered_set &stub_globals_set, + const std::unordered_set &stub_globals_set, synthetic_methods_mapt &synthetic_methods) { // Populate map from class id -> stub globals: diff --git a/src/java_bytecode/java_static_initializers.h b/src/java_bytecode/java_static_initializers.h index 447cbfa5a7e..6b65a29459d 100644 --- a/src/java_bytecode/java_static_initializers.h +++ b/src/java_bytecode/java_static_initializers.h @@ -31,14 +31,13 @@ codet get_clinit_wrapper_body( class stub_global_initializer_factoryt { /// Maps class symbols onto the stub globals that belong to them - typedef std::unordered_multimap - stub_globals_by_classt; + typedef std::unordered_multimap stub_globals_by_classt; stub_globals_by_classt stub_globals_by_class; public: void create_stub_global_initializer_symbols( symbol_tablet &symbol_table, - const std::unordered_set &stub_globals_set, + const std::unordered_set &stub_globals_set, synthetic_methods_mapt &synthetic_methods); codet get_stub_initializer_body( @@ -50,7 +49,7 @@ class stub_global_initializer_factoryt void create_stub_global_initializers( symbol_tablet &symbol_table, - const std::unordered_set &stub_globals_set, + const std::unordered_set &stub_globals_set, const object_factory_parameterst &object_factory_parameters, const select_pointer_typet &pointer_type_selector); diff --git a/src/java_bytecode/java_string_library_preprocess.cpp b/src/java_bytecode/java_string_library_preprocess.cpp index a05a285c18b..009882d2dab 100644 --- a/src/java_bytecode/java_string_library_preprocess.cpp +++ b/src/java_bytecode/java_string_library_preprocess.cpp @@ -1853,7 +1853,7 @@ void add_keys_to_container(const TMap &map, TContainer &container) } void java_string_library_preprocesst::get_all_function_names( - id_sett &methods) const + std::unordered_set &methods) const { for(const id_mapt *map : id_maps) add_keys_to_container(*map, methods); @@ -1919,11 +1919,10 @@ bool java_string_library_preprocesst::is_known_string_type( void java_string_library_preprocesst::initialize_known_type_table() { - string_types= - std::unordered_set{"java.lang.String", - "java.lang.StringBuilder", - "java.lang.CharSequence", - "java.lang.StringBuffer"}; + string_types = std::unordered_set{"java.lang.String", + "java.lang.StringBuilder", + "java.lang.CharSequence", + "java.lang.StringBuffer"}; } /// fill maps with correspondence from java method names to conversion functions diff --git a/src/java_bytecode/java_string_library_preprocess.h b/src/java_bytecode/java_string_library_preprocess.h index d481047dc20..84317ed9163 100644 --- a/src/java_bytecode/java_string_library_preprocess.h +++ b/src/java_bytecode/java_string_library_preprocess.h @@ -31,8 +31,6 @@ Date: March 2017 // Arbitrary limit of 10 arguments for the number of arguments to String.format #define MAX_FORMAT_ARGS 10 -typedef std::unordered_set id_sett; - class java_string_library_preprocesst:public messaget { public: @@ -48,7 +46,7 @@ class java_string_library_preprocesst:public messaget void initialize_refined_string_type(); bool implements_function(const irep_idt &function_id) const; - void get_all_function_names(id_sett &methods) const; + void get_all_function_names(std::unordered_set &methods) const; exprt code_for_function(const symbolt &symbol, symbol_table_baset &symbol_table); @@ -107,11 +105,10 @@ class java_string_library_preprocesst:public messaget symbol_table_baset &)> conversion_functiont; - typedef std::unordered_map id_mapt; + typedef std::unordered_map id_mapt; // Table mapping each java method signature to the code generating function - std::unordered_map - conversion_table; + std::unordered_map conversion_table; // Some Java functions have an equivalent in the solver that we will // call with the same argument and will return the same result @@ -146,7 +143,7 @@ class java_string_library_preprocesst:public messaget }; // A set tells us what java types should be considered as string objects - std::unordered_set string_types; + std::unordered_set string_types; codet make_equals_function_code( const code_typet &type, diff --git a/src/java_bytecode/java_utils.cpp b/src/java_bytecode/java_utils.cpp index ae4839f52f7..3a84813ba14 100644 --- a/src/java_bytecode/java_utils.cpp +++ b/src/java_bytecode/java_utils.cpp @@ -420,11 +420,9 @@ resolve_inherited_componentt::inherited_componentt get_inherited_component( /// \return true if this static field is known never to be null bool is_non_null_library_global(const irep_idt &symbolid) { - static const std::unordered_set non_null_globals = - { + static const std::unordered_set non_null_globals = { "java::java.lang.System.out", "java::java.lang.System.err", - "java::java.lang.System.in" - }; + "java::java.lang.System.in"}; return non_null_globals.count(symbolid); } diff --git a/src/java_bytecode/select_pointer_type.h b/src/java_bytecode/select_pointer_type.h index 7fc8d111a03..2f2af2792f1 100644 --- a/src/java_bytecode/select_pointer_type.h +++ b/src/java_bytecode/select_pointer_type.h @@ -16,7 +16,7 @@ #include #include "java_types.h" -typedef std::unordered_map, irep_id_hash> +typedef std::unordered_map> generic_parameter_specialization_mapt; class namespacet; diff --git a/src/java_bytecode/synthetic_methods_map.h b/src/java_bytecode/synthetic_methods_map.h index 2fe258524f1..e7773da3612 100644 --- a/src/java_bytecode/synthetic_methods_map.h +++ b/src/java_bytecode/synthetic_methods_map.h @@ -34,7 +34,7 @@ enum class synthetic_method_typet }; /// Maps method names on to a synthetic method kind. -typedef std::unordered_map +typedef std::unordered_map synthetic_methods_mapt; #endif diff --git a/src/jsil/jsil_typecheck.h b/src/jsil/jsil_typecheck.h index bca8bde2089..689a1eecd6b 100644 --- a/src/jsil/jsil_typecheck.h +++ b/src/jsil/jsil_typecheck.h @@ -94,7 +94,7 @@ class jsil_typecheckt:public typecheckt virtual std::string to_string(const exprt &expr); virtual std::string to_string(const typet &type); - std::unordered_set already_typechecked; + std::unordered_set already_typechecked; }; #endif // CPROVER_JSIL_JSIL_TYPECHECK_H diff --git a/src/langapi/language.h b/src/langapi/language.h index 06d145965f0..a3b6cbc0206 100644 --- a/src/langapi/language.h +++ b/src/langapi/language.h @@ -23,8 +23,6 @@ Author: Daniel Kroening, kroening@kroening.com #include -typedef std::unordered_set id_sett; - class symbol_tablet; class symbol_table_baset; class exprt; @@ -79,7 +77,7 @@ class languaget:public messaget // add lazy functions provided to set - virtual void methods_provided(id_sett &methods) const + virtual void methods_provided(std::unordered_set &methods) const { } // populate a lazy method diff --git a/src/langapi/language_file.cpp b/src/langapi/language_file.cpp index 59637ca829e..e28cdafd7ff 100644 --- a/src/langapi/language_file.cpp +++ b/src/langapi/language_file.cpp @@ -144,7 +144,7 @@ bool language_filest::typecheck(symbol_tablet &symbol_table) // register lazy methods. // TODO: learn about modules and generalise this // to module-providing languages if required. - id_sett lazy_method_ids; + std::unordered_set lazy_method_ids; file.second.language->methods_provided(lazy_method_ids); for(const auto &id : lazy_method_ids) lazy_method_map[id]=&file.second; diff --git a/src/langapi/language_file.h b/src/langapi/language_file.h index 046a11a5d55..263ec14fccc 100644 --- a/src/langapi/language_file.h +++ b/src/langapi/language_file.h @@ -83,7 +83,7 @@ class language_filest:public messaget { // Clear relevant entries from lazy_method_map language_filet *language_file = &file_map.at(filename); - id_sett files_methods; + std::unordered_set files_methods; for(const std::pair &method : lazy_method_map) { if(method.second == language_file) diff --git a/src/linking/linking.cpp b/src/linking/linking.cpp index e956867ebb0..fa61d32e30b 100644 --- a/src/linking/linking.cpp +++ b/src/linking/linking.cpp @@ -1162,7 +1162,8 @@ bool linkingt::needs_renaming_type( return true; // different } -void linkingt::do_type_dependencies(id_sett &needs_to_be_renamed) +void linkingt::do_type_dependencies( + std::unordered_set &needs_to_be_renamed) { // Any type that uses a symbol that will be renamed also // needs to be renamed, and so on, until saturation. @@ -1184,37 +1185,30 @@ void linkingt::do_type_dependencies(id_sett &needs_to_be_renamed) } } - std::stack queue; - - for(id_sett::const_iterator - d_it=needs_to_be_renamed.begin(); - d_it!=needs_to_be_renamed.end(); - d_it++) - queue.push(*d_it); + std::deque queue( + needs_to_be_renamed.begin(), needs_to_be_renamed.end()); while(!queue.empty()) { - irep_idt id=queue.top(); - queue.pop(); + irep_idt id = queue.back(); + queue.pop_back(); - const id_sett &u=used_by[id]; + const std::unordered_set &u = used_by[id]; - for(id_sett::const_iterator - d_it=u.begin(); - d_it!=u.end(); - d_it++) - if(needs_to_be_renamed.insert(*d_it).second) + for(const auto &dep : u) + if(needs_to_be_renamed.insert(dep).second) { - queue.push(*d_it); + queue.push_back(dep); #ifdef DEBUG debug() << "LINKING: needs to be renamed (dependency): " - << *d_it << eom; + << dep << eom; #endif } } } -void linkingt::rename_symbols(const id_sett &needs_to_be_renamed) +void linkingt::rename_symbols( + const std::unordered_set &needs_to_be_renamed) { namespacet src_ns(src_symbol_table); @@ -1258,7 +1252,7 @@ void linkingt::copy_symbols() } // Move over all the non-colliding ones - id_sett collisions; + std::unordered_set collisions; for(const auto &named_symbol : src_symbols) { @@ -1313,7 +1307,7 @@ void linkingt::typecheck() // PHASE 1: identify symbols to be renamed - id_sett needs_to_be_renamed; + std::unordered_set needs_to_be_renamed; for(const auto &symbol_pair : src_symbol_table.symbols) { diff --git a/src/linking/linking_class.h b/src/linking/linking_class.h index 70b59f59bc1..ece5f0c5186 100644 --- a/src/linking/linking_class.h +++ b/src/linking/linking_class.h @@ -38,8 +38,6 @@ class linkingt:public typecheckt replace_symbolt object_type_updates; protected: - typedef std::unordered_set id_sett; - bool needs_renaming_type( const symbolt &old_symbol, const symbolt &new_symbol); @@ -58,9 +56,9 @@ class linkingt:public typecheckt return needs_renaming_non_type(old_symbol, new_symbol); } - void do_type_dependencies(id_sett &); + void do_type_dependencies(std::unordered_set &); - void rename_symbols(const id_sett &needs_to_be_renamed); + void rename_symbols(const std::unordered_set &needs_to_be_renamed); void copy_symbols(); void duplicate_non_type_symbol( @@ -94,8 +92,8 @@ class linkingt:public typecheckt const symbolt &old_symbol; const symbolt &new_symbol; bool set_to_new; - id_sett o_symbols; - id_sett n_symbols; + std::unordered_set o_symbols; + std::unordered_set n_symbols; }; bool adjust_object_type_rec( @@ -173,12 +171,12 @@ class linkingt:public typecheckt namespacet ns; // X -> Y iff Y uses X for new symbol type IDs X and Y - typedef std::unordered_map used_byt; + typedef std::unordered_map> used_byt; irep_idt rename(irep_idt); // the new IDs created by renaming - id_sett renamed_ids; + std::unordered_set renamed_ids; }; #endif // CPROVER_LINKING_LINKING_CLASS_H diff --git a/src/pointer-analysis/value_set_analysis_fi.cpp b/src/pointer-analysis/value_set_analysis_fi.cpp index b45addff751..ce3e85d8f91 100644 --- a/src/pointer-analysis/value_set_analysis_fi.cpp +++ b/src/pointer-analysis/value_set_analysis_fi.cpp @@ -47,7 +47,7 @@ void value_set_analysis_fit::add_vars( goto_program.get_decl_identifiers(locals); // cache the list for the locals to speed things up - typedef std::unordered_map entry_cachet; + typedef std::unordered_map entry_cachet; entry_cachet entry_cache; value_set_fit &v=state.value_set; diff --git a/src/pointer-analysis/value_set_analysis_fivr.cpp b/src/pointer-analysis/value_set_analysis_fivr.cpp index c343b0c200a..59cc6320913 100644 --- a/src/pointer-analysis/value_set_analysis_fivr.cpp +++ b/src/pointer-analysis/value_set_analysis_fivr.cpp @@ -47,7 +47,7 @@ void value_set_analysis_fivrt::add_vars( goto_program.get_decl_identifiers(locals); // cache the list for the locals to speed things up - typedef std::unordered_map entry_cachet; + typedef std::unordered_map entry_cachet; entry_cachet entry_cache; value_set_fivrt &v=state.value_set; diff --git a/src/pointer-analysis/value_set_analysis_fivrns.cpp b/src/pointer-analysis/value_set_analysis_fivrns.cpp index e6ed4f8ecd1..2645d306555 100644 --- a/src/pointer-analysis/value_set_analysis_fivrns.cpp +++ b/src/pointer-analysis/value_set_analysis_fivrns.cpp @@ -47,7 +47,7 @@ void value_set_analysis_fivrnst::add_vars( goto_program.get_decl_identifiers(locals); // cache the list for the locals to speed things up - typedef std::unordered_map entry_cachet; + typedef std::unordered_map entry_cachet; entry_cachet entry_cache; value_set_fivrnst &v=state.value_set; diff --git a/src/pointer-analysis/value_set_fi.h b/src/pointer-analysis/value_set_fi.h index 2e1c1699b97..ea9bf8cf441 100644 --- a/src/pointer-analysis/value_set_fi.h +++ b/src/pointer-analysis/value_set_fi.h @@ -192,9 +192,9 @@ class value_set_fit #ifdef USE_DSTRING typedef std::map valuest; typedef std::set flatten_seent; - typedef std::unordered_set gvs_recursion_sett; - typedef std::unordered_set recfind_recursion_sett; - typedef std::unordered_set assign_recursion_sett; + typedef std::unordered_set gvs_recursion_sett; + typedef std::unordered_set recfind_recursion_sett; + typedef std::unordered_set assign_recursion_sett; #else typedef std::unordered_map valuest; typedef std::unordered_set flatten_seent; diff --git a/src/pointer-analysis/value_set_fivr.h b/src/pointer-analysis/value_set_fivr.h index d66a728c65d..c84cbb00aad 100644 --- a/src/pointer-analysis/value_set_fivr.h +++ b/src/pointer-analysis/value_set_fivr.h @@ -221,10 +221,10 @@ class value_set_fivrt #ifdef USE_DSTRING typedef std::map valuest; - typedef std::unordered_set flatten_seent; - typedef std::unordered_set gvs_recursion_sett; - typedef std::unordered_set recfind_recursion_sett; - typedef std::unordered_set assign_recursion_sett; + typedef std::unordered_set flatten_seent; + typedef std::unordered_set gvs_recursion_sett; + typedef std::unordered_set recfind_recursion_sett; + typedef std::unordered_set assign_recursion_sett; #else typedef std::unordered_map valuest; typedef std::unordered_set flatten_seent; diff --git a/src/solvers/cvc/cvc_conv.cpp b/src/solvers/cvc/cvc_conv.cpp index a14edaf2b2d..01a649d6678 100644 --- a/src/solvers/cvc/cvc_conv.cpp +++ b/src/solvers/cvc/cvc_conv.cpp @@ -1157,7 +1157,7 @@ void cvc_convt::set_to(const exprt &expr, bool value) if(id.type.is_nil()) { - std::unordered_set s_set; + std::unordered_set s_set; ::find_symbols(expr.op1(), s_set); diff --git a/src/solvers/cvc/cvc_conv.h b/src/solvers/cvc/cvc_conv.h index 53c148cb88b..76e03019368 100644 --- a/src/solvers/cvc/cvc_conv.h +++ b/src/solvers/cvc/cvc_conv.h @@ -55,8 +55,7 @@ class cvc_convt:public prop_convt } }; - typedef std::unordered_map - identifier_mapt; + typedef std::unordered_map identifier_mapt; identifier_mapt identifier_map; diff --git a/src/solvers/flattening/boolbv_map.h b/src/solvers/flattening/boolbv_map.h index 501ef232dd0..f56680c6f49 100644 --- a/src/solvers/flattening/boolbv_map.h +++ b/src/solvers/flattening/boolbv_map.h @@ -55,7 +55,7 @@ class boolbv_mapt std::string get_value(const propt &) const; }; - typedef std::unordered_map mappingt; + typedef std::unordered_map mappingt; mappingt mapping; void show() const; diff --git a/src/solvers/smt1/smt1_conv.h b/src/solvers/smt1/smt1_conv.h index 8ff2135959c..65893db4c0f 100644 --- a/src/solvers/smt1/smt1_conv.h +++ b/src/solvers/smt1/smt1_conv.h @@ -167,8 +167,7 @@ class smt1_convt:public prop_convt identifier.value=tmp; } - typedef std::unordered_map - identifier_mapt; + typedef std::unordered_map identifier_mapt; identifier_mapt identifier_map; diff --git a/src/solvers/smt2/smt2_conv.h b/src/solvers/smt2/smt2_conv.h index c857cd8efaf..665b747b58c 100644 --- a/src/solvers/smt2/smt2_conv.h +++ b/src/solvers/smt2/smt2_conv.h @@ -274,8 +274,7 @@ class smt2_convt:public prop_convt } }; - typedef std::unordered_map - identifier_mapt; + typedef std::unordered_map identifier_mapt; identifier_mapt identifier_map; diff --git a/src/solvers/smt2/smt2_dec.cpp b/src/solvers/smt2/smt2_dec.cpp index f0473da4a6d..63bd0afaeca 100644 --- a/src/solvers/smt2/smt2_dec.cpp +++ b/src/solvers/smt2/smt2_dec.cpp @@ -177,7 +177,7 @@ decision_proceduret::resultt smt2_dect::read_result(std::istream &in) boolean_assignment.clear(); boolean_assignment.resize(no_boolean_variables, false); - typedef std::unordered_map valuest; + typedef std::unordered_map valuest; valuest values; while(in) diff --git a/src/util/find_macros.h b/src/util/find_macros.h index 23142dd478d..654f72b0c21 100644 --- a/src/util/find_macros.h +++ b/src/util/find_macros.h @@ -17,7 +17,7 @@ Author: Daniel Kroening, kroening@kroening.com class exprt; class namespacet; -typedef std::unordered_set find_macros_sett; +typedef std::unordered_set find_macros_sett; void find_macros( const exprt &src, diff --git a/src/util/find_symbols.h b/src/util/find_symbols.h index e86957b7093..76309587a70 100644 --- a/src/util/find_symbols.h +++ b/src/util/find_symbols.h @@ -19,7 +19,7 @@ class exprt; class symbol_exprt; class typet; -typedef std::unordered_set find_symbols_sett; +typedef std::unordered_set find_symbols_sett; void find_symbols( const exprt &src, diff --git a/src/util/journalling_symbol_table.h b/src/util/journalling_symbol_table.h index a60805e9da9..c06e8fe521a 100644 --- a/src/util/journalling_symbol_table.h +++ b/src/util/journalling_symbol_table.h @@ -34,7 +34,7 @@ class journalling_symbol_tablet : public symbol_table_baset { public: - typedef std::unordered_set changesett; + typedef std::unordered_set changesett; private: symbol_table_baset &base_symbol_table; diff --git a/src/util/rename_symbol.h b/src/util/rename_symbol.h index 88e08991b6d..466e649c3cd 100644 --- a/src/util/rename_symbol.h +++ b/src/util/rename_symbol.h @@ -25,8 +25,8 @@ class typet; class rename_symbolt { public: - typedef std::unordered_map expr_mapt; - typedef std::unordered_map type_mapt; + typedef std::unordered_map expr_mapt; + typedef std::unordered_map type_mapt; void insert_expr(const irep_idt &old_id, const irep_idt &new_id) diff --git a/src/util/replace_symbol.h b/src/util/replace_symbol.h index 5a59096e3a8..e3b0f65f0a6 100644 --- a/src/util/replace_symbol.h +++ b/src/util/replace_symbol.h @@ -22,8 +22,8 @@ Author: Daniel Kroening, kroening@kroening.com class replace_symbolt { public: - typedef std::unordered_map expr_mapt; - typedef std::unordered_map type_mapt; + typedef std::unordered_map expr_mapt; + typedef std::unordered_map type_mapt; void insert(const irep_idt &identifier, const exprt &expr) diff --git a/src/util/std_types.h b/src/util/std_types.h index 877a8a54774..a6d1c98c412 100644 --- a/src/util/std_types.h +++ b/src/util/std_types.h @@ -930,8 +930,7 @@ class code_typet:public typet return result; } - typedef - std::unordered_map parameter_indicest; + typedef std::unordered_map parameter_indicest; /// Get a map from parameter name to its index parameter_indicest parameter_indices() const diff --git a/src/util/symbol_table_base.h b/src/util/symbol_table_base.h index 823883345d6..62db57c024c 100644 --- a/src/util/symbol_table_base.h +++ b/src/util/symbol_table_base.h @@ -25,7 +25,7 @@ class symbol_tablet; class symbol_table_baset { public: - typedef std::unordered_map symbolst; + typedef std::unordered_map symbolst; public: const symbolst &symbols;