mirror of
https://github.com/Z3Prover/z3
synced 2025-04-05 17:14:07 +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();
|
||||
vars.resize(sz, nullptr);
|
||||
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);
|
||||
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)) {
|
||||
body = m.mk_implies(q, body);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue