let bw_not v = let b = v.bits in let n = Array.length b in let a = Array.create n 0 in for i = 0 to n - 1 do a.(i) <- max_int land (lnot b.(i)) done; let r = { length = v.length; bits = a } in normalize r; r