class ValueSet(BackendObject): (source)
ValueSet is a mapping between memory regions and corresponding offsets.
Static Method | empty |
Undocumented |
Method | __add__ |
Binary operation: addition |
Method | __and__ |
Binary operation: and |
Method | __eq__ |
Binary operation: == |
Method | __ge__ |
Undocumented |
Method | __gt__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Constructor. |
Method | __le__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __lt__ |
Undocumented |
Method | __mod__ |
Binary operation: modulo |
Method | __ne__ |
Binary operation: == |
Method | __radd__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __sub__ |
Binary operation: subtraction |
Method | apply |
Apply a new annotation onto self, and return a new ValueSet object. |
Method | concat |
Undocumented |
Method | copy |
Make a copy of self and return. |
Method | eval |
Undocumented |
Method | extract |
Operation extract |
Method | get |
Undocumented |
Method | identical |
Used to make exact comparisons between two ValueSets. |
Method | intersection |
Undocumented |
Method | items |
Undocumented |
Method |
|
Undocumented |
Method | reverse |
Undocumented |
Method | SGE |
Undocumented |
Method | SGT |
Undocumented |
Method | size |
Undocumented |
Method | SLE |
Undocumented |
Method | SLT |
Undocumented |
Method | stridedinterval |
Undocumented |
Method | union |
Undocumented |
Method | widen |
Undocumented |
Property | bits |
Undocumented |
Property | cardinality |
Undocumented |
Property | is |
Undocumented |
Property | max |
The maximum integer value of a value-set. It is only defined when there is exactly one region. |
Property | min |
The minimum integer value of a value-set. It is only defined when there is exactly one region. |
Property | name |
Undocumented |
Property | regions |
Undocumented |
Property | reversed |
Undocumented |
Property | unique |
Undocumented |
Property | valueset |
Undocumented |
Method | _merge |
Undocumented |
Method | _set |
Undocumented |
Instance Variable | _bits |
Undocumented |
Instance Variable | _name |
Undocumented |
Instance Variable | _region |
Undocumented |
Instance Variable | _regions |
Undocumented |
Instance Variable | _reversed |
Undocumented |
Instance Variable | _si |
Undocumented |
Inherited from BackendObject
:
Method | to |
Claripy calls this to retrieve something that it can directly reason about. |
Class Variable | __slots__ |
Undocumented |
Binary operation: addition Note that even if "other" is a ValueSet object. we still treat it as a StridedInterval. Adding two ValueSets together does not make sense (which is essentially adding two pointers together). :param StridedInterval other: The other operand. :return: A new ValueSet object :rtype: ValueSet
Binary operation: and Note that even if `other` is a ValueSet object, it will be treated as a StridedInterval as well. Doing & between two pointers that are not the same do not make sense. :param other: The other operand :return: A ValueSet as the result :rtype: ValueSet
Constructor. :param str name: Name of this ValueSet object. Only for debugging purposes. :param str region: Region ID. :param int region_base_addr: Base address of the region. :param int bits: Size of the ValueSet. :param val: an initial offset
Binary operation: subtraction :param other: The other operand :return: A StridedInterval or a ValueSet.
Apply a new annotation onto self, and return a new ValueSet object. :param RegionAnnotation annotation: The annotation to apply. :return: A new ValueSet object :rtype: ValueSet
Operation extract - A cheap hack is implemented: a copy of self is returned if (high_bit - low_bit + 1 == self.bits), which is a ValueSet instance. Otherwise a StridedInterval is returned. :param high_bit: :param low_bit: :return: A ValueSet or a StridedInterval
Used to make exact comparisons between two ValueSets. :param o: The other ValueSet to compare with. :return: True if they are exactly same, False otherwise.
The maximum integer value of a value-set. It is only defined when there is exactly one region. :return: A integer that represents the maximum integer value of this value-set. :rtype: int