We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b6a337 commit f060c2fCopy full SHA for f060c2f
src/util/irep_serialization.cpp
@@ -13,11 +13,12 @@ Date: May 2007
13
14
#include "irep_serialization.h"
15
16
+#include "exception_utils.h"
17
+#include "string_container.h"
18
+
19
#include <climits>
20
#include <iostream>
21
-#include "exception_utils.h"
-
22
void irep_serializationt::write_irep(
23
std::ostream &out,
24
const irept &irep)
@@ -211,7 +212,11 @@ void irep_serializationt::write_string_ref(
211
212
213
const irep_idt &s)
214
{
- size_t id=irep_id_hash()(s);
215
+#ifdef USE_DSTRING
216
+ size_t id = s.get_no();
217
+#else
218
+ size_t id = get_string_container()[s];
219
+#endif
220
if(id>=ireps_container.string_map.size())
221
ireps_container.string_map.resize(id+1, false);
222
0 commit comments