mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
more merges with qsat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
76d637626a
commit
d614fedde2
7 changed files with 31 additions and 5 deletions
|
@ -22,6 +22,7 @@ Revision History:
|
|||
#include"qe.h"
|
||||
|
||||
class qe_tactic : public tactic {
|
||||
statistics m_st;
|
||||
struct imp {
|
||||
ast_manager & m;
|
||||
smt_params m_fparams;
|
||||
|
@ -78,10 +79,19 @@ class qe_tactic : public tactic {
|
|||
g->update(i, new_f, new_pr, g->dep(i));
|
||||
}
|
||||
g->inc_depth();
|
||||
g->elim_true();
|
||||
result.push_back(g.get());
|
||||
TRACE("qe", g->display(tout););
|
||||
SASSERT(g->is_well_sorted());
|
||||
}
|
||||
|
||||
void collect_statistics(statistics & st) const {
|
||||
m_qe.collect_statistics(st);
|
||||
}
|
||||
|
||||
void reset_statistics() {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
imp * m_imp;
|
||||
|
@ -117,7 +127,19 @@ public:
|
|||
proof_converter_ref & pc,
|
||||
expr_dependency_ref & core) {
|
||||
(*m_imp)(in, result, mc, pc, core);
|
||||
m_st.reset();
|
||||
m_imp->collect_statistics(m_st);
|
||||
|
||||
}
|
||||
|
||||
virtual void collect_statistics(statistics & st) const {
|
||||
st.copy(m_st);
|
||||
}
|
||||
|
||||
virtual void reset_statistics() {
|
||||
m_st.reset();
|
||||
}
|
||||
|
||||
|
||||
virtual void cleanup() {
|
||||
ast_manager & m = m_imp->m;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue