Skip to content

Commit 43f0f89

Browse files
committed
Contracts don't need to check whether function is empty
Signed-off-by: Felipe R. Monteiro <[email protected]>
1 parent 622dc1a commit 43f0f89

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/goto-instrument/contracts/contracts.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -892,15 +892,6 @@ bool code_contractst::check_frame_conditions_function(const irep_idt &function)
892892
}
893893
goto_programt &program = old_function->second.body;
894894

895-
if(
896-
program.empty() ||
897-
(program.instructions.size() <= 2 &&
898-
program.instructions.front().is_skip() &&
899-
program.instructions.back().is_end_function())) // empty function body
900-
{
901-
return false;
902-
}
903-
904895
if(check_for_looped_mallocs(program))
905896
{
906897
return true;

0 commit comments

Comments
 (0)