Skip to content

Commit d740274

Browse files
use derived equal
1 parent aa70d56 commit d740274

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,7 @@ module BitfieldFunctor (Ints_t : IntOps.IntOps): Bitfield_SOverflow with type in
285285

286286
let meet ik x y = norm ik @@ (BArith.meet x y)
287287

288-
let equal_bf (z1,o1) (z2,o2) = Ints_t.equal z1 z2 && Ints_t.equal o1 o2
289-
290-
let leq (x:t) (y:t) = equal_bf (BArith.join x y) y
288+
let leq (x:t) (y:t) = equal (BArith.join x y) y
291289

292290
let widen ik x y = norm ik @@ BArith.widen x y
293291

@@ -359,7 +357,7 @@ module BitfieldFunctor (Ints_t : IntOps.IntOps): Bitfield_SOverflow with type in
359357

360358
let to_bool d =
361359
if not (leq BArith.zero d) then Some true
362-
else if equal_bf d BArith.zero then Some false
360+
else if equal d BArith.zero then Some false
363361
else None
364362

365363
let of_bitfield ik x = norm ik x

0 commit comments

Comments
 (0)