File tree 2 files changed +3
-5
lines changed 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -263,9 +263,7 @@ void convert_return(
263
263
json_call_return[" internal" ] = jsont::json_boolean (step.internal );
264
264
json_call_return[" thread" ] = json_numbert (std::to_string (step.thread_nr ));
265
265
266
- const irep_idt &function_identifier =
267
- (step.type == goto_trace_stept::typet::FUNCTION_CALL) ? step.called_function
268
- : step.function_id ;
266
+ const irep_idt &function_identifier = step.called_function ;
269
267
270
268
const symbolt &symbol = ns.lookup (function_identifier);
271
269
json_call_return[" function" ] =
Original file line number Diff line number Diff line change @@ -186,11 +186,11 @@ void convert(
186
186
xml_call_return.set_attribute (" thread" , std::to_string (step.thread_nr ));
187
187
xml_call_return.set_attribute (" step_nr" , std::to_string (step.step_nr ));
188
188
189
- const symbolt &symbol = ns.lookup (step.function_id );
189
+ const symbolt &symbol = ns.lookup (step.called_function );
190
190
xmlt &xml_function=xml_call_return.new_element (" function" );
191
191
xml_function.set_attribute (
192
192
" display_name" , id2string (symbol.display_name ()));
193
- xml_function.set_attribute (" identifier" , id2string (step. function_id ));
193
+ xml_function.set_attribute (" identifier" , id2string (symbol. name ));
194
194
xml_function.new_element ()=xml (symbol.location );
195
195
196
196
if (xml_location.name !=" " )
You can’t perform that action at this time.
0 commit comments