|
GCC Middle and Back End API Reference
|
#include <symbolic-bit-vectors.h>


Data Structures | |
| struct | key |
Public Types | |
| enum class | kind { concat , conjured , cropped , empty , named_test , poisoned , repeated , svalue , from_ubc , tristate } |
| using | id_t = unsigned |
Static Public Member Functions | |
| static const bit_vector * | can_merge_p (const bit_vector &bv_a, const bit_vector &bv_b, tree type, model_merger *merger) |
| static int | cmp_ids (const symbolic::node *s1, const symbolic::node *s2) |
| static int | cmp (const symbolic::node &s1, const symbolic::node &s2) |
| static int | cmp_ptr_ptr (const void *, const void *) |
Protected Member Functions | |
| std::unique_ptr< json::object > | make_json_obj (const char *type_name) const |
Protected Attributes | |
| bit_vector_manager & | m_bv_mgr |
| const symbolic_bit_size & | m_size_in_bits |
Private Member Functions | |
| void | print_prefix_for_dump_widget_label (pretty_printer *pp) const final override |
| void | add_dump_widget_children (text_art::tree_widget &, node_dump_state &nds) const final override |
| void | accept_node_visitor (node_visitor &v) const final override |
Private Attributes | |
| const gimple * | m_stmt |
| const region * | m_id_reg |
| unsigned | m_idx |
| complexity | m_complexity |
| id_t | m_id |
A defined bit_vector arising from a statement, where we want to identify a particular unknown bundle of bits, so that the value can have sm-state. Comparisons of variables that share the same conjured_bit_vector are known to be equal, even if we don't know what the value is. For example, this is used for the values of regions of known size that may have been touched when calling an unknown function. The bit_vector captures a region as well as a stmt in order to avoid falsely aliasing the various bit vectors that could arise in one statement. For example, after: unknown_fn (&a, &b); we want nodes to clobber a and b with, but we don't want to use the same node, or it would falsely implicitly assume that a == b.
|
inherited |
|
stronginherited |
| ana::symbolic::conjured_bit_vector::conjured_bit_vector | ( | bit_vector_manager & | mgr, |
| const key & | k ) |
|
finaloverrideprivatevirtual |
Implements ana::symbolic::node.
|
finaloverrideprivatevirtual |
Implements ana::symbolic::node.
|
staticinherited |
References bit_vector().
|
inlinestaticinherited |
References get_id().
|
staticinherited |
|
staticinherited |
|
inlinefinaloverridevirtual |
Reimplemented from ana::symbolic::bit_vector.
References final().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlinefinaloverridevirtualinherited |
Reimplemented from ana::symbolic::value_node.
References final().
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::bit_vector_from_svalue.
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::bit_vector_from_ubc.
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::concat_bit_vector.
|
inlinefinaloverridevirtual |
Reimplemented from ana::symbolic::bit_vector.
References final().
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::cropped_bit_vector.
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::empty_bit_vector.
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::poisoned_bit_vector.
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::repeated_bit_vector.
|
inlinevirtualinherited |
Reimplemented in ana::svalue.
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::tristate_bit_vector.
Referenced by contains_unknown_p().
|
inlinevirtualinherited |
|
inherited |
|
finaloverridevirtual |
Implements ana::symbolic::value_node.
References final(), and for_each_svalue().
Referenced by for_each_svalue().
|
inlineoverridevirtualinherited |
Reimplemented from ana::symbolic::node.
|
inlineinherited |
References m_bv_mgr.
|
inherited |
References bit_vector().
|
inherited |
References bit_vector().
|
inlineinherited |
References m_complexity.
Referenced by ana::binop_svalue::binop_svalue(), ana::pointer_svalue::pointer_svalue(), and ana::widening_svalue::widening_svalue().
|
inherited |
References bit_vector().
|
inherited |
References bit_vector().
|
inherited |
References bit_vector().
|
inherited |
References bit_vector().
|
inline |
References m_idx.
|
inlinefinaloverridevirtual |
Implements ana::symbolic::bit_vector.
References ana::symbolic::bit_vector::conjured, and final().
|
inherited |
References bit_vector().
|
inlineinherited |
References ana::bits_from_bytes(), and get_prefix().
|
inherited |
References bit_vector().
Referenced by get_prefix(), and get_prefix().
|
inlineinherited |
References ana::bits_from_bytes(), and get_prefix().
|
inlineinherited |
References m_size_in_bits.
Referenced by ana::symbolic::cropped_bit_vector::get_uncropped_bits_to_use().
|
inline |
References get_stmt(), and m_stmt.
Referenced by get_stmt().
|
inherited |
References bit_vector().
|
inlineinherited |
References ana::bits_from_bytes(), and get_suffix().
|
inherited |
References bit_vector().
Referenced by get_suffix(), and get_suffix().
|
inlineinherited |
References ana::bits_from_bytes(), and get_suffix().
|
inherited |
|
inherited |
References bit_vector().
|
finaloverridevirtual |
Reimplemented from ana::symbolic::bit_vector.
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
Reimplemented in ana::binop_svalue, ana::constant_svalue, ana::initial_svalue, ana::pointer_svalue, ana::svalue_from_bit_vector, ana::symbolic::bit_vector_from_svalue, ana::symbolic::bit_vector_from_ubc, ana::symbolic::concat_bit_vector, ana::symbolic::cropped_bit_vector, ana::unaryop_svalue, and ana::unmergeable_svalue.
|
inherited |
|
inherited |
|
protectedinherited |
|
finaloverridevirtual |
Implements ana::symbolic::node.
References final(), and make_markup_node().
Referenced by make_markup_node().
|
inherited |
References bit_vector().
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
Reimplemented in ana::symbolic::bit_vector_from_svalue.
|
inlineinherited |
References bit_vector(), and ana::other.
|
inlinevirtualinherited |
Reimplemented in ana::symbolic::cropped_bit_vector, ana::symbolic::poisoned_bit_vector, and ana::symbolic::tristate_bit_vector.
|
finaloverridevirtualinherited |
Implements ana::symbolic::node.
|
finaloverrideprivatevirtual |
Implements ana::symbolic::bit_vector.
|
finaloverridevirtual |
Implements ana::symbolic::bit_vector.
|
inherited |
|
finaloverridevirtual |
Implements ana::symbolic::node.
References final().
|
protectedinherited |
Referenced by get_bit_vector_manager().
|
privateinherited |
Referenced by get_complexity(), and node().
|
private |
Referenced by get_id_reg().
|
private |
Referenced by get_idx().
|
protectedinherited |
Referenced by get_size().
|
private |
Referenced by get_stmt().