mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
parent
2c97799564
commit
60cf482cea
5 changed files with 18 additions and 6 deletions
|
@ -570,7 +570,7 @@ namespace bv {
|
|||
}
|
||||
|
||||
void solver::internalize_ac_binary(app* e, std::function<void(unsigned, expr* const*, expr* const*, expr_ref_vector&)>& fn) {
|
||||
SASSERT(e->get_num_args() >= 2);
|
||||
SASSERT(e->get_num_args() >= 1);
|
||||
expr_ref_vector bits(m), new_bits(m), arg_bits(m);
|
||||
unsigned i = e->get_num_args() - 1;
|
||||
get_arg_bits(e, i, bits);
|
||||
|
|
|
@ -693,6 +693,10 @@ namespace dt {
|
|||
|
||||
void solver::add_value(euf::enode* n, model& mdl, expr_ref_vector& values) {
|
||||
theory_var v = n->get_th_var(get_id());
|
||||
if (v == euf::null_theory_var) {
|
||||
values.set(n->get_root_id(), mdl.get_fresh_value(n->get_sort()));
|
||||
return;
|
||||
}
|
||||
v = m_find.find(v);
|
||||
SASSERT(v != euf::null_theory_var);
|
||||
enode* con = m_var_data[v]->m_constructor;
|
||||
|
@ -705,10 +709,10 @@ namespace dt {
|
|||
|
||||
bool solver::add_dep(euf::enode* n, top_sort<euf::enode>& dep) {
|
||||
if (!is_datatype(n->get_expr()))
|
||||
return true;
|
||||
return false;
|
||||
theory_var v = n->get_th_var(get_id());
|
||||
if (v == euf::null_theory_var)
|
||||
return true;
|
||||
return false;
|
||||
euf::enode* con = m_var_data[m_find.find(v)]->m_constructor;
|
||||
if (con->num_args() == 0)
|
||||
dep.insert(n, nullptr);
|
||||
|
|
|
@ -208,6 +208,7 @@ namespace euf {
|
|||
fi = alloc(func_interp, m, arity);
|
||||
mdl->register_decl(f, fi);
|
||||
}
|
||||
TRACE("euf", tout << f->get_name() << "\n";);
|
||||
args.reset();
|
||||
for (enode* arg : enode_args(n))
|
||||
args.push_back(m_values.get(arg->get_root_id()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue