aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtlib2/smtlib2_genConstr.ml
diff options
context:
space:
mode:
authorckeller <ckeller@users.noreply.github.com>2021-02-23 17:06:51 +0100
committerGitHub <noreply@github.com>2021-02-23 17:06:51 +0100
commit240b76807340e59bb85b35e3ebbb807792459912 (patch)
tree22d60d5c8db5034bdd9045e8579df14406ac69bc /src/smtlib2/smtlib2_genConstr.ml
parent74558c622de91801e3e188bdf690eb9a665f965b (diff)
downloadsmtcoq-240b76807340e59bb85b35e3ebbb807792459912.tar.gz
smtcoq-240b76807340e59bb85b35e3ebbb807792459912.zip
Link equality on uninterpreted sorts with SMT equality (#86)
Equality is now treated from uninterpreted sorts, which makes them usable with tactics! Closes #17 Closes #78
Diffstat (limited to 'src/smtlib2/smtlib2_genConstr.ml')
-rw-r--r--src/smtlib2/smtlib2_genConstr.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/smtlib2/smtlib2_genConstr.ml b/src/smtlib2/smtlib2_genConstr.ml
index f938671..3df6a92 100644
--- a/src/smtlib2/smtlib2_genConstr.ml
+++ b/src/smtlib2/smtlib2_genConstr.ml
@@ -101,8 +101,7 @@ let declare_sort_from_name rt s =
let compdec_type = mklApp cCompDec [| cons_t |] in
let compdec_var =
Structures.declare_new_variable (Structures.mkId ("CompDec_"^s)) compdec_type in
- let ce = mklApp cTyp_compdec [|cons_t; compdec_var|] in
- let res = SmtBtype.declare rt cons_t ce in
+ let res = SmtBtype.of_coq_compdec rt cons_t compdec_var in
SmtMaps.add_btype s res;
res
@@ -190,7 +189,7 @@ let make_root ra rf t =
| "=", [a;b] ->
(match make_root_term a, make_root_term b with
| Atom a', Atom b' when Atom.type_of a' <> Tbool ->
- Atom (Atom.mk_eq ra (Atom.type_of a') a' b')
+ Atom (Atom.mk_eq_sym ra (Atom.type_of a') a' b')
| _ -> Form (Form.get rf (Fapp (Fiff, [|make_root a; make_root b|])))
)
| "<", [a;b] ->