Skip to content

Commit 6bc71bb

Browse files
committed
Use IInt ikind for DefExc eq and ne tops
1 parent e2a74e7 commit 6bc71bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,11 @@ struct
380380
(* The equality check: *)
381381
let eq ik x y = match x,y with
382382
(* Not much to do with two exclusion sets: *)
383-
| `Excluded _, `Excluded _ -> top_of ik
383+
| `Excluded _, `Excluded _ -> top_of IInt
384384
(* Is x equal to an exclusion set, if it is a member then NO otherwise we
385385
* don't know: *)
386-
| `Definite x, `Excluded (s,r) -> if S.mem x s then of_bool IInt false else top_of ik
387-
| `Excluded (s,r), `Definite x -> if S.mem x s then of_bool IInt false else top_of ik
386+
| `Definite x, `Excluded (s,r) -> if S.mem x s then of_bool IInt false else top_of IInt
387+
| `Excluded (s,r), `Definite x -> if S.mem x s then of_bool IInt false else top_of IInt
388388
(* The good case: *)
389389
| `Definite x, `Definite y -> of_bool IInt (x = y)
390390
| `Bot, `Bot -> `Bot
@@ -395,11 +395,11 @@ struct
395395
(* The inequality check: *)
396396
let ne ik x y = match x,y with
397397
(* Not much to do with two exclusion sets: *)
398-
| `Excluded _, `Excluded _ -> top_of ik
398+
| `Excluded _, `Excluded _ -> top_of IInt
399399
(* Is x unequal to an exclusion set, if it is a member then Yes otherwise we
400400
* don't know: *)
401-
| `Definite x, `Excluded (s,r) -> if S.mem x s then of_bool IInt true else top_of ik
402-
| `Excluded (s,r), `Definite x -> if S.mem x s then of_bool IInt true else top_of ik
401+
| `Definite x, `Excluded (s,r) -> if S.mem x s then of_bool IInt true else top_of IInt
402+
| `Excluded (s,r), `Definite x -> if S.mem x s then of_bool IInt true else top_of IInt
403403
(* The good case: *)
404404
| `Definite x, `Definite y -> of_bool IInt (x <> y)
405405
| `Bot, `Bot -> `Bot

0 commit comments

Comments
 (0)