Typed.Bitv8type w = bitv8val zero : tThe bitvector value 0.
val one : tThe bitvector value 1.
val v : Bitvector.t -> tval of_int : int -> tof_int i creates a bitvector term from an integer i.
to_int ~signed t converts the bitvector t to an integer term. If signed is true, t is treated as a 2's complement signed value.
concat t1 t2 concatenates t1 (high bits) and t2 (low bits).
Example: concat (v8 0xAA) (v8 0xBB) results in 0xAABB (16-bit).
extract t ~high ~low extracts the bits from index high down tolow (inclusive).
Example:extract (i32 0xAABBCCDD) ~high:15 ~low:8 results in 0xCC (8-bit).
zero_extend n t extends t to a width of width(t) + n by padding with zeros.
sign_extend n t extends t to a width of width(t) + n by replicating the sign bit.