@@ -65,7 +65,6 @@ Author: Peter Schrammel
65
65
66
66
goto_diff_parse_optionst::goto_diff_parse_optionst (int argc, const char **argv)
67
67
: parse_options_baset(GOTO_DIFF_OPTIONS, argc, argv, ui_message_handler),
68
- messaget(ui_message_handler),
69
68
ui_message_handler(cmdline, std::string(" GOTO-DIFF " ) + CBMC_VERSION)
70
69
{
71
70
}
@@ -201,8 +200,8 @@ void goto_diff_parse_optionst::get_command_line_options(optionst &options)
201
200
if (options.get_bool_option (" partial-loops" ) &&
202
201
options.get_bool_option (" unwinding-assertions" ))
203
202
{
204
- error () << " --partial-loops and --unwinding-assertions"
205
- << " must not be given together" << eom;
203
+ log. error () << " --partial-loops and --unwinding-assertions"
204
+ << " must not be given together" << messaget:: eom;
206
205
exit (1 );
207
206
}
208
207
@@ -224,19 +223,19 @@ int goto_diff_parse_optionst::doit()
224
223
225
224
optionst options;
226
225
get_command_line_options (options);
227
- eval_verbosity (
226
+ messaget:: eval_verbosity (
228
227
cmdline.get_value (" verbosity" ), messaget::M_STATISTICS, ui_message_handler);
229
228
230
229
//
231
230
// Print a banner
232
231
//
233
- status () << " GOTO-DIFF version " << CBMC_VERSION << " " << sizeof (void *) * 8
232
+ log. status () << " GOTO-DIFF version " << CBMC_VERSION << " " << sizeof (void *) * 8
234
233
<< " -bit " << config.this_architecture () << " "
235
- << config.this_operating_system () << eom;
234
+ << config.this_operating_system () << messaget:: eom;
236
235
237
236
if (cmdline.args .size ()!=2 )
238
237
{
239
- error () << " Please provide two programs to compare" << eom;
238
+ log. error () << " Please provide two programs to compare" << messaget:: eom;
240
239
return CPROVER_EXIT_INCORRECT_TASK;
241
240
}
242
241
@@ -264,12 +263,12 @@ int goto_diff_parse_optionst::doit()
264
263
{
265
264
show_goto_functions (
266
265
goto_model1,
267
- get_message_handler (),
266
+ log. get_message_handler (),
268
267
ui_message_handler.get_ui (),
269
268
cmdline.isset (" list-goto-functions" ));
270
269
show_goto_functions (
271
270
goto_model2,
272
- get_message_handler (),
271
+ log. get_message_handler (),
273
272
ui_message_handler.get_ui (),
274
273
cmdline.isset (" list-goto-functions" ));
275
274
return CPROVER_EXIT_SUCCESS;
@@ -321,16 +320,16 @@ bool goto_diff_parse_optionst::process_goto_program(
321
320
remove_asm (goto_model);
322
321
323
322
// add the library
324
- status () << " Adding CPROVER library (" << config.ansi_c .arch << " )" << eom;
323
+ log. status () << " Adding CPROVER library (" << config.ansi_c .arch << " )" << messaget:: eom;
325
324
link_to_library (
326
- goto_model, get_message_handler (), cprover_cpp_library_factory);
325
+ goto_model, log. get_message_handler (), cprover_cpp_library_factory);
327
326
link_to_library (
328
- goto_model, get_message_handler (), cprover_c_library_factory);
327
+ goto_model, log. get_message_handler (), cprover_c_library_factory);
329
328
330
329
// remove function pointers
331
- status () << " Removal of function pointers and virtual functions" << eom;
330
+ log. status () << " Removal of function pointers and virtual functions" << messaget:: eom;
332
331
remove_function_pointers (
333
- get_message_handler (), goto_model, cmdline.isset (" pointer-check" ));
332
+ log. get_message_handler (), goto_model, cmdline.isset (" pointer-check" ));
334
333
335
334
mm_io (goto_model);
336
335
@@ -344,7 +343,7 @@ bool goto_diff_parse_optionst::process_goto_program(
344
343
rewrite_union (goto_model);
345
344
346
345
// add generic checks
347
- status () << " Generic Property Instrumentation" << eom;
346
+ log. status () << " Generic Property Instrumentation" << messaget:: eom;
348
347
goto_check (options, goto_model);
349
348
350
349
// checks don't know about adjusted float expressions
@@ -364,9 +363,9 @@ bool goto_diff_parse_optionst::process_goto_program(
364
363
remove_skip (goto_model);
365
364
366
365
const auto cover_config = get_cover_config (
367
- options, goto_model.symbol_table , get_message_handler ());
366
+ options, goto_model.symbol_table , log. get_message_handler ());
368
367
if (instrument_cover_goals (
369
- cover_config, goto_model, get_message_handler ()))
368
+ cover_config, goto_model, log. get_message_handler ()))
370
369
return true ;
371
370
}
372
371
0 commit comments