Skip to content

Commit

Permalink
subst must always trigger or we miss simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Jul 29, 2024
1 parent 73c9b76 commit 94ad32d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/reasoners/rel_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1082,10 +1082,8 @@ struct
let nrr_nf = NF.normal_form nrr in
let nrrd = find_or_default nrr_nf t in
let nnrrd = D.intersect nrrd rrd in
let t =
if D.equal nnrrd rrd then t
else { t with triggers = W.Set.union ws t.triggers }
in
(* Always trigger to ensure we check for simplifications. *)
let t = { t with triggers = W.Set.union ws t.triggers } in
let t =
match nrr_nf with
| Constant _ -> t
Expand Down

0 comments on commit 94ad32d

Please sign in to comment.