1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
Bit-Vectors
============
Basic Bit-Vector Term Builders
----------------------------------
.. autofunction:: cvc5.pythonic.BitVec
.. autofunction:: cvc5.pythonic.BitVecVal
.. autofunction:: cvc5.pythonic.BitVecSort
.. autofunction:: cvc5.pythonic.BitVecs
Bit-Vector Overloads
--------------------
See the following operator overloads for building bit-vector terms.
Each kind of term can also be built with a builder function below.
* arithmetic
addition (``+``)
:py:meth:`cvc5.pythonic.BitVecRef.__add__`
subtraction (``-``)
:py:meth:`cvc5.pythonic.BitVecRef.__sub__`
multiplication (``*``)
:py:meth:`cvc5.pythonic.BitVecRef.__mul__`
division (``/``)
:py:meth:`cvc5.pythonic.BitVecRef.__div__`
* bit-wise
or (``|``)
:py:meth:`cvc5.pythonic.BitVecRef.__or__`
and (``&``)
:py:meth:`cvc5.pythonic.BitVecRef.__and__`
xor (``^``)
:py:meth:`cvc5.pythonic.BitVecRef.__xor__`
bit complement (``~``)
:py:meth:`cvc5.pythonic.BitVecRef.__invert__`
negation (``-``)
:py:meth:`cvc5.pythonic.BitVecRef.__neg__`
left shift (``<<``)
:py:meth:`cvc5.pythonic.BitVecRef.__lshift__`
right shift (``>>``)
:py:meth:`cvc5.pythonic.BitVecRef.__rshift__`
* comparisons
signed greater than (``>``)
:py:meth:`cvc5.pythonic.BitVecRef.__gt__`
signed less than (``<``)
:py:meth:`cvc5.pythonic.BitVecRef.__lt__`
signed greater than or equal to (``>=``)
:py:meth:`cvc5.pythonic.BitVecRef.__ge__`
signed less than or equal to (``<=``)
:py:meth:`cvc5.pythonic.BitVecRef.__le__`
equal (``==``)
:py:meth:`cvc5.pythonic.ExprRef.__eq__`
not equal (``!=``)
:py:meth:`cvc5.pythonic.ExprRef.__ne__`
Bit-Vector Term Builders
------------------------
.. autofunction:: cvc5.pythonic.BV2Int
.. autofunction:: cvc5.pythonic.Int2BV
.. autofunction:: cvc5.pythonic.Concat
.. autofunction:: cvc5.pythonic.Extract
.. autofunction:: cvc5.pythonic.ULE
.. autofunction:: cvc5.pythonic.ULT
.. autofunction:: cvc5.pythonic.UGE
.. autofunction:: cvc5.pythonic.UGT
.. autofunction:: cvc5.pythonic.SLE
.. autofunction:: cvc5.pythonic.SLT
.. autofunction:: cvc5.pythonic.SGE
.. autofunction:: cvc5.pythonic.SGT
.. autofunction:: cvc5.pythonic.UDiv
.. autofunction:: cvc5.pythonic.URem
.. autofunction:: cvc5.pythonic.SDiv
.. autofunction:: cvc5.pythonic.SMod
.. autofunction:: cvc5.pythonic.SRem
.. autofunction:: cvc5.pythonic.LShR
.. autofunction:: cvc5.pythonic.RotateLeft
.. autofunction:: cvc5.pythonic.RotateRight
.. autofunction:: cvc5.pythonic.SignExt
.. autofunction:: cvc5.pythonic.ZeroExt
.. autofunction:: cvc5.pythonic.RepeatBitVec
.. autofunction:: cvc5.pythonic.BVRedAnd
.. autofunction:: cvc5.pythonic.BVRedOr
.. autofunction:: cvc5.pythonic.BVAdd
.. autofunction:: cvc5.pythonic.BVMult
.. autofunction:: cvc5.pythonic.BVSub
.. autofunction:: cvc5.pythonic.BVOr
.. autofunction:: cvc5.pythonic.BVAnd
.. autofunction:: cvc5.pythonic.BVXor
.. autofunction:: cvc5.pythonic.BVNeg
.. autofunction:: cvc5.pythonic.BVNot
Testers
-------------------
.. autofunction:: cvc5.pythonic.is_bv_sort
.. autofunction:: cvc5.pythonic.is_bv
.. autofunction:: cvc5.pythonic.is_bv_value
Classes (with overloads)
-----------------------------
.. autoclass:: cvc5.pythonic.BitVecSortRef
:members:
:special-members:
.. autoclass:: cvc5.pythonic.BitVecRef
:members:
:special-members:
.. autoclass:: cvc5.pythonic.BitVecNumRef
:members:
:special-members:
|