Documentation

Cvc.Untyped.Theory.BitVec

Generated bit-vector constructors, sort-erased #

def Cvc.Untyped.Term.intToBv [Ω] (size : Nat) (arg : Term) :

Conversion of an integer to a bit-vector of the given size, modulo 2 ^ size.

Equations
Instances For

    Bitwise exclusive disjunction.

    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Bitwise negated conjunction.

        Equations
        Instances For

          Signed less-than.

          Equations
          Instances For

            Signed less-than-or-equal-to.

            Equations
            Instances For

              Conversion to an integer, reading the bit-vector as signed.

              Equations
              Instances For

                Rotation to the left by the given number of bits.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  Whether signed subtraction overflows.

                  Equations
                  Instances For

                    Signed remainder, sign following the divisor; the dividend on a zero divisor.

                    Equations
                    Instances For

                      Logical left shift of lft by rgt bits.

                      Equations
                      Instances For

                        Signed greater-than-or-equal-to.

                        Equations
                        Instances For
                          def Cvc.Untyped.Term.bvExtract [Ω] (hi lo : Nat) (bv : Term) :

                          Bits hi down to lo of bv, bit 0 being the least significant; needs lo ≤ hi < n.

                          Equations
                          Instances For

                            Whether signed division overflows.

                            Equations
                            Instances For

                              Rotation to the right by the given number of bits.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                Conversion to an integer, reading the bit-vector as unsigned.

                                Equations
                                Instances For

                                  Whether signed addition overflows.

                                  Equations
                                  Instances For

                                    Bitwise conjunction.

                                    Equations
                                    Instances For

                                      Extension with the given number of zeroes.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        def Cvc.Untyped.Term.bvIte [Ω] (cnd thn els : Term) :

                                        Bit-vector conditional, selecting on a one-bit condition.

                                        Equations
                                        Instances For

                                          Addition modulo 2 ^ n.

                                          Equations
                                          Instances For

                                            Unsigned less-than, as a one-bit bit-vector.

                                            Equations
                                            Instances For
                                              def Cvc.Untyped.Term.bvRepeat [Ω] (count : Nat) (bv : Term) :

                                              The given number of copies of a bit-vector, concatenated.

                                              Equations
                                              Instances For

                                                Disjunction of all the bits, as a one-bit bit-vector.

                                                Equations
                                                Instances For

                                                  Arithmetic right shift of lft by rgt bits.

                                                  Equations
                                                  Instances For

                                                    Signed greater-than.

                                                    Equations
                                                    Instances For

                                                      Bitwise negation.

                                                      Equations
                                                      Instances For

                                                        Bit-level comparison, 1 when both arguments are equal and 0 otherwise.

                                                        Equations
                                                        Instances For

                                                          Unsigned less-than.

                                                          Equations
                                                          Instances For

                                                            Signed remainder, sign following the dividend; the dividend on a zero divisor.

                                                            Equations
                                                            Instances For

                                                              Unsigned greater-than.

                                                              Equations
                                                              Instances For

                                                                Bitwise negated exclusive disjunction.

                                                                Equations
                                                                Instances For

                                                                  Bitwise negated disjunction.

                                                                  Equations
                                                                  Instances For

                                                                    Whether unsigned multiplication overflows.

                                                                    Equations
                                                                    Instances For
                                                                      def Cvc.Untyped.Term.mkBitVecOfString [Ω] (size : Nat) (repr : String) (base : UInt32) :

                                                                      A bit-vector literal of the given size, read in base, which must be 2, 10 or 16.

                                                                      Equations
                                                                      Instances For

                                                                        Unsigned less-than-or-equal-to.

                                                                        Equations
                                                                        Instances For
                                                                          def Cvc.Untyped.Term.bvOr [Ω] (lft rgt : Term) :

                                                                          Bitwise disjunction.

                                                                          Equations
                                                                          Instances For

                                                                            Whether two's-complement negation overflows.

                                                                            Equations
                                                                            Instances For
                                                                              Equations
                                                                              • One or more equations did not get rendered due to their size.
                                                                              Instances For

                                                                                Unsigned greater-than-or-equal-to.

                                                                                Equations
                                                                                Instances For

                                                                                  Extension with the given number of copies of the sign bit.

                                                                                  Equations
                                                                                  • One or more equations did not get rendered due to their size.
                                                                                  Instances For

                                                                                    Whether signed multiplication overflows.

                                                                                    Equations
                                                                                    Instances For

                                                                                      Whether unsigned addition overflows.

                                                                                      Equations
                                                                                      Instances For

                                                                                        Conjunction of all the bits, as a one-bit bit-vector.

                                                                                        Equations
                                                                                        Instances For

                                                                                          Logical right shift of lft by rgt bits.

                                                                                          Equations
                                                                                          Instances For

                                                                                            Multiplication modulo 2 ^ n.

                                                                                            Equations
                                                                                            Instances For
                                                                                              def Cvc.Untyped.Term.mkBitVec [Ω] (size : Nat) (value : UInt64) :

                                                                                              A bit-vector literal of the given size, keeping the low size bits of value.

                                                                                              Equations
                                                                                              Instances For

                                                                                                Signed less-than, as a one-bit bit-vector.

                                                                                                Equations
                                                                                                Instances For

                                                                                                  Unsigned division, truncating towards zero; all ones on a zero divisor.

                                                                                                  Equations
                                                                                                  Instances For
                                                                                                    Equations
                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                    Instances For

                                                                                                      Unsigned remainder; the dividend on a zero divisor.

                                                                                                      Equations
                                                                                                      Instances For

                                                                                                        Subtraction modulo 2 ^ n.

                                                                                                        Equations
                                                                                                        Instances For

                                                                                                          Signed division, truncating towards zero.

                                                                                                          On a zero divisor: -1 for a non-negative dividend, 1 for a negative one.

                                                                                                          Equations
                                                                                                          Instances For

                                                                                                            Concatenation, lft giving the most significant bits.

                                                                                                            Equations
                                                                                                            Instances For

                                                                                                              Whether unsigned subtraction overflows.

                                                                                                              Equations
                                                                                                              Instances For

                                                                                                                Two's-complement negation.

                                                                                                                Equations
                                                                                                                Instances For
                                                                                                                  Equations
                                                                                                                  • One or more equations did not get rendered due to their size.
                                                                                                                  Instances For
                                                                                                                    Equations
                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                    Instances For

                                                                                                                      Takes a term apart one level, if BitVec owns its operator.

                                                                                                                      Equations
                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                      Instances For

                                                                                                                        BitVec's operators, taken apart one level, sort-erased.

                                                                                                                        Instances For

                                                                                                                          Values #

                                                                                                                          Determine if this term is a bit-vector value.

                                                                                                                          Equations
                                                                                                                          Instances For
                                                                                                                            def Cvc.Untyped.Term.getBitVecValue [Ω] {size : Nat} (term : Term) :
                                                                                                                            Env (BitVec size)

                                                                                                                            The bit-vector a constant term denotes, failing unless it has the expected size.

                                                                                                                            Equations
                                                                                                                            • One or more equations did not get rendered due to their size.
                                                                                                                            Instances For
                                                                                                                              @[instance_reducible]
                                                                                                                              Equations
                                                                                                                              • One or more equations did not get rendered due to their size.