Skip to content

Commit 38907fc

Browse files
authored
Merge pull request #1003 from smowton/smowton/cleanup/traces_to_status_out
Write traces to status() not cout
2 parents 23e2c9b + e1aadeb commit 38907fc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/cbmc/bmc.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,16 @@ void bmct::error_trace()
5757
switch(ui)
5858
{
5959
case ui_message_handlert::uit::PLAIN:
60-
std::cout << "\n" << "Counterexample:" << "\n";
61-
show_goto_trace(std::cout, ns, goto_trace);
60+
status() << "Counterexample:" << eom;
61+
show_goto_trace(status(), ns, goto_trace);
62+
status() << eom;
6263
break;
6364

6465
case ui_message_handlert::uit::XML_UI:
6566
{
6667
xmlt xml;
6768
convert(ns, goto_trace, xml);
68-
std::cout << xml << "\n";
69+
status() << xml << eom;
6970
}
7071
break;
7172

@@ -82,7 +83,7 @@ void bmct::error_trace()
8283
result["status"]=json_stringt("failed");
8384
jsont &json_trace=result["trace"];
8485
convert(ns, goto_trace, json_trace);
85-
std::cout << ",\n" << json_result;
86+
status() << ",\n" << json_result << eom;
8687
}
8788
break;
8889
}

0 commit comments

Comments
 (0)