forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass ostream instead of using cout in natural_loops
- Loading branch information
1 parent
58b75cf
commit 3d4c794
Showing
3 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,18 +11,18 @@ Author: Georg Weissenbacher, [email protected] | |
|
||
#include "natural_loops.h" | ||
|
||
#include <iostream> | ||
|
||
void show_natural_loops(const goto_modelt &goto_model) | ||
void show_natural_loops( | ||
const goto_modelt &goto_model, | ||
std::ostream &out) | ||
{ | ||
forall_goto_functions(it, goto_model.goto_functions) | ||
{ | ||
std::cout << "*** " << it->first << '\n'; | ||
out << "*** " << it->first << '\n'; | ||
|
||
natural_loopst natural_loops; | ||
natural_loops(it->second.body); | ||
natural_loops.output(std::cout); | ||
natural_loops.output(out); | ||
|
||
std::cout << '\n'; | ||
out << '\n'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters