CBMC
two_value_pointer_abstract_object.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3  Module: analyses variable-sensitivity
4 
5  Author: Thomas Kiley, thomas.kiley@diffblue.com
6 
7 \*******************************************************************/
8 #ifndef CPROVER_ANALYSES_VARIABLE_SENSITIVITY_TWO_VALUE_POINTER_ABSTRACT_OBJECT_H
9 #define CPROVER_ANALYSES_VARIABLE_SENSITIVITY_TWO_VALUE_POINTER_ABSTRACT_OBJECT_H
10 
12 
14 {
15 public:
18 
26 
33  const exprt &expr,
34  const abstract_environmentt &environment,
35  const namespacet &ns);
36 
38  const abstract_environmentt &env,
39  const namespacet &ns) const override;
40 
42  abstract_environmentt &environment,
43  const namespacet &ns,
44  const std::stack<exprt> &stack,
45  const abstract_object_pointert &value,
46  bool merging_write) const override;
47 
49  const typet &new_type,
50  const abstract_environmentt &environment,
51  const namespacet &ns) const override;
52 
54  const exprt &expr,
55  const std::vector<abstract_object_pointert> &operands,
56  const abstract_environmentt &environment,
57  const namespacet &ns) const override;
58 
60  const exprt &expr,
61  const std::vector<abstract_object_pointert> &operands,
62  const abstract_environmentt &environment,
63  const namespacet &ns) const override;
64 };
65 
66 #endif // CPROVER_ANALYSES_VARIABLE_SENSITIVITY_TWO_VALUE_POINTER_ABSTRACT_OBJECT_H
abstract_object_pointert
sharing_ptrt< class abstract_objectt > abstract_object_pointert
Definition: abstract_object.h:69
typet
The type of an expression, extends irept.
Definition: type.h:28
abstract_objectt::type
virtual const typet & type() const
Get the real type of the variable this abstract object is representing.
Definition: abstract_object.cpp:47
two_value_pointer_abstract_objectt::ptr_diff
abstract_object_pointert ptr_diff(const exprt &expr, const std::vector< abstract_object_pointert > &operands, const abstract_environmentt &environment, const namespacet &ns) const override
Definition: two_value_pointer_abstract_object.cpp:73
abstract_pointer_objectt
Definition: abstract_pointer_object.h:20
abstract_environmentt
Definition: abstract_environment.h:40
exprt
Base class for all expressions.
Definition: expr.h:55
two_value_pointer_abstract_objectt::two_value_pointer_abstract_objectt
two_value_pointer_abstract_objectt(const typet &type)
Definition: two_value_pointer_abstract_object.cpp:14
two_value_pointer_abstract_objectt::write_dereference
abstract_object_pointert write_dereference(abstract_environmentt &environment, const namespacet &ns, const std::stack< exprt > &stack, const abstract_object_pointert &value, bool merging_write) const override
Evaluate writing to a pointer's value.
Definition: two_value_pointer_abstract_object.cpp:46
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:90
two_value_pointer_abstract_objectt::read_dereference
abstract_object_pointert read_dereference(const abstract_environmentt &env, const namespacet &ns) const override
A helper function to read elements from an array.
Definition: two_value_pointer_abstract_object.cpp:36
two_value_pointer_abstract_objectt
Definition: two_value_pointer_abstract_object.h:13
two_value_pointer_abstract_objectt::typecast
abstract_object_pointert typecast(const typet &new_type, const abstract_environmentt &environment, const namespacet &ns) const override
Definition: two_value_pointer_abstract_object.cpp:63
abstract_objectt::bottom
bool bottom
Definition: abstract_object.h:386
abstract_pointer_object.h
two_value_pointer_abstract_objectt::ptr_comparison_expr
exprt ptr_comparison_expr(const exprt &expr, const std::vector< abstract_object_pointert > &operands, const abstract_environmentt &environment, const namespacet &ns) const override
Definition: two_value_pointer_abstract_object.cpp:82
abstract_objectt::top
bool top
Definition: abstract_object.h:387