3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-07-22 11:33:47 -07:00
parent 9a5c0f2312
commit 76427cd281
3 changed files with 10 additions and 1 deletions

View file

@ -999,6 +999,10 @@ bool goal2sat::has_interpreted_funs() const {
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) {
if (m_imp)
m_imp->update_model(mdl);

View file

@ -66,6 +66,8 @@ public:
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);
void update_model(model_ref& mdl);

View file

@ -113,8 +113,11 @@ class sat_tactic : public tactic {
break;
}
}
bool euf = m_goal2sat.has_euf();
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";);
m_goal2sat.update_model(md);