#include "object_tracking.h"#include <util/arith_tools.h>#include <util/c_types.h>#include <util/pointer_offset_size.h>#include <util/pointer_predicates.h>#include <util/std_code.h>#include <util/std_expr.h>#include <util/string_constant.h>Go to the source code of this file.
The model of addresses we use consists of a unique object identifier and an offset.
In order to encode the offset identifiers we need to assign unique identifiers to the objects. This function finds the base object expression in an address of expression for which a unique identifier needs to be assigned.
Definition at line 18 of file object_tracking.cpp.
Constructs an initial object map containing the null object.
The null object must be added at construction in order to ensure it is allocated a unique identifier of 0.
Definition at line 69 of file object_tracking.cpp.
This function returns true for heap allocated objects or false for stack allocated objects.
Definition at line 85 of file object_tracking.cpp.
Create the invalid pointer constant.
Definition at line 13 of file object_tracking.cpp.
Definition at line 57 of file object_tracking.cpp.
Definition at line 47 of file object_tracking.cpp.
Finds whether all base object expressions in the given expression are already tracked in the given object map.
This supports writing invariants on the base object expressions already being tracked in the map in contexts where the map is const.
Definition at line 120 of file object_tracking.cpp.
Finds all the object expressions in the given expression and adds them to the object map for cases where the map does not contain them already.
Definition at line 99 of file object_tracking.cpp.