@@ -72,8 +72,6 @@ class value_sett
72
72
// / in value sets.
73
73
static object_numberingt object_numbering;
74
74
75
- typedef irep_idt idt;
76
-
77
75
// / Represents the offset into an object: either a unique integer offset,
78
76
// / or an unknown value, represented by `!offset`.
79
77
typedef optionalt<mp_integer> offsett;
@@ -249,16 +247,15 @@ class value_sett
249
247
struct entryt
250
248
{
251
249
object_mapt object_map;
252
- idt identifier;
250
+ irep_idt identifier;
253
251
std::string suffix;
254
252
255
253
entryt ()
256
254
{
257
255
}
258
256
259
- entryt (const idt &_identifier, const std::string &_suffix):
260
- identifier (_identifier),
261
- suffix (_suffix)
257
+ entryt (const irep_idt &_identifier, const std::string &_suffix)
258
+ : identifier(_identifier), suffix(_suffix)
262
259
{
263
260
}
264
261
@@ -297,11 +294,11 @@ class value_sett
297
294
// /
298
295
// / The components of the ID are thus duplicated in the `valuest` key and in
299
296
// / `entryt` fields.
300
- #ifdef USE_DSTRING
301
- typedef std::map<idt , entryt> valuest;
302
- #else
303
- typedef std::unordered_map<idt , entryt, string_hash> valuest;
304
- #endif
297
+ #ifdef USE_DSTRING
298
+ typedef std::map<irep_idt , entryt> valuest;
299
+ #else
300
+ typedef std::unordered_map<irep_idt , entryt, string_hash> valuest;
301
+ #endif
305
302
306
303
// / Gets values pointed to by `expr`, including following dereference
307
304
// / operators (i.e. this is not a simple lookup in `valuest`).
@@ -314,9 +311,7 @@ class value_sett
314
311
const namespacet &ns) const ;
315
312
316
313
// / Appears to be unimplemented.
317
- expr_sett &get (
318
- const idt &identifier,
319
- const std::string &suffix);
314
+ expr_sett &get (const irep_idt &identifier, const std::string &suffix);
320
315
321
316
void clear ()
322
317
{
@@ -330,10 +325,10 @@ class value_sett
330
325
// / \return a constant pointer to an entry if found, or null otherwise.
331
326
// / Note the pointer may be invalidated by insert operations, including
332
327
// / get_entry.
333
- entryt *find_entry (const idt &id);
328
+ entryt *find_entry (const irep_idt &id);
334
329
335
330
// / Const version of \ref find_entry
336
- const entryt *find_entry (const idt &id) const ;
331
+ const entryt *find_entry (const irep_idt &id) const ;
337
332
338
333
// / Gets or inserts an entry in this value-set.
339
334
// / \param e: entry to find. Its `id` and `suffix` fields will be used
0 commit comments