Skip to content

Commit

Permalink
fix: Actually add explanation for intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Mar 26, 2024
1 parent e609c98 commit f8e8bba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/reasoners/bitv_rel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ module Interval_domain : Rel_utils.Domain with type t = Intervals.t = struct
| _ -> assert false

let intersect ~ex x y =
try
Intervals.intersect x y
with Inconsistent ex' ->
match Intervals.intersect x y with
| xy -> Intervals.add_explanation xy ex
| exception Inconsistent ex' ->
raise @@ Inconsistent (Ex.union ex ex')

let lognot sz int =
Expand Down

0 comments on commit f8e8bba

Please sign in to comment.