mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 03:33:35 +00:00
fix po model
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c69e911a79
commit
4e38e90e2b
|
@ -4478,7 +4478,6 @@ namespace smt {
|
|||
}
|
||||
recfun::util u(m);
|
||||
func_decl_ref_vector recfuns = u.get_rec_funs();
|
||||
std::cout << recfuns << "\n";
|
||||
for (func_decl* f : recfuns) {
|
||||
auto& def = u.get_def(f);
|
||||
expr* rhs = def.get_rhs();
|
||||
|
@ -4500,6 +4499,7 @@ namespace smt {
|
|||
fi->set_else(bodyr);
|
||||
m_model->register_decl(f, fi);
|
||||
}
|
||||
TRACE("model", tout << *m_model << "\n";);
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -727,16 +727,14 @@ namespace smt {
|
|||
var* vars3[3] = { xV, yV, SV };
|
||||
p.set_definition(rep, c2, 3, vars3, connected_rec_body);
|
||||
|
||||
#if 0
|
||||
// TBD: doesn't terminate with model_evaluator/rewriter
|
||||
|
||||
// r.m_decl(x,y) -> snd(connected2(x,y,nil))
|
||||
xV = m.mk_var(0, s);
|
||||
yV = m.mk_var(1, s);
|
||||
x = xV, y = yV;
|
||||
|
||||
func_interp* fi = alloc(func_interp, m, 2);
|
||||
fi->set_else(m.mk_app(snd, m.mk_app(conn2, x, y, m.mk_const(nil))));
|
||||
fi->set_else(m.mk_app(snd, m.mk_app(conn2, x, y, m.mk_app(cons, x, m.mk_const(nil)))));
|
||||
mg.get_model().register_decl(r.decl(), fi);
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue