Because the class is inherited from ai_domain_baset , its instance represents an element of a domain of the reaching definitions abstract interpretation analysis.
More...
#include <reaching_definitions.h>
*this by transformation over a GOTO instruction referenced by from. *this and other. identifier it collects data from bv_container for each ID in values[identifier] and stores them into export_cache[identifier]. *this by transformation over DEAD v GOTO instruction. identifier, written in given GOTO instruction referenced by from, at the range of bits defined by range_start and range_end. top, bottom, or any other element of the lattice, by values TRUE, FALSE, and UNKNOWN respectively. IDs of reaching_definitiont instances stored in map pointed to by bv_container. Because the class is inherited from ai_domain_baset , its instance represents an element of a domain of the reaching definitions abstract interpretation analysis.
Each instance is thus associated with exactly one instruction in an analysed GOTO program. And so, the instance holds information for individual program variables about their reaching definitions, at that instruction.
Definition at line 158 of file reaching_definitions.h.
Definition at line 285 of file reaching_definitions.h.
Definition at line 253 of file reaching_definitions.h.
Definition at line 251 of file reaching_definitions.h.
Definition at line 276 of file reaching_definitions.h.
Definition at line 277 of file reaching_definitions.h.
Definition at line 161 of file reaching_definitions.h.
Definition at line 256 of file reaching_definitions.h.
A utility function which updates internal data structures by inserting a new reaching definition record, for the variable name identifier, written in given GOTO instruction referenced by from, at the range of bits defined by range_start and range_end.
Definition at line 481 of file reaching_definitions.cpp.
Definition at line 721 of file reaching_definitions.cpp.
Implements ai_domain_baset.
Definition at line 223 of file reaching_definitions.h.
Implements ai_domain_baset.
Definition at line 216 of file reaching_definitions.h.
Definition at line 343 of file reaching_definitions.cpp.
Definition at line 443 of file reaching_definitions.cpp.
all states – the analysis doesn't use this directly (see make_entry) and domains may refuse to implement it.
Implements ai_domain_baset.
Definition at line 200 of file reaching_definitions.h.
Implements the "join" operation of two instances *this and other.
It operates only on this->values and other.values. The keys in the resulting map are the union of variable names in both this->values and other.values. For each variable v appearing in both maps this->values and other.values the resulting mapped set of identifiers is the set union of this->values[v] and other.values[v]. Note that the operation actually does not produce a new join element. The instance *this is modified to become the join element.
*this as the join operation Definition at line 636 of file reaching_definitions.cpp.
Definition at line 586 of file reaching_definitions.cpp.
Definition at line 672 of file reaching_definitions.cpp.
Definition at line 546 of file reaching_definitions.cpp.
Reimplemented from ai_domain_baset.
Definition at line 192 of file reaching_definitions.h.
Given the passed variable name identifier it collects data from bv_container for each ID in values[identifier] and stores them into export_cache[identifier].
Namely, for each reaching_definitiont instance rd obtained from bv_container it associates rd.definition_at with the bit-range (rd.bit_begin, rd.bit_end).
This function is only used to fill in the cache export_cache for the output method.
Definition at line 73 of file reaching_definitions.cpp.
Computes an instance obtained from the instance *this by transformation over a GOTO instruction referenced by from.
The method implements a switch according to a type of the instruction and then calls a dedicated transform_* method for the recognised instruction.
transform_function_call and transform_end_function callees. *this instance should be transformed. transform_function_call callee. transform_end_function callee. Implements ai_domain_baset.
Definition at line 93 of file reaching_definitions.cpp.
Definition at line 305 of file reaching_definitions.cpp.
Computes an instance obtained from a *this by transformation over DEAD v GOTO instruction.
The operation simply removes v from this->values.
Definition at line 138 of file reaching_definitions.cpp.
Definition at line 243 of file reaching_definitions.cpp.
Definition at line 178 of file reaching_definitions.cpp.
Definition at line 153 of file reaching_definitions.cpp.
It points to the actual reaching definitions data of individual program variables.
This pointer is initially nullptr and it is later set (by reaching_definitions_analysist instance using the method set_bitvector_container) to a valid pointer, which is actually shared by all rd_range_domaint instances. NOTE: reaching_definitions_analysist inherits from sparse_bitvector_analysist<reaching_definitiont> and so this is passed to set_bitvector_container for all instances.
Definition at line 274 of file reaching_definitions.h.
It is a helper data structure.
It consists of data already stored in values and bv_container. It is basically (an ordered) map from (a subset of) variables in values to iterators to GOTO instructions where the variables are defined. Moreover, each such iterator is also associated with a range of bits defining the value of that variable at that GOTO instruction. Both the iterators and the corresponding bit ranges are simply taken from reaching_definitiont instances obtained for IDs in values[var_name]. This data structure is actually used only in the output method; other methods only remove outdated data from it. Since the cache does not contribute to the computation, it should be either moved to the output method or removed entirely.
Definition at line 297 of file reaching_definitions.h.
This (three value logic) flag determines, whether the instance represents top, bottom, or any other element of the lattice, by values TRUE, FALSE, and UNKNOWN respectively.
Initially it is set to FALSE.
Definition at line 265 of file reaching_definitions.h.
Definition at line 346 of file reaching_definitions.h.
It is an ordered map from program variable names to IDs of reaching_definitiont instances stored in map pointed to by bv_container.
The map is not empty only if has_value is UNKNOWN. Variables in the map are all those which are live at the associated instruction.
Definition at line 283 of file reaching_definitions.h.