Skip to content

Commit

Permalink
Add a link to issue 1296
Browse files Browse the repository at this point in the history
  • Loading branch information
Halbaroth committed Feb 14, 2025
1 parent 56d4cb1 commit f94d1b5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/lib/reasoners/adt_rel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,9 @@ let build_constr_eq r c =
in
let xs = List.map (fun (_, ty) -> E.fresh_name ty) ds in
let cons = E.mk_constr c xs ty in
(* In `X.make`, we produce a non-empty context for record constructors.
In the below case, the context [ctx] has the form:
cons.x1 = .k1, ..., cons.xn = .kn
where x1, ..., xn are the record fields and .k1, ..., .kn are fresh
terms generated earlier.
Usually, the equations of the context are propagated as facts to
CC(X) via [Ccx.add_term]. Since .ki are fresh terms, adding these
facts could not contribute to any meaningful reasoning. *)
(* XXX: we do not propagate the context of X.make to the matching
environment. It could be better to do it. See issue
https://github.com/OCamlPro/alt-ergo/issues/1296 *)
let r', _ctx = X.make cons in
let eq = Shostak.L.(view @@ mk_eq r r') in
Some (eq, cons)
Expand Down

0 comments on commit f94d1b5

Please sign in to comment.