File tree 2 files changed +16
-13
lines changed 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ Author: Daniel Poetzl
26
26
#include < tuple>
27
27
#include < type_traits>
28
28
#include < vector>
29
- #include < set>
30
29
31
30
#include " as_const.h"
32
31
#include " irep.h"
@@ -391,12 +390,12 @@ class sharing_mapt
391
390
392
391
static void insert_view_item (viewt &v, view_itemt &&vi)
393
392
{
394
- v.push_back (vi);
393
+ v.push_back (vi);
395
394
}
396
395
397
396
static void insert_view_item (sorted_viewt &v, view_itemt &&vi)
398
397
{
399
- v.insert (vi);
398
+ v.insert (vi);
400
399
}
401
400
402
401
class delta_view_itemt
@@ -448,7 +447,8 @@ class sharing_mapt
448
447
// / - Best case: O(N + H)
449
448
// /
450
449
// / \param [out] view: Empty view
451
- template <class V > void get_view (V&) const ;
450
+ template <class V >
451
+ void get_view (V &) const ;
452
452
viewt get_view () const
453
453
{
454
454
viewt result;
@@ -495,7 +495,8 @@ class sharing_mapt
495
495
const bool only_common = true ) const ;
496
496
497
497
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 ;
499
500
500
501
// / Call a function for every key-value pair in the map.
501
502
// /
Original file line number Diff line number Diff line change @@ -114,15 +114,17 @@ class symbol_exprt : public nullary_exprt
114
114
}
115
115
};
116
116
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)
119
123
{
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
126
128
127
129
// / Expression to hold a symbol (variable) with extra accessors to
128
130
// / ID_c_static_lifetime and ID_C_thread_local
You can’t perform that action at this time.
0 commit comments