|
cprover
|
Public Member Functions | |
| remove_java_newt (symbol_table_baset &symbol_table) | |
| bool | lower_java_new (const irep_idt &function_identifier, goto_programt &, message_handlert &) |
| Replace every java_new or java_new_array by a malloc side-effect and zero initialization. | |
| goto_programt::targett | lower_java_new (const irep_idt &function_identifier, goto_programt &, goto_programt::targett, message_handlert &) |
| Replace every java_new or java_new_array by a malloc side-effect and zero initialization. | |
Protected Member Functions | |
| goto_programt::targett | lower_java_new (const irep_idt &function_identifier, const exprt &lhs, const side_effect_exprt &rhs, goto_programt &, goto_programt::targett) |
| Replaces the instruction lhs = new java_type by two instructions: lhs = ALLOCATE(java_type) *lhs = { zero-initialized java_type }. | |
| goto_programt::targett | lower_java_new_array (const irep_idt &function_identifier, const exprt &lhs, const side_effect_exprt &rhs, goto_programt &, goto_programt::targett, message_handlert &) |
| Replaces the instruction lhs = new java_array_type by the following code: lhs = ALLOCATE(java_type) loops to initialize the elements (including multi-dimensional arrays). | |
Protected Attributes | |
| symbol_table_baset & | symbol_table |
| namespacet | ns |
Definition at line 29 of file remove_java_new.cpp.
|
inlineexplicit |
Definition at line 32 of file remove_java_new.cpp.
|
protected |
Replaces the instruction lhs = new java_type by two instructions: lhs = ALLOCATE(java_type) *lhs = { zero-initialized java_type }.
| function_identifier | Name of the function containing target. |
| lhs | the lhs |
| rhs | the rhs |
| dest | the goto program to modify |
| target | the goto instruction to replace |
Definition at line 82 of file remove_java_new.cpp.
| goto_programt::targett remove_java_newt::lower_java_new | ( | const irep_idt & | function_identifier, |
| goto_programt & | goto_program, | ||
| goto_programt::targett | target, | ||
| message_handlert & | message_handler ) |
Replace every java_new or java_new_array by a malloc side-effect and zero initialization.
| function_identifier | Name of the function containing target. |
| goto_program | program to process |
| target | instruction to check for java_new expressions |
| message_handler | message handler |
Definition at line 362 of file remove_java_new.cpp.
| bool remove_java_newt::lower_java_new | ( | const irep_idt & | function_identifier, |
| goto_programt & | goto_program, | ||
| message_handlert & | message_handler ) |
Replace every java_new or java_new_array by a malloc side-effect and zero initialization.
Extra auxiliary variables may be introduced into symbol_table.
| function_identifier | Name of the function goto_program. |
| goto_program | The function body to work on. |
| message_handler | message handler |
Definition at line 408 of file remove_java_new.cpp.
|
protected |
Replaces the instruction lhs = new java_array_type by the following code: lhs = ALLOCATE(java_type) loops to initialize the elements (including multi-dimensional arrays).
| function_identifier | Name of the function containing target. |
| lhs | the lhs |
| rhs | the rhs |
| dest | the goto program to modify |
| target | the goto instruction to replace |
| message_handler | message handler |
Definition at line 132 of file remove_java_new.cpp.
|
protected |
Definition at line 52 of file remove_java_new.cpp.
|
protected |
Definition at line 51 of file remove_java_new.cpp.