Definition at line 22 of file remove_instanceof.cpp.
◆ remove_instanceoft()
◆ lower_instanceof() [1/3]
Replaces an expression like e instanceof A with e.
@class_identifier == "A" or a big-or of similar expressions if we know of subtypes that also satisfy the given test.
- Parameters
-
function_identifier | name of the goto function goto_program |
expr | Expression to lower (the code or the guard of an instruction) |
goto_program | program the expression belongs to |
this_inst | instruction the expression is found at |
- Returns
- true if any instanceof instructionw was replaced
Definition at line 101 of file remove_instanceof.cpp.
◆ lower_instanceof() [2/3]
bool remove_instanceoft::lower_instanceof |
( |
const irep_idt & |
function_identifier, |
|
|
goto_programt & |
goto_program |
|
) |
| |
Replace every instanceof in the passed function body with an explicit class-identifier test.
Extra auxiliary variables may be introduced into symbol_table.
- Parameters
-
function_identifier | name of the goto function goto_program |
goto_program | The function body to work on. |
- Returns
- true if one or more instanceof expressions have been replaced
Definition at line 278 of file remove_instanceof.cpp.
◆ lower_instanceof() [3/3]
Replaces expressions like e instanceof A with e.
@class_identifier == "A" or a big-or of similar expressions if we know of subtypes that also satisfy the given test. Does this for the code or guard at a specific instruction.
- Parameters
-
function_identifier | name of the goto function goto_program |
goto_program | program to process |
target | instruction to check for instanceof expressions |
- Returns
- true if an instanceof has been replaced
Definition at line 239 of file remove_instanceof.cpp.
◆ class_hierarchy
◆ message_handler
◆ ns
◆ symbol_table
The documentation for this class was generated from the following file: