@@ -299,15 +299,15 @@ struct
299299 let ex = if Z. gt x Z. zero || Z. lt y Z. zero then S. singleton Z. zero else S. empty () in
300300 norm ik @@ (`Excluded (ex, r))
301301
302- let to_bitfield ik x =
303- match x with
304- | `Definite c -> (Z. lognot c, c)
305- | _ when Cil. isSigned ik ->
306- let one_mask = Z. lognot Z. zero in
302+ let to_bitfield ik x =
303+ match x with
304+ | `Definite c -> (Z. lognot c, c)
305+ | _ when Cil. isSigned ik ->
306+ let one_mask = Z. lognot Z. zero in
307307 (one_mask, one_mask)
308- | _ ->
309- let one_mask = Z. lognot Z. zero in
310- let ik_mask = snd (Size. range ik) in
308+ | _ ->
309+ let one_mask = Z. lognot Z. zero in
310+ let ik_mask = snd (Size. range ik) in
311311 (one_mask, ik_mask)
312312
313313 let starting ?(suppress_ovwarn =false ) ikind x =
@@ -321,6 +321,9 @@ struct
321321 let of_excl_list t l =
322322 let r = size t in (* elements in l are excluded from the full range of t! *)
323323 `Excluded (List. fold_right S. add l (S. empty () ), r)
324+ (* TODO: Change after #1686 has landed *)
325+ (* `Excluded (S.of_list l, r) *)
326+
324327 let is_excl_list l = match l with `Excluded _ -> true | _ -> false
325328 let to_excl_list (x :t ) = match x with
326329 | `Definite _ -> None
@@ -542,8 +545,8 @@ struct
542545
543546 let refine_with_congruence ik a b = a
544547
545- let refine_with_bitfield ik x (z ,o ) =
546- match BitfieldDomain.Bitfield. to_int (z,o) with
548+ let refine_with_bitfield ik x (z ,o ) =
549+ match BitfieldDomain.Bitfield. to_int (z,o) with
547550 | Some y ->
548551 meet ik x (`Definite y)
549552 | _ ->
0 commit comments