Go to the documentation of this file.
16 #ifndef CPROVER_ANALYSES_VARIABLE_SENSITIVITY_WRITE_LOCATION_CONTEXT_H
17 #define CPROVER_ANALYSES_VARIABLE_SENSITIVITY_WRITE_LOCATION_CONTEXT_H
90 const std::stack<exprt> &stack,
91 const exprt &specifier,
93 bool merging_write)
const override;
106 std::shared_ptr<const write_location_contextt>;
118 #endif // CPROVER_ANALYSES_VARIABLE_SENSITIVITY_WRITE_LOCATION_CONTEXT_H
write_location_contextt(const abstract_object_pointert child, const exprt &expr, const abstract_environmentt &environment, const namespacet &ns)
sharing_ptrt< class abstract_objectt > abstract_object_pointert
The type of an expression, extends irept.
Base class for all expressions.
static void output_last_written_locations(std::ostream &out, const locationst &locations)
Internal helper function to format and output a given set of locations.
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...
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.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
context_abstract_object_ptrt update_location_context_internal(const locationst &locations) const override
abstract_object_pointert combine(const write_location_context_ptrt &other, combine_fn fn) const
const typet & type() const override
Get the real type of the variable this abstract object is representing.
abstract_object_pointert abstract_object_merge_internal(const abstract_object_pointert &other) const override
Helper function for abstract_objectt::abstract_object_merge to perform any additional actions after t...
General implementation of an abstract_objectt which tracks the last written locations for a given abs...
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.
std::function< abstract_objectt::combine_result(const abstract_object_pointert &op1, const abstract_object_pointert &op2)> combine_fn
std::shared_ptr< context_abstract_objectt > context_abstract_object_ptrt
abstract_object_pointert merge(const abstract_object_pointert &other, const widen_modet &widen_mode) const override
Create a new abstract object that is the result of merging this abstract object with a given abstract...
write_location_contextt(const abstract_object_pointert child, const typet &type, bool top, bool bottom)
std::set< locationt > locationst
locationst get_location_union(const locationst &locations) const
Construct the union of the location set of the current object, and a the provided location set.
abstract_object_pointert meet(const abstract_object_pointert &other) const override
Base implementation of the meet operation: only used if no more precise abstraction can be used,...
This is the basic interface of the abstract interpreter with default implementations of the core func...
void set_last_written_locations(const locationst &locations)
Sets the last written locations for this context.
virtual ~write_location_contextt()
locationst last_written_locations
write_location_contextt(const abstract_object_pointert child, const typet &type)
virtual locationst get_last_written_locations() const
std::shared_ptr< const write_location_contextt > write_location_context_ptrt
Clones the first parameter and merges it with the second.