File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -436,6 +436,17 @@ void goto_check_ct::collect_allocations(const goto_functionst &goto_functions)
436
436
" allocated_memory" )
437
437
continue ;
438
438
439
+ const auto function_line = function.source_location ().as_string ();
440
+ log.warning () << " **** WARNING: `" CPROVER_PREFIX " allocated_memory' in "
441
+ << function_line << messaget::eom;
442
+ log.warning () << " **** WARNING: `" CPROVER_PREFIX
443
+ " allocated_memory' is "
444
+ " deprecated and scheduled for deletion "
445
+ << " in version 6 and upwards." << messaget::eom;
446
+ log.warning () << " Please avoid using this intrinsic. For more "
447
+ " information, please check issue "
448
+ << " cbmc#6872 in Github" << messaget::eom;
449
+
439
450
const code_function_callt::argumentst &args =
440
451
instruction.call_arguments ();
441
452
if (
You can’t perform that action at this time.
0 commit comments