Skip to content

Commit 10c4bca

Browse files
authored
Merge pull request #7918 from tautschnig/cleanup/de-deprecate-allocated
Temporarily revert #6876
2 parents d38017c + dfe0d89 commit 10c4bca

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

regression/cbmc/memory_allocation1/test.desc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ main.c
33
--pointer-check
44
^EXIT=10$
55
^SIGNAL=0$
6-
^\*\*\*\* WARNING: `__CPROVER_allocated_memory' in file main\.c line \d+ function main$
76
^\[main\.pointer_dereference\.2\] .* dereference failure: invalid integer address in \*p: SUCCESS$
87
^\[main\.assertion\.1\] .* assertion \*p==42: SUCCESS$
98
^\[main\.pointer_dereference\.[0-9]+\] .* dereference failure: invalid integer address in p\[.*1\]: FAILURE$

src/ansi-c/goto_check_c.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -441,17 +441,6 @@ void goto_check_ct::collect_allocations(const goto_functionst &goto_functions)
441441
"allocated_memory")
442442
continue;
443443

444-
const auto function_line = function.source_location().as_string();
445-
log.warning() << "**** WARNING: `" CPROVER_PREFIX "allocated_memory' in "
446-
<< function_line << messaget::eom;
447-
log.warning() << "**** WARNING: `" CPROVER_PREFIX
448-
"allocated_memory' is "
449-
"deprecated and scheduled for deletion "
450-
<< "in version 6 and upwards." << messaget::eom;
451-
log.warning() << "Please avoid using this intrinsic. For more "
452-
"information, please check issue "
453-
<< "cbmc#6872 in Github" << messaget::eom;
454-
455444
const code_function_callt::argumentst &args =
456445
instruction.call_arguments();
457446
if(

0 commit comments

Comments
 (0)