This module exists to provide the very basic BitVec definitions required for
Init.Data.UInt.BasicAux.
Converts a natural number to a bitvector of width w, returning the largest representable value
if the number is too large.
Returns 2^w - 1 for natural numbers greater than or equal to 2^w.
Instances For
@[implicit_reducible]
Adds two bitvectors. This can be interpreted as either signed or unsigned addition modulo 2^n.
Usually accessed via the + operator.
SMT-LIB name: bvadd.
Instances For
@[implicit_reducible]
Subtracts one bitvector from another. This can be interpreted as either signed or unsigned subtraction
modulo 2^n. Usually accessed via the - operator.