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 29, 2024
1 parent 812b2fb commit 83dd9d7
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 83dd9d7

Please sign in to comment.