File tree 1 file changed +18
-7
lines changed
1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -384,15 +384,26 @@ void unified_difft::output(std::ostream &os) const
384
384
385
385
for (const std::pair<irep_idt, differencest> &p : differences_map)
386
386
{
387
- goto_functionst::function_mapt::const_iterator f1=
388
- old_goto_functions.function_map .find (p.first );
389
- goto_functionst::function_mapt::const_iterator f2=
390
- new_goto_functions.function_map .find (p.first );
387
+ const irep_idt &function=p.first ;
388
+
389
+ goto_functionst::function_mapt::const_iterator old_fit=
390
+ old_goto_functions.function_map .find (function);
391
+ goto_functionst::function_mapt::const_iterator new_fit=
392
+ new_goto_functions.function_map .find (function);
393
+
394
+ const goto_programt &old_goto_program=
395
+ old_fit==old_goto_functions.function_map .end () ?
396
+ empty :
397
+ old_fit->second .body ;
398
+ const goto_programt &new_goto_program=
399
+ new_fit==new_goto_functions.function_map .end () ?
400
+ empty :
401
+ new_fit->second .body ;
391
402
392
403
output_diff (
393
- p. first ,
394
- f1==old_goto_functions. function_map . end ()?empty:f1-> second . body ,
395
- f2==new_goto_functions. function_map . end ()?empty:f2-> second . body ,
404
+ function ,
405
+ old_goto_program ,
406
+ new_goto_program ,
396
407
p.second ,
397
408
os);
398
409
}
You can’t perform that action at this time.
0 commit comments