Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 17983dc

Browse files
committedSep 2, 2021
Contracts don't need to check whether function is empty
Signed-off-by: Felipe R. Monteiro <[email protected]>
1 parent d9d21f1 commit 17983dc

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)
Please sign in to comment.