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 ()()
@@ -223,8 +217,6 @@ bool bmc_covert::operator()()
223
217
224
218
bmc.do_conversion ();
225
219
226
- // bmc.equation.output(std::cout);
227
-
228
220
// get the conditions for these goals from formula
229
221
// collect all 'instances' of the goals
230
222
for (auto it = bmc.equation .SSA_steps .begin ();
@@ -317,7 +309,7 @@ bool bmc_covert::operator()()
317
309
if (goal.source_location .is_not_nil ())
318
310
xml_result.new_element ()=xml (goal.source_location );
319
311
320
- std::cout << xml_result << " \n " ;
312
+ result () << xml_result;
321
313
}
322
314
323
315
for (const auto &test : tests)
@@ -350,7 +342,7 @@ bool bmc_covert::operator()()
350
342
xml_goal.set_attribute (" id" , id2string (goal_id));
351
343
}
352
344
353
- std::cout << xml_result << " \n " ;
345
+ result () << xml_result;
354
346
}
355
347
break ;
356
348
}
@@ -406,7 +398,8 @@ bool bmc_covert::operator()()
406
398
goal_refs.push_back (json_stringt (id2string (goal_id)));
407
399
}
408
400
}
409
- std::cout << " ,\n " << json_result;
401
+
402
+ result () << json_result;
410
403
break ;
411
404
}
412
405
}
@@ -424,10 +417,12 @@ bool bmc_covert::operator()()
424
417
425
418
if (bmc.ui ==ui_message_handlert::uit::PLAIN)
426
419
{
427
- std::cout << " Test suite:" << ' \n ' ;
420
+ result () << " Test suite:" << ' \n ' ;
428
421
429
422
for (const auto &test : tests)
430
- std::cout << get_test (test.goto_trace ) << ' \n ' ;
423
+ result () << get_test (test.goto_trace ) << ' \n ' ;
424
+
425
+ result () << eom;
431
426
}
432
427
433
428
return false ;
0 commit comments