@@ -54,7 +54,7 @@ void bmct::error_trace()
54
54
goto_tracet &goto_trace=safety_checkert::error_trace;
55
55
build_goto_trace (equation, prop_conv, ns, goto_trace);
56
56
57
- switch (ui )
57
+ switch (ui_message_handler. get_ui () )
58
58
{
59
59
case ui_message_handlert::uit::PLAIN:
60
60
result () << " Counterexample:" << eom;
@@ -153,7 +153,7 @@ void bmct::report_success()
153
153
{
154
154
result () << " VERIFICATION SUCCESSFUL" << eom;
155
155
156
- switch (ui )
156
+ switch (ui_message_handler. get_ui () )
157
157
{
158
158
case ui_message_handlert::uit::PLAIN:
159
159
break ;
@@ -180,7 +180,7 @@ void bmct::report_failure()
180
180
{
181
181
result () << " VERIFICATION FAILED" << eom;
182
182
183
- switch (ui )
183
+ switch (ui_message_handler. get_ui () )
184
184
{
185
185
case ui_message_handlert::uit::PLAIN:
186
186
break ;
@@ -294,7 +294,7 @@ safety_checkert::resultt bmct::execute(
294
294
295
295
if (options.get_bool_option (" show-vcc" ))
296
296
{
297
- show_vcc (options, get_message_handler (), ui , ns, equation);
297
+ show_vcc (options, ui_message_handler , ns, equation);
298
298
return safety_checkert::resultt::SAFE; // to indicate non-error
299
299
}
300
300
@@ -420,7 +420,7 @@ void bmct::show()
420
420
{
421
421
if (options.get_bool_option (" show-vcc" ))
422
422
{
423
- show_vcc (options, get_message_handler (), ui , ns, equation);
423
+ show_vcc (options, ui_message_handler , ns, equation);
424
424
}
425
425
426
426
if (options.get_bool_option (" program-only" ))
@@ -478,15 +478,14 @@ int bmct::do_language_agnostic_bmc(
478
478
const path_strategy_choosert &path_strategy_chooser,
479
479
const optionst &opts,
480
480
abstract_goto_modelt &model,
481
- const ui_message_handlert::uit &ui,
482
- messaget &message,
481
+ ui_message_handlert &ui,
483
482
std::function<void (bmct &, const symbol_tablet &)> driver_configure_bmc,
484
483
std::function<bool(void )> callback_after_symex)
485
484
{
486
485
safety_checkert::resultt final_result = safety_checkert::resultt::UNKNOWN;
487
486
safety_checkert::resultt tmp_result = safety_checkert::resultt::UNKNOWN;
488
487
const symbol_tablet &symbol_table = model.get_symbol_table ();
489
- message_handlert &mh = message. get_message_handler ( );
488
+ messaget message (ui );
490
489
std::unique_ptr<path_storaget> worklist;
491
490
std::string strategy = opts.get_option (" exploration-strategy" );
492
491
INVARIANT (
@@ -496,13 +495,15 @@ int bmct::do_language_agnostic_bmc(
496
495
try
497
496
{
498
497
{
499
- cbmc_solverst solvers (opts, symbol_table, message.get_message_handler ());
500
- solvers.set_ui (ui);
498
+ cbmc_solverst solvers (
499
+ opts,
500
+ symbol_table,
501
+ ui,
502
+ ui.get_ui () == ui_message_handlert::uit::XML_UI);
501
503
std::unique_ptr<cbmc_solverst::solvert> cbmc_solver;
502
504
cbmc_solver = solvers.get_solver ();
503
505
prop_convt &pc = cbmc_solver->prop_conv ();
504
- bmct bmc (opts, symbol_table, mh, pc, *worklist, callback_after_symex);
505
- bmc.set_ui (ui);
506
+ bmct bmc (opts, symbol_table, ui, pc, *worklist, callback_after_symex);
506
507
if (driver_configure_bmc)
507
508
driver_configure_bmc (bmc, symbol_table);
508
509
tmp_result = bmc.run (model);
@@ -546,16 +547,19 @@ int bmct::do_language_agnostic_bmc(
546
547
<< " Starting new path (" << worklist->size ()
547
548
<< " to go)\n "
548
549
<< message.eom ;
549
- cbmc_solverst solvers (opts, symbol_table, message.get_message_handler ());
550
- solvers.set_ui (ui);
550
+ cbmc_solverst solvers (
551
+ opts,
552
+ symbol_table,
553
+ ui,
554
+ ui.get_ui () == ui_message_handlert::uit::XML_UI);
551
555
std::unique_ptr<cbmc_solverst::solvert> cbmc_solver;
552
556
cbmc_solver = solvers.get_solver ();
553
557
prop_convt &pc = cbmc_solver->prop_conv ();
554
558
path_storaget::patht &resume = worklist->peek ();
555
559
path_explorert pe (
556
560
opts,
557
561
symbol_table,
558
- mh ,
562
+ ui ,
559
563
pc,
560
564
resume.equation ,
561
565
resume.state ,
0 commit comments