@@ -64,10 +64,10 @@ void goto_inlinet::parameter_assignments(
64
64
// if you run out of actual arguments there was a mismatch
65
65
if (it1==arguments.end ())
66
66
{
67
- warning ().source_location = source_location;
68
- warning () << " call to '" << function_name << " ': "
69
- << " not enough arguments, "
70
- << " inserting non-deterministic value" << eom;
67
+ log. warning ().source_location = source_location;
68
+ log. warning () << " call to '" << function_name << " ': "
69
+ << " not enough arguments, "
70
+ << " inserting non-deterministic value" << messaget:: eom;
71
71
72
72
actual = side_effect_expr_nondett (parameter_type, source_location);
73
73
}
@@ -171,9 +171,9 @@ void goto_inlinet::replace_return(
171
171
{
172
172
if (!code_return.has_return_value ())
173
173
{
174
- warning ().source_location = it->code .find_source_location ();
175
- warning () << " return expects one operand!\n "
176
- << it->code .pretty () << eom;
174
+ log. warning ().source_location = it->code .find_source_location ();
175
+ log. warning () << " return expects one operand!\n "
176
+ << it->code .pretty () << messaget:: eom;
177
177
continue ;
178
178
}
179
179
@@ -355,9 +355,9 @@ void goto_inlinet::expand_function_call(
355
355
{
356
356
// it's recursive.
357
357
// Uh. Buh. Give up.
358
- warning ().source_location = function.find_source_location ();
359
- warning () << " recursion is ignored on call to '" << identifier << " '"
360
- << eom;
358
+ log. warning ().source_location = function.find_source_location ();
359
+ log. warning () << " recursion is ignored on call to '" << identifier << " '"
360
+ << messaget:: eom;
361
361
362
362
if (force_full)
363
363
target->turn_into_skip ();
@@ -370,8 +370,9 @@ void goto_inlinet::expand_function_call(
370
370
371
371
if (f_it==goto_functions.function_map .end ())
372
372
{
373
- warning ().source_location =function.find_source_location ();
374
- warning () << " missing function '" << identifier << " ' is ignored" << eom;
373
+ log.warning ().source_location = function.find_source_location ();
374
+ log.warning () << " missing function '" << identifier << " ' is ignored"
375
+ << messaget::eom;
375
376
376
377
if (force_full)
377
378
target->turn_into_skip ();
@@ -401,15 +402,17 @@ void goto_inlinet::expand_function_call(
401
402
function,
402
403
arguments);
403
404
404
- progress () << " Inserting " << identifier << " into caller" << eom;
405
- progress () << " Number of instructions: "
406
- << cached.body .instructions .size () << eom;
405
+ log.progress () << " Inserting " << identifier << " into caller"
406
+ << messaget::eom;
407
+ log.progress () << " Number of instructions: "
408
+ << cached.body .instructions .size () << messaget::eom;
407
409
408
410
if (!caching)
409
411
{
410
- progress () << " Removing " << identifier << " from cache" << eom;
411
- progress () << " Number of instructions: "
412
- << cached.body .instructions .size () << eom;
412
+ log.progress () << " Removing " << identifier << " from cache"
413
+ << messaget::eom;
414
+ log.progress () << " Number of instructions: "
415
+ << cached.body .instructions .size () << messaget::eom;
413
416
414
417
inline_log.cleanup (cached.body );
415
418
cache.erase (identifier);
@@ -438,8 +441,9 @@ void goto_inlinet::expand_function_call(
438
441
{
439
442
if (no_body_set.insert (identifier).second ) // newly inserted
440
443
{
441
- warning ().source_location = function.find_source_location ();
442
- warning () << " no body for function '" << identifier << " '" << eom;
444
+ log.warning ().source_location = function.find_source_location ();
445
+ log.warning () << " no body for function '" << identifier << " '"
446
+ << messaget::eom;
443
447
}
444
448
}
445
449
}
@@ -567,9 +571,9 @@ const goto_inlinet::goto_functiont &goto_inlinet::goto_inline_transitive(
567
571
DATA_INVARIANT (
568
572
cached.body .empty (), " body of new function in cache must be empty" );
569
573
570
- progress () << " Creating copy of " << identifier << eom;
571
- progress () << " Number of instructions: "
572
- << goto_function.body .instructions .size () << eom;
574
+ log. progress () << " Creating copy of " << identifier << messaget:: eom;
575
+ log. progress () << " Number of instructions: "
576
+ << goto_function.body .instructions .size () << messaget:: eom;
573
577
574
578
cached.copy_from (goto_function); // location numbers not changed
575
579
inline_log.copy_from (goto_function.body , cached.body );
0 commit comments