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 22, 2024
1 parent 809cfa1 commit c7ad3c9
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 c7ad3c9

Please sign in to comment.