File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,17 @@ class value_sett
56
56
bool offset_is_set;
57
57
bool offset_is_zero () const
58
58
{ return offset_is_set && offset.is_zero (); }
59
+
60
+ bool operator ==(const objectt &other) const
61
+ {
62
+ return
63
+ offset_is_set==other.offset_is_set &&
64
+ (!offset_is_set || offset==other.offset );
65
+ }
66
+ bool operator !=(const objectt &other) const
67
+ {
68
+ return !(*this ==other);
69
+ }
59
70
};
60
71
61
72
class object_map_dt
@@ -101,6 +112,15 @@ class value_sett
101
112
102
113
object_map_dt ()=default ;
103
114
115
+ bool operator ==(const object_map_dt &other) const
116
+ {
117
+ return data==other.data ;
118
+ }
119
+ bool operator !=(const object_map_dt &other) const
120
+ {
121
+ return !(*this ==other);
122
+ }
123
+
104
124
protected:
105
125
~object_map_dt ()=default ;
106
126
};
@@ -157,6 +177,18 @@ class value_sett
157
177
suffix (_suffix)
158
178
{
159
179
}
180
+
181
+ bool operator ==(const entryt &other) const
182
+ {
183
+ return
184
+ identifier==other.identifier &&
185
+ suffix==other.suffix &&
186
+ object_map==other.object_map ;
187
+ }
188
+ bool operator !=(const entryt &other) const
189
+ {
190
+ return !(*this ==other);
191
+ }
160
192
};
161
193
162
194
typedef std::set<exprt> expr_sett;
You can’t perform that action at this time.
0 commit comments