56 const std::stack<exprt> &stack,
57 const exprt &specifier,
59 bool merging_write)
const
62 environment, ns, stack, specifier, value, merging_write);
66 return shared_from_this();
85 const std::vector<abstract_object_pointert> &operands,
90 std::vector<abstract_object_pointert> child_operands;
95 std::back_inserter(child_operands),
97 PRECONDITION(op != nullptr);
98 auto p = std::dynamic_pointer_cast<const context_abstract_objectt>(op);
99 INVARIANT(p,
"Operand shall be of type context_abstract_objectt");
100 return p->child_abstract_object;
104 expr, child_operands, environment, ns);
114 result->set_child(updated_child);
123 std::dynamic_pointer_cast<const context_abstract_objectt>(
object) !=
127 const auto &envelope =
128 std::dynamic_pointer_cast<context_abstract_objectt>(
mutable_clone());
129 envelope->set_child(
object);
163 auto before_context =
164 std::dynamic_pointer_cast<const context_abstract_objectt>(before);
std::set< abstract_object_pointert > abstract_object_visitedt
sharing_ptrt< class abstract_objectt > abstract_object_pointert
Statistics gathering for the variable senstivity domain.
static abstract_object_pointert transform(const exprt &expr, const std::vector< abstract_object_pointert > &operands, const abstract_environmentt &environment, const namespacet &ns)
virtual internal_abstract_object_pointert mutable_clone() const
goto_programt::const_targett locationt
virtual void get_statistics(abstract_object_statisticst &statistics, abstract_object_visitedt &visited, const abstract_environmentt &env, const namespacet &ns) const
This is the basic interface of the abstract interpreter with default implementations of the core func...
virtual context_abstract_object_ptrt update_location_context_internal(const locationst &locations) const =0
abstract_object_pointert write_location_context(const locationt &location) const override
Update the location context for an abstract object.
abstract_object_pointert envelop(abstract_object_pointert &child) const
void output(std::ostream &out, const class ai_baset &ai, const namespacet &ns) const override
Output a representation of the value of this abstract object.
bool has_been_modified(const abstract_object_pointert &before) const override
Determine whether 'this' abstract_object has been modified in comparison to a previous 'before' state...
abstract_object_pointert child_abstract_object
void set_child(const abstract_object_pointert &child)
void get_statistics(abstract_object_statisticst &statistics, abstract_object_visitedt &visited, const abstract_environmentt &env, const namespacet &ns) const override
abstract_object_pointert expression_transform(const exprt &expr, const std::vector< abstract_object_pointert > &operands, const abstract_environmentt &environment, const namespacet &ns) const override
Try to resolve an expression with the maximum level of precision available.
abstract_object_pointert write(abstract_environmentt &environment, const namespacet &ns, const std::stack< exprt > &stack, const exprt &specifier, const abstract_object_pointert &value, bool merging_write) const override
A helper function to evaluate writing to a component of an abstract object.
void set_top_internal() override
abstract_object_pointert get_child() const
abstract_object_pointert unwrap_context() const override
void set_not_top_internal() override
exprt to_predicate_internal(const exprt &name) const override
to_predicate implementation - derived classes will override
Base class for all expressions.
static memory_sizet from_bytes(std::size_t bytes)
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
General implementation of a an abstract_objectt which can track side information in the form of a 'co...
#define PRECONDITION(CONDITION)
memory_sizet objects_memory_usage
An underestimation of the memory usage of the abstract objects.