mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
fix E instantiation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
74cfcc4730
commit
12819640b7
|
@ -1437,10 +1437,10 @@ namespace smtfd {
|
||||||
unsigned sz = q->get_num_decls();
|
unsigned sz = q->get_num_decls();
|
||||||
vars.resize(sz, nullptr);
|
vars.resize(sz, nullptr);
|
||||||
for (unsigned i = 0; i < sz; ++i) {
|
for (unsigned i = 0; i < sz; ++i) {
|
||||||
vars[sz - i - 1] = m.mk_fresh_const(q->get_decl_name(i), q->get_decl_sort(i));
|
vars[i] = m.mk_fresh_const(q->get_decl_name(i), q->get_decl_sort(i));
|
||||||
}
|
}
|
||||||
var_subst subst(m);
|
var_subst subst(m);
|
||||||
expr_ref body = subst(tmp, vars.size(), vars.c_ptr());
|
expr_ref body = subst(q->get_expr(), vars.size(), vars.c_ptr());
|
||||||
if (is_exists(q)) {
|
if (is_exists(q)) {
|
||||||
body = m.mk_implies(q, body);
|
body = m.mk_implies(q, body);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue