@@ -63,7 +63,6 @@ Author: Peter Schrammel
63
63
64
64
jdiff_parse_optionst::jdiff_parse_optionst (int argc, const char **argv)
65
65
: parse_options_baset(JDIFF_OPTIONS, argc, argv, ui_message_handler),
66
- messaget(ui_message_handler),
67
66
ui_message_handler(cmdline, std::string(" JDIFF " ) + CBMC_VERSION)
68
67
{
69
68
}
@@ -186,19 +185,19 @@ int jdiff_parse_optionst::doit()
186
185
187
186
optionst options;
188
187
get_command_line_options (options);
189
- eval_verbosity (
188
+ messaget:: eval_verbosity (
190
189
cmdline.get_value (" verbosity" ), messaget::M_STATISTICS, ui_message_handler);
191
190
192
191
//
193
192
// Print a banner
194
193
//
195
- status () << " JDIFF version " << CBMC_VERSION << " " << sizeof (void *) * 8
196
- << " -bit " << config.this_architecture () << " "
197
- << config.this_operating_system () << eom;
194
+ log. status () << " JDIFF version " << CBMC_VERSION << " " << sizeof (void *) * 8
195
+ << " -bit " << config.this_architecture () << " "
196
+ << config.this_operating_system () << messaget:: eom;
198
197
199
198
if (cmdline.args .size () != 2 )
200
199
{
201
- error () << " Please provide two programs to compare" << eom;
200
+ log. error () << " Please provide two programs to compare" << messaget:: eom;
202
201
return CPROVER_EXIT_INCORRECT_TASK;
203
202
}
204
203
@@ -226,12 +225,12 @@ int jdiff_parse_optionst::doit()
226
225
{
227
226
show_goto_functions (
228
227
goto_model1,
229
- get_message_handler (),
228
+ log. get_message_handler (),
230
229
ui_message_handler.get_ui (),
231
230
cmdline.isset (" list-goto-functions" ));
232
231
show_goto_functions (
233
232
goto_model2,
234
- get_message_handler (),
233
+ log. get_message_handler (),
235
234
ui_message_handler.get_ui (),
236
235
cmdline.isset (" list-goto-functions" ));
237
236
return CPROVER_EXIT_SUCCESS;
@@ -275,20 +274,21 @@ bool jdiff_parse_optionst::process_goto_program(
275
274
{
276
275
{
277
276
// remove function pointers
278
- status () << " Removing function pointers and virtual functions" << eom;
277
+ log.status () << " Removing function pointers and virtual functions"
278
+ << messaget::eom;
279
279
remove_function_pointers (
280
- get_message_handler (), goto_model, cmdline.isset (" pointer-check" ));
280
+ log. get_message_handler (), goto_model, cmdline.isset (" pointer-check" ));
281
281
282
282
// Java virtual functions -> explicit dispatch tables:
283
283
remove_virtual_functions (goto_model);
284
284
285
285
// remove Java throw and catch
286
286
// This introduces instanceof, so order is important:
287
- remove_exceptions_using_instanceof (goto_model, get_message_handler ());
287
+ remove_exceptions_using_instanceof (goto_model, log. get_message_handler ());
288
288
289
289
// Java instanceof -> clsid comparison:
290
290
class_hierarchyt class_hierarchy (goto_model.symbol_table );
291
- remove_instanceof (goto_model, class_hierarchy, get_message_handler ());
291
+ remove_instanceof (goto_model, class_hierarchy, log. get_message_handler ());
292
292
293
293
mm_io (goto_model);
294
294
@@ -302,7 +302,7 @@ bool jdiff_parse_optionst::process_goto_program(
302
302
rewrite_union (goto_model);
303
303
304
304
// add generic checks
305
- status () << " Generic Property Instrumentation" << eom;
305
+ log. status () << " Generic Property Instrumentation" << messaget:: eom;
306
306
goto_check (options, goto_model);
307
307
308
308
// checks don't know about adjusted float expressions
@@ -322,9 +322,9 @@ bool jdiff_parse_optionst::process_goto_program(
322
322
if (cmdline.isset (" cover" ))
323
323
{
324
324
const auto cover_config = get_cover_config (
325
- options, goto_model.symbol_table , get_message_handler ());
325
+ options, goto_model.symbol_table , log. get_message_handler ());
326
326
if (instrument_cover_goals (
327
- cover_config, goto_model, get_message_handler ()))
327
+ cover_config, goto_model, log. get_message_handler ()))
328
328
return true ;
329
329
}
330
330
0 commit comments