mirror of
https://github.com/Z3Prover/z3
synced 2025-08-22 11:07:51 +00:00
This commit is contained in:
parent
9a5c0f2312
commit
76427cd281
3 changed files with 10 additions and 1 deletions
|
@ -999,6 +999,10 @@ bool goal2sat::has_interpreted_funs() const {
|
||||||
return m_imp && !m_imp->interpreted_funs().empty();
|
return m_imp && !m_imp->interpreted_funs().empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool goal2sat::has_euf() const {
|
||||||
|
return m_imp && m_imp->m_euf;
|
||||||
|
}
|
||||||
|
|
||||||
void goal2sat::update_model(model_ref& mdl) {
|
void goal2sat::update_model(model_ref& mdl) {
|
||||||
if (m_imp)
|
if (m_imp)
|
||||||
m_imp->update_model(mdl);
|
m_imp->update_model(mdl);
|
||||||
|
|
|
@ -66,6 +66,8 @@ public:
|
||||||
|
|
||||||
bool has_interpreted_funs() const;
|
bool has_interpreted_funs() const;
|
||||||
|
|
||||||
|
bool has_euf() const;
|
||||||
|
|
||||||
sat::sat_internalizer& si(ast_manager& m, params_ref const& p, sat::solver_core& t, atom2bool_var& a2b, dep2asm_map& dep2asm, bool default_external = false);
|
sat::sat_internalizer& si(ast_manager& m, params_ref const& p, sat::solver_core& t, atom2bool_var& a2b, dep2asm_map& dep2asm, bool default_external = false);
|
||||||
|
|
||||||
void update_model(model_ref& mdl);
|
void update_model(model_ref& mdl);
|
||||||
|
|
|
@ -113,8 +113,11 @@ class sat_tactic : public tactic {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool euf = m_goal2sat.has_euf();
|
||||||
|
|
||||||
for (auto* f : fmls_to_validate)
|
for (auto* f : fmls_to_validate)
|
||||||
if (md->is_false(f))
|
if (!euf && md->is_false(f))
|
||||||
IF_VERBOSE(0, verbose_stream() << "failed to validate: " << mk_pp(f, m) << "\n";);
|
IF_VERBOSE(0, verbose_stream() << "failed to validate: " << mk_pp(f, m) << "\n";);
|
||||||
|
|
||||||
m_goal2sat.update_model(md);
|
m_goal2sat.update_model(md);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue