Skip to content

Commit baa5741

Browse files
danpoemartin
authored andcommitted
Use ai function output in goto-instrument.
1 parent 0bc21fa commit baa5741

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -506,16 +506,7 @@ int goto_instrument_parse_optionst::doit()
506506
reaching_definitions_analysist rd_analysis(ns);
507507
rd_analysis(goto_functions, ns);
508508

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);
519510

520511
return 0;
521512
}
@@ -528,17 +519,7 @@ int goto_instrument_parse_optionst::doit()
528519
dependence_grapht dependence_graph(ns);
529520
dependence_graph(goto_functions, ns);
530521

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);
542523
dependence_graph.output_dot(std::cout);
543524

544525
return 0;

0 commit comments

Comments
 (0)