@@ -17,7 +17,7 @@ Author: Daniel Kroening, kroening@kroening.com
1717#include " string_hash.h"
1818#include " irep_hash.h"
1919
20- #ifdef SUB_IS_LIST
20+ #ifdef NAMED_SUB_IS_FORWARD_LIST
2121#include < algorithm>
2222#endif
2323
@@ -31,7 +31,7 @@ irept nil_rep_storage;
3131irept::dt irept::empty_d;
3232#endif
3333
34- #ifdef SUB_IS_LIST
34+ #ifdef NAMED_SUB_IS_FORWARD_LIST
3535static inline bool named_subt_order (
3636 const std::pair<irep_namet, irept> &a,
3737 const irep_namet &b)
@@ -203,7 +203,7 @@ const irep_idt &irept::get(const irep_namet &name) const
203203{
204204 const named_subt &s = get_named_sub ();
205205
206- #ifdef SUB_IS_LIST
206+ #ifdef NAMED_SUB_IS_FORWARD_LIST
207207 named_subt::const_iterator it=named_subt_lower_bound (s, name);
208208
209209 if (it==s.end () ||
@@ -259,7 +259,7 @@ void irept::remove(const irep_namet &name)
259259{
260260 named_subt &s = get_named_sub ();
261261
262- #ifdef SUB_IS_LIST
262+ #ifdef NAMED_SUB_IS_FORWARD_LIST
263263 named_subt::iterator it=named_subt_lower_bound (s, name);
264264
265265 if (it!=s.end () && it->first ==name)
@@ -278,7 +278,7 @@ const irept &irept::find(const irep_namet &name) const
278278{
279279 const named_subt &s = get_named_sub ();
280280
281- #ifdef SUB_IS_LIST
281+ #ifdef NAMED_SUB_IS_FORWARD_LIST
282282 named_subt::const_iterator it=named_subt_lower_bound (s, name);
283283
284284 if (it==s.end () ||
@@ -298,7 +298,7 @@ irept &irept::add(const irep_namet &name)
298298{
299299 named_subt &s = get_named_sub ();
300300
301- #ifdef SUB_IS_LIST
301+ #ifdef NAMED_SUB_IS_FORWARD_LIST
302302 named_subt::iterator it=named_subt_lower_bound (s, name);
303303
304304 if (it==s.end () ||
@@ -320,7 +320,7 @@ irept &irept::add(const irep_namet &name, const irept &irep)
320320{
321321 named_subt &s = get_named_sub ();
322322
323- #ifdef SUB_IS_LIST
323+ #ifdef NAMED_SUB_IS_FORWARD_LIST
324324 named_subt::iterator it=named_subt_lower_bound (s, name);
325325
326326 if (it==s.end () ||
@@ -425,7 +425,7 @@ bool irept::full_eq(const irept &other) const
425425 const irept::named_subt &i1_named_sub=get_named_sub ();
426426 const irept::named_subt &i2_named_sub=other.get_named_sub ();
427427
428- #ifdef SUB_IS_LIST
428+ #ifdef NAMED_SUB_IS_FORWARD_LIST
429429 if (
430430 i1_sub.size () != i2_sub.size () ||
431431 std::distance (i1_named_sub.begin (), i1_named_sub.end ()) !=
@@ -692,7 +692,7 @@ std::size_t irept::full_hash() const
692692 result=hash_combine (result, it->second .full_hash ());
693693 }
694694
695- #ifdef SUB_IS_LIST
695+ #ifdef NAMED_SUB_IS_FORWARD_LIST
696696 const std::size_t named_sub_size =
697697 std::distance (named_sub.begin (), named_sub.end ());
698698#else
0 commit comments