@@ -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 () ||
@@ -429,7 +429,7 @@ bool irept::full_eq(const irept &other) const
429429 const irept::named_subt &i1_named_sub=get_named_sub ();
430430 const irept::named_subt &i2_named_sub=other.get_named_sub ();
431431
432- #ifdef SUB_IS_LIST
432+ #ifdef NAMED_SUB_IS_FORWARD_LIST
433433 if (
434434 std::distance (i1_named_sub.begin (), i1_named_sub.end ()) !=
435435 std::distance (i2_named_sub.begin (), i2_named_sub.end ()))
@@ -693,7 +693,7 @@ std::size_t irept::full_hash() const
693693 result=hash_combine (result, it->second .full_hash ());
694694 }
695695
696- #ifdef SUB_IS_LIST
696+ #ifdef NAMED_SUB_IS_FORWARD_LIST
697697 const std::size_t named_sub_size =
698698 std::distance (named_sub.begin (), named_sub.end ());
699699#else
0 commit comments