11
11
12
12
#include " bmc.h"
13
13
14
- #include < iostream>
15
-
16
14
#include < util/time_stopping.h>
17
15
#include < util/xml.h>
18
16
#include < util/xml_expr.h>
@@ -185,10 +183,6 @@ void bmc_covert::satisfying_assignment()
185
183
goto_trace.steps .erase (++s_it1, goto_trace.steps .end ());
186
184
break ;
187
185
}
188
-
189
- #if 0
190
- show_goto_trace(std::cout, bmc.ns, test.goto_trace);
191
- #endif
192
186
}
193
187
194
188
bool bmc_covert::operator ()()
@@ -221,8 +215,6 @@ bool bmc_covert::operator()()
221
215
222
216
bmc.do_conversion ();
223
217
224
- // bmc.equation.output(std::cout);
225
-
226
218
// get the conditions for these goals from formula
227
219
// collect all 'instances' of the goals
228
220
for (auto it = bmc.equation .SSA_steps .begin ();
@@ -278,26 +270,25 @@ bool bmc_covert::operator()()
278
270
{
279
271
case ui_message_handlert::uit::PLAIN:
280
272
{
281
- status () << " \n ** coverage results:" << eom;
273
+ result () << " \n ** coverage results:" << eom;
282
274
283
275
for (const auto &g : goal_map)
284
276
{
285
277
const goalt &goal=g.second ;
286
278
287
- status () << " [" << g.first << " ]" ;
279
+ result () << " [" << g.first << " ]" ;
288
280
289
281
if (goal.source_location .is_not_nil ())
290
- status () << ' ' << goal.source_location ;
282
+ result () << ' ' << goal.source_location ;
291
283
292
284
if (!goal.description .empty ())
293
- status () << ' ' << goal.description ;
285
+ result () << ' ' << goal.description ;
294
286
295
- status () << " : " << (goal.satisfied ?" SATISFIED" :" FAILED" )
296
- << eom ;
287
+ result () << " : " << (goal.satisfied ?" SATISFIED" :" FAILED" )
288
+ << ' \n ' ;
297
289
}
298
290
299
- status () << ' \n ' ;
300
-
291
+ result () << eom;
301
292
break ;
302
293
}
303
294
@@ -315,7 +306,7 @@ bool bmc_covert::operator()()
315
306
if (goal.source_location .is_not_nil ())
316
307
xml_result.new_element ()=xml (goal.source_location );
317
308
318
- std::cout << xml_result << " \n " ;
309
+ result () << xml_result;
319
310
}
320
311
321
312
for (const auto &test : tests)
@@ -348,7 +339,7 @@ bool bmc_covert::operator()()
348
339
xml_goal.set_attribute (" id" , id2string (goal_id));
349
340
}
350
341
351
- std::cout << xml_result << " \n " ;
342
+ result () << xml_result;
352
343
}
353
344
break ;
354
345
}
@@ -404,7 +395,8 @@ bool bmc_covert::operator()()
404
395
goal_refs.push_back (json_stringt (id2string (goal_id)));
405
396
}
406
397
}
407
- std::cout << " ,\n " << json_result;
398
+
399
+ result () << json_result;
408
400
break ;
409
401
}
410
402
}
@@ -422,10 +414,12 @@ bool bmc_covert::operator()()
422
414
423
415
if (bmc.ui ==ui_message_handlert::uit::PLAIN)
424
416
{
425
- std::cout << " Test suite:" << ' \n ' ;
417
+ result () << " Test suite:" << ' \n ' ;
426
418
427
419
for (const auto &test : tests)
428
- std::cout << get_test (test.goto_trace ) << ' \n ' ;
420
+ result () << get_test (test.goto_trace ) << ' \n ' ;
421
+
422
+ result () << eom;
429
423
}
430
424
431
425
return false ;
0 commit comments