mirror of
https://github.com/Z3Prover/z3
synced 2026-06-30 04:18:53 +00:00
use expr based access to enodes to allow for storing first-class lambas
This commit is contained in:
parent
5f3088f3b5
commit
2cc4422018
54 changed files with 301 additions and 279 deletions
|
|
@ -105,7 +105,7 @@ namespace smt {
|
|||
proc = alloc(expr_wrapper_proc, m.mk_false());
|
||||
}
|
||||
else if (m.is_model_value(r->get_expr()))
|
||||
proc = alloc(expr_wrapper_proc, r->get_expr());
|
||||
proc = alloc(expr_wrapper_proc, r->get_app());
|
||||
else {
|
||||
family_id fid = s->get_family_id();
|
||||
theory * th = m_context->get_theory(fid);
|
||||
|
|
@ -384,7 +384,7 @@ namespace smt {
|
|||
// send model
|
||||
for (enode * n : m_context->enodes()) {
|
||||
if (is_uninterp_const(n->get_expr()) && m_context->is_relevant(n)) {
|
||||
func_decl * d = n->get_expr()->get_decl();
|
||||
func_decl * d = n->get_decl();
|
||||
TRACE(mg_top_sort, tout << d->get_name() << " " << (m_hidden_ufs.contains(d)?"hidden":"visible") << "\n";);
|
||||
if (m_hidden_ufs.contains(d)) continue;
|
||||
expr * val = get_value(n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue