File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ Author: Daniel Poetzl
2626#include < tuple>
2727#include < type_traits>
2828#include < vector>
29- #include < set>
3029
3130#include " as_const.h"
3231#include " irep.h"
@@ -391,12 +390,12 @@ class sharing_mapt
391390
392391 static void insert_view_item (viewt &v, view_itemt &&vi)
393392 {
394- v.push_back (vi);
393+ v.push_back (vi);
395394 }
396395
397396 static void insert_view_item (sorted_viewt &v, view_itemt &&vi)
398397 {
399- v.insert (vi);
398+ v.insert (vi);
400399 }
401400
402401 class delta_view_itemt
@@ -448,7 +447,8 @@ class sharing_mapt
448447 // / - Best case: O(N + H)
449448 // /
450449 // / \param [out] view: Empty view
451- template <class V > void get_view (V&) const ;
450+ template <class V >
451+ void get_view (V &) const ;
452452 viewt get_view () const
453453 {
454454 viewt result;
@@ -495,7 +495,8 @@ class sharing_mapt
495495 const bool only_common = true ) const ;
496496
497497 delta_viewt get_delta_view (
498- const sharing_mapt &other, const bool only_common=true ) const ;
498+ const sharing_mapt &other,
499+ const bool only_common = true ) const ;
499500
500501 // / Call a function for every key-value pair in the map.
501502 // /
Original file line number Diff line number Diff line change @@ -114,15 +114,17 @@ class symbol_exprt : public nullary_exprt
114114 }
115115};
116116
117- namespace std {
118- template <> struct hash <::symbol_exprt>
117+ namespace std
118+ {
119+ template <>
120+ struct hash <::symbol_exprt>
121+ {
122+ size_t operator ()(const ::symbol_exprt &sym)
119123 {
120- size_t operator ()(const ::symbol_exprt& sym)
121- {
122- return irep_id_hash ()(sym.get_identifier ());
123- }
124- };
125- }
124+ return irep_id_hash ()(sym.get_identifier ());
125+ }
126+ };
127+ } // namespace std
126128
127129// / Expression to hold a symbol (variable) with extra accessors to
128130// / ID_c_static_lifetime and ID_C_thread_local
You can’t perform that action at this time.
0 commit comments