@@ -506,16 +506,7 @@ int goto_instrument_parse_optionst::doit()
506
506
reaching_definitions_analysist rd_analysis (ns);
507
507
rd_analysis (goto_functions, ns);
508
508
509
- forall_goto_functions (f_it, goto_functions)
510
- {
511
- if (f_it->second .body_available ())
512
- {
513
- std::cout << " ////\n " ;
514
- std::cout << " //// Function: " << f_it->first << ' \n ' ;
515
- std::cout << " ////\n\n " ;
516
- rd_analysis.output (ns, f_it->second .body , std::cout);
517
- }
518
- }
509
+ rd_analysis.output (ns, goto_functions, std::cout);
519
510
520
511
return 0 ;
521
512
}
@@ -528,17 +519,7 @@ int goto_instrument_parse_optionst::doit()
528
519
dependence_grapht dependence_graph (ns);
529
520
dependence_graph (goto_functions, ns);
530
521
531
- forall_goto_functions (f_it, goto_functions)
532
- {
533
- if (f_it->second .body_available ())
534
- {
535
- std::cout << " ////\n " ;
536
- std::cout << " //// Function: " << f_it->first << ' \n ' ;
537
- std::cout << " ////\n\n " ;
538
- dependence_graph.output (ns, f_it->second .body , std::cout);
539
- }
540
- }
541
-
522
+ dependence_graph.output (ns, goto_functions, std::cout);
542
523
dependence_graph.output_dot (std::cout);
543
524
544
525
return 0 ;
0 commit comments