@@ -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
234
- << " -bit " << config.this_architecture () << " "
235
- << config.this_operating_system () << eom;
232
+ log. status () << " GOTO-DIFF version " << CBMC_VERSION << " "
233
+ << sizeof ( void *) * 8 << " -bit " << config.this_architecture ()
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,18 @@ 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 << " )"
324
+ << messaget::eom;
325
325
link_to_library (
326
- goto_model, get_message_handler (), cprover_cpp_library_factory);
326
+ goto_model, log. get_message_handler (), cprover_cpp_library_factory);
327
327
link_to_library (
328
- goto_model, get_message_handler (), cprover_c_library_factory);
328
+ goto_model, log. get_message_handler (), cprover_c_library_factory);
329
329
330
330
// remove function pointers
331
- status () << " Removal of function pointers and virtual functions" << eom;
331
+ log.status () << " Removal of function pointers and virtual functions"
332
+ << messaget::eom;
332
333
remove_function_pointers (
333
- get_message_handler (), goto_model, cmdline.isset (" pointer-check" ));
334
+ log. get_message_handler (), goto_model, cmdline.isset (" pointer-check" ));
334
335
335
336
mm_io (goto_model);
336
337
@@ -344,7 +345,7 @@ bool goto_diff_parse_optionst::process_goto_program(
344
345
rewrite_union (goto_model);
345
346
346
347
// add generic checks
347
- status () << " Generic Property Instrumentation" << eom;
348
+ log. status () << " Generic Property Instrumentation" << messaget:: eom;
348
349
goto_check (options, goto_model);
349
350
350
351
// checks don't know about adjusted float expressions
@@ -364,9 +365,9 @@ bool goto_diff_parse_optionst::process_goto_program(
364
365
remove_skip (goto_model);
365
366
366
367
const auto cover_config = get_cover_config (
367
- options, goto_model.symbol_table , get_message_handler ());
368
+ options, goto_model.symbol_table , log. get_message_handler ());
368
369
if (instrument_cover_goals (
369
- cover_config, goto_model, get_message_handler ()))
370
+ cover_config, goto_model, log. get_message_handler ()))
370
371
return true ;
371
372
}
372
373
0 commit comments