-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8201 from tautschnig/cleanup/has_function_call
Remove unused goto_convertt::has_function_call
- Loading branch information
Showing
2 changed files
with
0 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,21 +22,6 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <ansi-c/c_expr.h> | ||
|
||
bool goto_convertt::has_function_call(const exprt &expr) | ||
{ | ||
for(const auto &op : expr.operands()) | ||
{ | ||
if(has_function_call(op)) | ||
return true; | ||
} | ||
|
||
if(expr.id()==ID_side_effect && | ||
expr.get(ID_statement)==ID_function_call) | ||
return true; | ||
|
||
return false; | ||
} | ||
|
||
void goto_convertt::remove_assignment( | ||
side_effect_exprt &expr, | ||
goto_programt &dest, | ||
|