CBMC
|
#include <write_stack_entry.h>
Public Member Functions | |
offset_entryt (abstract_object_pointert offset_value) | |
std::pair< exprt, bool > | get_access_expr () const override |
Get the expression part needed to read this stack entry. More... | |
bool | try_squash_in (std::shared_ptr< const write_stack_entryt > new_entry, const abstract_environmentt &enviroment, const namespacet &ns) override |
Try to combine a new stack element with the current top of the stack. More... | |
Public Member Functions inherited from write_stack_entryt | |
virtual | ~write_stack_entryt ()=default |
Private Attributes | |
abstract_object_pointert | offset |
Definition at line 41 of file write_stack_entry.h.
|
explicit |
Definition at line 48 of file write_stack_entry.cpp.
|
overridevirtual |
Get the expression part needed to read this stack entry.
For offset entries this is the offset for an index expression.
Implements write_stack_entryt.
Definition at line 61 of file write_stack_entry.cpp.
|
overridevirtual |
Try to combine a new stack element with the current top of the stack.
This will succeed if they are both offsets as we can combine these offsets into the sum of the offsets
new_entry | The new entry to combine with |
enviroment | The enviroment to evalaute things in |
ns | The global namespace |
Reimplemented from write_stack_entryt.
Definition at line 73 of file write_stack_entry.cpp.
|
private |
Definition at line 52 of file write_stack_entry.h.