#include <goto_program_dereference.h>
◆ goto_program_dereferencet()
◆ ~goto_program_dereferencet()
| goto_program_dereferencet::~goto_program_dereferencet |
( |
| ) |
|
|
overridedefault |
◆ dereference_assume()
| void goto_program_dereferencet::dereference_assume |
( |
const guard2tc & | guard | ) |
|
|
overrideprotectedvirtual |
◆ dereference_expr()
◆ dereference_expression()
◆ dereference_failure()
| void goto_program_dereferencet::dereference_failure |
( |
const std::string & | property, |
|
|
const std::string & | msg, |
|
|
const guard2tc & | guard ) |
|
overrideprotectedvirtual |
Encode a dereference failure assertion.
If a dereference does, or can trigger undefined or illegal behavior, then this method is called to record it so that it can be asserted against.
- Parameters
-
| property | Classification of the assertion being violated. |
| msg | Description of the reason for this assertion. |
| guard | Guard for this assertion – evaluates to true whe this assertion has been violated. |
Implements dereference_callbackt.
◆ dereference_instruction()
◆ dereference_program() [1/2]
◆ dereference_program() [2/2]
| void goto_program_dereferencet::dereference_program |
( |
goto_programt & | goto_program, |
|
|
bool | checks_only = false ) |
◆ get_value_set()
Fetch the set of values that the given pointer variable can point at.
- Parameters
-
| expr | Pointer symbol to get the value set of. |
| value_set | A value set to store the output of this call into. |
Implements dereference_callbackt.
◆ has_failed_symbol()
| bool goto_program_dereferencet::has_failed_symbol |
( |
const expr2tc & | expr, |
|
|
const symbolt *& | symbol ) |
|
overrideprotectedvirtual |
Check whether a failed symbol already exists for the given symbol.
This is legacy, and will be removed at some point soon.
Implements dereference_callbackt.
◆ is_live_variable()
| bool goto_program_dereferencet::is_live_variable |
( |
const expr2tc & | sym | ) |
|
|
inlineoverrideprotectedvirtual |
Determine whether variable is "alive".
For function-local variable symbols, determine whether or not a pointer to the corresponding l1 storage is considered live: if the corresponding activation record has been left, then it isn't.
- Parameters
-
| sym | Symbol to check validity of. |
- Returns
- True if variable is alive
Implements dereference_callbackt.
◆ pointer_checks() [1/2]
| void goto_program_dereferencet::pointer_checks |
( |
goto_functionst & | goto_functions | ) |
|
◆ pointer_checks() [2/2]
| void goto_program_dereferencet::pointer_checks |
( |
goto_programt & | goto_program | ) |
|
◆ assertions
| std::set<expr2tc> goto_program_dereferencet::assertions |
|
protected |
◆ assumptions
| std::set<expr2tc> goto_program_dereferencet::assumptions |
|
protected |
◆ current_target
◆ dereference
◆ dereference_location
| locationt goto_program_dereferencet::dereference_location |
|
protected |
◆ new_code
◆ ns
◆ options
| const optionst& goto_program_dereferencet::options |
|
protected |
◆ value_sets
The documentation for this class was generated from the following files: