Skip to content

Commit ff3641e

Browse files
committed
Trim trailing whitespace in EnumsDomain
1 parent f2500d5 commit ff3641e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/cdomain/value/cdomains/int/enumsDomain.ml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,16 @@ module Enums : S with type int_t = Z.t = struct
250250
let is_excl_list = BatOption.is_some % to_excl_list
251251
let to_incl_list = function Inc s when not (BISet.is_empty s) -> Some (BISet.elements s) | _ -> None
252252

253-
let to_bitfield ik x =
254-
let ik_mask = snd (Size.range ik) in
253+
let to_bitfield ik x =
254+
let ik_mask = snd (Size.range ik) in
255255
let one_mask = Z.lognot Z.zero in
256-
match x with
257-
| Inc i when BISet.is_empty i -> (Z.zero, Z.zero)
258-
| Inc i when BISet.is_singleton i ->
259-
let o = BISet.choose i in
260-
let o = if Cil.isSigned ik then o else Z.logand ik_mask o in
261-
(Z.lognot o, o)
262-
| Inc i -> BISet.fold (fun o (az, ao) -> (Z.logor (Z.lognot o) az, Z.logor (if Cil.isSigned ik then o else Z.logand ik_mask o) ao)) i (Z.zero, Z.zero)
256+
match x with
257+
| Inc i when BISet.is_empty i -> (Z.zero, Z.zero)
258+
| Inc i when BISet.is_singleton i ->
259+
let o = BISet.choose i in
260+
let o = if Cil.isSigned ik then o else Z.logand ik_mask o in
261+
(Z.lognot o, o)
262+
| Inc i -> BISet.fold (fun o (az, ao) -> (Z.logor (Z.lognot o) az, Z.logor (if Cil.isSigned ik then o else Z.logand ik_mask o) ao)) i (Z.zero, Z.zero)
263263
| _ when Cil.isSigned ik -> (one_mask, one_mask)
264264
| _ -> (one_mask, ik_mask)
265265

@@ -376,8 +376,8 @@ module Enums : S with type int_t = Z.t = struct
376376
| _ -> a
377377

378378
let refine_with_bitfield ik x (z,o) =
379-
match x, BitfieldDomain.Bitfield.to_int (z,o) with
380-
| Inc _, Some y ->
379+
match x, BitfieldDomain.Bitfield.to_int (z,o) with
380+
| Inc _, Some y ->
381381
meet ik x (Inc (BISet.singleton y))
382382
| _ ->
383383
x

0 commit comments

Comments
 (0)