Skip to content

Commit e957025

Browse files
Print results to result stream instead of status
1 parent ad6484e commit e957025

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

src/cbmc/all_properties.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ void bmc_all_propertiest::report(const cover_goalst &cover_goals)
161161
{
162162
case ui_message_handlert::uit::PLAIN:
163163
{
164-
status() << "\n** Results:" << eom;
164+
result() << "\n** Results:" << eom;
165165

166166
for(const auto &goal_pair : goal_map)
167-
status() << "[" << goal_pair.first << "] "
167+
result() << "[" << goal_pair.first << "] "
168168
<< goal_pair.second.description << ": "
169169
<< goal_pair.second.status_string()
170170
<< eom;

src/cbmc/bmc.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ void bmct::error_trace()
5555
switch(ui)
5656
{
5757
case ui_message_handlert::uit::PLAIN:
58-
status() << "Counterexample:" << eom;
59-
show_goto_trace(status(), ns, goto_trace);
60-
status() << eom;
58+
result() << "Counterexample:" << eom;
59+
show_goto_trace(result(), ns, goto_trace);
60+
result() << eom;
6161
break;
6262

6363
case ui_message_handlert::uit::XML_UI:

src/cbmc/bmc_cover.cpp

+7-8
Original file line numberDiff line numberDiff line change
@@ -272,26 +272,25 @@ bool bmc_covert::operator()()
272272
{
273273
case ui_message_handlert::uit::PLAIN:
274274
{
275-
status() << "\n** coverage results:" << eom;
275+
result() << "\n** coverage results:" << eom;
276276

277277
for(const auto &g : goal_map)
278278
{
279279
const goalt &goal=g.second;
280280

281-
status() << "[" << g.first << "]";
281+
result() << "[" << g.first << "]";
282282

283283
if(goal.source_location.is_not_nil())
284-
status() << ' ' << goal.source_location;
284+
result() << ' ' << goal.source_location;
285285

286286
if(!goal.description.empty())
287-
status() << ' ' << goal.description;
287+
result() << ' ' << goal.description;
288288

289-
status() << ": " << (goal.satisfied?"SATISFIED":"FAILED")
290-
<< eom;
289+
result() << ": " << (goal.satisfied?"SATISFIED":"FAILED")
290+
<< '\n';
291291
}
292292

293-
status() << '\n';
294-
293+
result() << eom;
295294
break;
296295
}
297296

0 commit comments

Comments
 (0)