CBMC
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
abstract_aggregate_objectt< aggregate_typet, aggregate_traitst > Class Template Referenceabstract

#include <abstract_aggregate_object.h>

+ Inheritance diagram for abstract_aggregate_objectt< aggregate_typet, aggregate_traitst >:
+ Collaboration diagram for abstract_aggregate_objectt< aggregate_typet, aggregate_traitst >:

Public Member Functions

 
 
  Interface for transforms.
 
  A helper function to evaluate writing to a component of an abstract object.
 
 
- Public Member Functions inherited from abstract_objectt
  Start the abstract object at either top or bottom or neither Asserts if both top and bottom are true.
 
  Construct an abstract object from the expression.
 
 
  Get the real type of the variable this abstract object is representing.
 
  Find out if the abstract object is top.
 
  Find out if the abstract object is bottom.
 
  Verify the internal structure of an abstract_object is correct.
 
  Converts to a constant expression if possible.
 
  Converts to an invariant expression.
 
virtual void  output (std::ostream &out, const class ai_baset &ai, const namespacet &ns) const
  Print the value of the abstract object.
 
  Determine whether 'this' abstract_object has been modified in comparison to a previous 'before' state.
 
  Base implementation of the meet operation: only used if no more precise abstraction can be used, can only result in {TOP, BOTTOM, one of the original objects}.
 
  Update the write location context for an abstract object.
 
  Update the merge location context for an abstract object.
 
 
 
 
  Apply a visitor operation to all sub elements of this abstract_object.
 
 
 
  to_predicate implementation - derived classes will override
 

Protected Member Functions

 
 
 
- Protected Member Functions inherited from abstract_objectt
 
  Create a new abstract object that is the result of the merge, unless the object would be unchanged, then would return itself.
 
  To detect the cases where the base merge is sufficient to do a merge We can't do if this->is_bottom() since we want the specific.
 
  Create a new abstract object that is the result of the merge, unless the object would be unchanged, then would return itself.
 
  Helper function for base meet.
 
  Helper function to decide if base meet implementation should be used.
 
 
 
 

Static Protected Member Functions

template<class keyt , typename hash >
 

Additional Inherited Members

- Public Types inherited from abstract_objectt
 
 
- Static Public Member Functions inherited from abstract_objectt
static void  dump_map (std::ostream out, const shared_mapt &m)
 
  Dump all elements in m1 that are different or missing in m2.
 
 
 
  Interface method for the meet operation.
 
- Protected Types inherited from abstract_objectt
template<class T >
using  internal_sharing_ptrt = std::shared_ptr< T >
 
 

Detailed Description

template<class aggregate_typet, class aggregate_traitst>
class abstract_aggregate_objectt< aggregate_typet, aggregate_traitst >

Definition at line 29 of file abstract_aggregate_object.h.

Constructor & Destructor Documentation

◆  abstract_aggregate_objectt() [1/2]

Definition at line 33 of file abstract_aggregate_object.h.

◆  abstract_aggregate_objectt() [2/2]

Definition at line 45 of file abstract_aggregate_object.h.

Member Function Documentation

◆  expression_transform()

const std::vector< abstract_object_pointert > &  operands,
const abstract_environmenttenvironment,
const namespacetns 
) const
inlineoverridevirtual

Interface for transforms.

Parameters
expr the expression to evaluate and find the result of it. This will be the symbol referred to be op0()
operands an abstract_object (pointer) that represent the possible values of each operand
environment the abstract environment in which the expression is being evaluated
ns the current variable namespace
Returns
Returns the abstract_object representing the result of this expression to the maximum precision available.

To try and resolve different expressions with the maximum level of precision available.

Reimplemented from abstract_objectt.

Definition at line 62 of file abstract_aggregate_object.h.

◆  get_statistics()

const namespacetns 
) const
inlineoverridevirtual

Reimplemented from abstract_objectt.

Definition at line 87 of file abstract_aggregate_object.h.

◆  merge_shared_maps()

template<class keyt , typename hash >
const sharing_mapt< keyt, abstract_object_pointert, false, hash > &  map2,
sharing_mapt< keyt, abstract_object_pointert, false, hash > &  out_map,
const widen_modetwiden_mode 
)
inlinestaticprotected

Definition at line 138 of file abstract_aggregate_object.h.

◆  read_component()

const exprtexpr,
const namespacetns 
) const
inlineprotectedvirtual

Reimplemented in full_array_abstract_objectt, and full_struct_abstract_objectt.

Definition at line 99 of file abstract_aggregate_object.h.

◆  statistics()

Implemented in full_array_abstract_objectt, full_struct_abstract_objectt, two_value_array_abstract_objectt, two_value_struct_abstract_objectt, and two_value_union_abstract_objectt.

◆  write()

const namespacetns,
const std::stack< exprt > &  stack,
const exprtspecifier,
bool  merging_write 
) const
inlineoverridevirtual

A helper function to evaluate writing to a component of an abstract object.

More precise abstractions may override this to update what they are storing for a specific component.

Parameters
environment the abstract environment
ns the current namespace
stack the remaining stack of expressions on the LHS to evaluate
specifier the expression uses to access a specific component
value the value we are trying to write to the component
merging_write if true, this and all future writes will be merged with the current value
Returns
the abstract_objectt representing the result of writing to a specific component.

Reimplemented from abstract_objectt.

Definition at line 75 of file abstract_aggregate_object.h.

◆  write_component()

const namespacetns,
const std::stack< exprt > &  stack,
const exprtexpr,
bool  merging_write 
) const
inlineprotectedvirtual

Reimplemented in full_array_abstract_objectt, and full_struct_abstract_objectt.

Definition at line 113 of file abstract_aggregate_object.h.


The documentation for this class was generated from the following file:

AltStyle によって変換されたページ (->オリジナル) /