Skip to content

Commit 4d2905f

Browse files
authored
Merge pull request #3125 from tautschnig/fix-hiding
Remove the __CPROVER_HIDE label when inlining
2 parents f1489fd + f2306e3 commit 4d2905f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/goto-programs/goto_inline_class.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ void goto_inlinet::insert_function_body(
285285
for(auto &instruction : body.instructions)
286286
instruction.function=target->function;
287287

288+
// make sure the inlined function does not introduce hiding
289+
if(goto_function.is_hidden())
290+
{
291+
for(auto &instruction : body.instructions)
292+
instruction.labels.remove("__CPROVER_HIDE");
293+
}
294+
288295
replace_return(body, lhs);
289296

290297
goto_programt tmp1;

0 commit comments

Comments
 (0)