Definition at line 27 of file remove_returns.cpp.
◆ remove_returnst()
◆ do_function_calls()
turns x=f(...) into f(...); lhs=f::return_value;
- Parameters
-
function_is_stub | function (irep_idt -> bool) that determines whether a given function ID is a stub |
goto_program | program to transform |
- Returns
- True if, and only if, instructions have been inserted. In that case the caller must invoke an appropriate method to update location numbers.
Definition at line 149 of file remove_returns.cpp.
◆ get_or_create_return_value_symbol()
std::optional< symbol_exprt > remove_returnst::get_or_create_return_value_symbol |
( |
const irep_idt & |
function_id | ) |
|
|
protected |
◆ operator()() [1/2]
◆ operator()() [2/2]
◆ replace_returns()
turns 'return x' into an assignment to fkt::return_value
- Parameters
-
function_id | name of the function to transform |
function | function to transform |
Definition at line 102 of file remove_returns.cpp.
◆ restore()
◆ restore_returns()
turns an assignment to fkt::return_value back into 'return x'
Definition at line 294 of file remove_returns.cpp.
◆ undo_function_calls()
void remove_returnst::undo_function_calls |
( |
goto_programt & |
goto_program | ) |
|
|
protected |
◆ symbol_table
The documentation for this class was generated from the following file: