File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -478,15 +478,18 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
478
478
code_assignt assign{it->full_lhs , it->full_lhs_value };
479
479
val.data = convert_assign_rec (lhs_id, assign);
480
480
481
- xmlt &val_s = edge.new_element (" data" );
482
- val_s.set_attribute (" key" , " assumption.scope" );
483
- irep_idt function_id = it->function_id ;
484
- const symbolt *symbol_ptr = nullptr ;
485
- if (!ns.lookup (lhs_id, symbol_ptr) && symbol_ptr->is_parameter )
481
+ if (!it->function_id .empty ())
486
482
{
487
- function_id = lhs_id.substr (0 , lhs_id.find (" ::" ));
483
+ xmlt &val_s = edge.new_element (" data" );
484
+ val_s.set_attribute (" key" , " assumption.scope" );
485
+ irep_idt function_id = it->function_id ;
486
+ const symbolt *symbol_ptr = nullptr ;
487
+ if (!ns.lookup (lhs_id, symbol_ptr) && symbol_ptr->is_parameter )
488
+ {
489
+ function_id = lhs_id.substr (0 , lhs_id.find (" ::" ));
490
+ }
491
+ val_s.data = id2string (function_id);
488
492
}
489
- val_s.data = id2string (function_id);
490
493
491
494
if (has_prefix (val.data , " \\ result =" ))
492
495
{
You can’t perform that action at this time.
0 commit comments