17
17
#include " string_hash.h"
18
18
#include " irep_hash.h"
19
19
20
- #ifdef SUB_IS_LIST
20
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
21
21
#include < algorithm>
22
22
#endif
23
23
@@ -31,7 +31,7 @@ irept nil_rep_storage;
31
31
irept::dt irept::empty_d;
32
32
#endif
33
33
34
- #ifdef SUB_IS_LIST
34
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
35
35
static inline bool named_subt_order (
36
36
const std::pair<irep_namet, irept> &a,
37
37
const irep_namet &b)
@@ -203,7 +203,7 @@ const irep_idt &irept::get(const irep_namet &name) const
203
203
{
204
204
const named_subt &s = get_named_sub ();
205
205
206
- #ifdef SUB_IS_LIST
206
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
207
207
named_subt::const_iterator it=named_subt_lower_bound (s, name);
208
208
209
209
if (it==s.end () ||
@@ -259,7 +259,7 @@ void irept::remove(const irep_namet &name)
259
259
{
260
260
named_subt &s = get_named_sub ();
261
261
262
- #ifdef SUB_IS_LIST
262
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
263
263
named_subt::iterator it=named_subt_lower_bound (s, name);
264
264
265
265
if (it!=s.end () && it->first ==name)
@@ -278,7 +278,7 @@ const irept &irept::find(const irep_namet &name) const
278
278
{
279
279
const named_subt &s = get_named_sub ();
280
280
281
- #ifdef SUB_IS_LIST
281
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
282
282
named_subt::const_iterator it=named_subt_lower_bound (s, name);
283
283
284
284
if (it==s.end () ||
@@ -298,7 +298,7 @@ irept &irept::add(const irep_namet &name)
298
298
{
299
299
named_subt &s = get_named_sub ();
300
300
301
- #ifdef SUB_IS_LIST
301
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
302
302
named_subt::iterator it=named_subt_lower_bound (s, name);
303
303
304
304
if (it==s.end () ||
@@ -320,7 +320,7 @@ irept &irept::add(const irep_namet &name, const irept &irep)
320
320
{
321
321
named_subt &s = get_named_sub ();
322
322
323
- #ifdef SUB_IS_LIST
323
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
324
324
named_subt::iterator it=named_subt_lower_bound (s, name);
325
325
326
326
if (it==s.end () ||
@@ -425,7 +425,7 @@ bool irept::full_eq(const irept &other) const
425
425
const irept::named_subt &i1_named_sub=get_named_sub ();
426
426
const irept::named_subt &i2_named_sub=other.get_named_sub ();
427
427
428
- #ifdef SUB_IS_LIST
428
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
429
429
if (
430
430
i1_sub.size () != i2_sub.size () ||
431
431
std::distance (i1_named_sub.begin (), i1_named_sub.end ()) !=
@@ -692,7 +692,7 @@ std::size_t irept::full_hash() const
692
692
result=hash_combine (result, it->second .full_hash ());
693
693
}
694
694
695
- #ifdef SUB_IS_LIST
695
+ #ifdef NAMED_SUB_IS_FORWARD_LIST
696
696
const std::size_t named_sub_size =
697
697
std::distance (named_sub.begin (), named_sub.end ());
698
698
#else
0 commit comments