Wrapper for functions removing dereferences in expressions contained in a goto program.
More...
#include <goto_program_dereference.h>
Wrapper for functions removing dereferences in expressions contained in a goto program.
Definition at line 29 of file goto_program_dereference.h.
◆ goto_program_dereferencet()
◆ ~goto_program_dereferencet()
virtual goto_program_dereferencet::~goto_program_dereferencet |
( |
| ) |
|
|
inlinevirtual |
◆ dereference_expr()
void goto_program_dereferencet::dereference_expr |
( |
exprt & |
expr, |
|
|
const bool |
checks_only |
|
) |
| |
|
protected |
Remove dereference expressions contained in expr
.
- Parameters
-
expr | an expression |
checks_only | when true, execute the substitution on a copy of expr so that expr stays unchanged. In that case the only observable effect is whether an exception would be thrown. |
Definition at line 145 of file goto_program_dereference.cpp.
◆ dereference_expression()
◆ dereference_instruction()
void goto_program_dereferencet::dereference_instruction |
( |
goto_programt::targett |
target, |
|
|
bool |
checks_only = false |
|
) |
| |
|
protected |
Remove dereference from expressions contained in the instruction at target
.
If check_only
is true, the dereferencing is performed on copies of the expressions, in that case the only observable effect is whether an exception would be thrown.
Definition at line 195 of file goto_program_dereference.cpp.
◆ dereference_program() [1/2]
void goto_program_dereferencet::dereference_program |
( |
goto_functionst & |
goto_functions, |
|
|
bool |
checks_only = false |
|
) |
| |
◆ dereference_program() [2/2]
void goto_program_dereferencet::dereference_program |
( |
goto_programt & |
goto_program, |
|
|
bool |
checks_only = false |
|
) |
| |
◆ dereference_rec()
void goto_program_dereferencet::dereference_rec |
( |
exprt & |
expr | ) |
|
|
protected |
Turn subexpression of expr
of the form &*p
into p and use dereference
on subexpressions of the form *p
- Parameters
-
expr | expression in which to remove dereferences |
Definition at line 50 of file goto_program_dereference.cpp.
◆ get_or_create_failed_symbol()
const symbolt * goto_program_dereferencet::get_or_create_failed_symbol |
( |
const exprt & |
expr | ) |
|
|
overrideprotectedvirtual |
◆ get_value_set()
std::vector< exprt > goto_program_dereferencet::get_value_set |
( |
const exprt & |
expr | ) |
const |
|
overrideprotectedvirtual |
◆ current_function
irep_idt goto_program_dereferencet::current_function |
|
protected |
◆ current_target
◆ dereference
◆ new_code
◆ ns
◆ options
const optionst& goto_program_dereferencet::options |
|
protected |
◆ value_sets
The documentation for this class was generated from the following files: