@@ -128,7 +128,10 @@ exprt::operandst smt2_parsert::operands()
128128 return result;
129129}
130130
131- irep_idt smt2_parsert::add_fresh_id (const irep_idt &id, const exprt &expr)
131+ irep_idt smt2_parsert::add_fresh_id (
132+ const irep_idt &id,
133+ idt::kindt kind,
134+ const exprt &expr)
132135{
133136 auto &count=renaming_counters[id];
134137 irep_idt new_id;
@@ -140,7 +143,7 @@ irep_idt smt2_parsert::add_fresh_id(const irep_idt &id, const exprt &expr)
140143 .emplace (
141144 std::piecewise_construct,
142145 std::forward_as_tuple (new_id),
143- std::forward_as_tuple (expr))
146+ std::forward_as_tuple (kind, expr))
144147 .second );
145148
146149 // record renaming
@@ -155,7 +158,7 @@ void smt2_parsert::add_unique_id(const irep_idt &id, const exprt &expr)
155158 .emplace (
156159 std::piecewise_construct,
157160 std::forward_as_tuple (id),
158- std::forward_as_tuple (expr))
161+ std::forward_as_tuple (idt::VARIABLE, expr))
159162 .second )
160163 {
161164 // id already used
@@ -209,7 +212,7 @@ exprt smt2_parsert::let_expression()
209212 for (auto &b : bindings)
210213 {
211214 // get a fresh id for it
212- b.first = add_fresh_id (b.first , b.second );
215+ b.first = add_fresh_id (b.first , idt::BINDING, b.second );
213216 }
214217
215218 exprt where = expression ();
@@ -269,7 +272,7 @@ exprt smt2_parsert::quantifier_expression(irep_idt id)
269272 for (auto &b : bindings)
270273 {
271274 const irep_idt id =
272- add_fresh_id (b.get_identifier (), exprt (ID_nil, b.type ()));
275+ add_fresh_id (b.get_identifier (), idt::BINDING, exprt (ID_nil, b.type ()));
273276
274277 b.set_identifier (id);
275278 }
@@ -1181,7 +1184,8 @@ smt2_parsert::function_signature_definition()
11811184 irep_idt id = smt2_tokenizer.get_buffer ();
11821185 domain.push_back (sort ());
11831186
1184- parameters.push_back (add_fresh_id (id, exprt (ID_nil, domain.back ())));
1187+ parameters.push_back (
1188+ add_fresh_id (id, idt::PARAMETER, exprt (ID_nil, domain.back ())));
11851189
11861190 if (next_token () != smt2_tokenizert::CLOSE)
11871191 throw error (" expected ')' at end of parameter" );
0 commit comments