@@ -52,8 +52,8 @@ void convert_assert(
5252 json_failure[" hidden" ] = jsont::json_boolean (step.hidden );
5353 json_failure[" internal" ] = jsont::json_boolean (step.internal );
5454 json_failure[" thread" ] = json_numbert (std::to_string (step.thread_nr ));
55- json_failure[" reason" ] = json_stringt (id2string ( step.comment ) );
56- json_failure[" property" ] = json_stringt (id2string ( property_id) );
55+ json_failure[" reason" ] = json_stringt (step.comment );
56+ json_failure[" property" ] = json_stringt (property_id);
5757
5858 if (!location.is_null ())
5959 json_failure[" sourceLocation" ] = location;
@@ -133,7 +133,7 @@ void convert_decl(
133133 if (type_string == " " )
134134 type_string = from_type (ns, identifier, symbol->type );
135135
136- json_assignment[" mode" ] = json_stringt (id2string ( symbol->mode ) );
136+ json_assignment[" mode" ] = json_stringt (symbol->mode );
137137 exprt simplified = simplify_expr (step.full_lhs_value , ns);
138138
139139 full_lhs_value = json (simplified, ns, symbol->mode );
@@ -183,7 +183,7 @@ void convert_output(
183183 json_output[" hidden" ] = jsont::json_boolean (step.hidden );
184184 json_output[" internal" ] = jsont::json_boolean (step.internal );
185185 json_output[" thread" ] = json_numbert (std::to_string (step.thread_nr ));
186- json_output[" outputID" ] = json_stringt (id2string ( step.io_id ) );
186+ json_output[" outputID" ] = json_stringt (step.io_id );
187187
188188 // Recovering the mode from the function
189189 irep_idt mode;
@@ -193,7 +193,7 @@ void convert_output(
193193 mode = ID_unknown;
194194 else
195195 mode = function_name->mode ;
196- json_output[" mode" ] = json_stringt (id2string ( mode) );
196+ json_output[" mode" ] = json_stringt (mode);
197197 json_arrayt &json_values = json_output[" values" ].make_array ();
198198
199199 for (const auto &arg : step.io_args )
@@ -226,7 +226,7 @@ void convert_input(
226226 json_input[" hidden" ] = jsont::json_boolean (step.hidden );
227227 json_input[" internal" ] = jsont::json_boolean (step.internal );
228228 json_input[" thread" ] = json_numbert (std::to_string (step.thread_nr ));
229- json_input[" inputID" ] = json_stringt (id2string ( step.io_id ) );
229+ json_input[" inputID" ] = json_stringt (step.io_id );
230230
231231 // Recovering the mode from the function
232232 irep_idt mode;
@@ -236,7 +236,7 @@ void convert_input(
236236 mode = ID_unknown;
237237 else
238238 mode = function_name->mode ;
239- json_input[" mode" ] = json_stringt (id2string ( mode) );
239+ json_input[" mode" ] = json_stringt (mode);
240240 json_arrayt &json_values = json_input[" values" ].make_array ();
241241
242242 for (const auto &arg : step.io_args )
@@ -275,8 +275,8 @@ void convert_return(
275275
276276 const symbolt &symbol = ns.lookup (step.identifier );
277277 json_objectt &json_function = json_call_return[" function" ].make_object ();
278- json_function[" displayName" ] = json_stringt (id2string ( symbol.display_name () ));
279- json_function[" identifier" ] = json_stringt (id2string ( step.identifier ) );
278+ json_function[" displayName" ] = json_stringt (symbol.display_name ());
279+ json_function[" identifier" ] = json_stringt (step.identifier );
280280 json_function[" sourceLocation" ] = json (symbol.location );
281281
282282 if (!location.is_null ())
0 commit comments