3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 00:55:31 +00:00

add op cache

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-06-02 12:52:42 -07:00
parent 023b630b5a
commit 4ef480e2a5
5 changed files with 76 additions and 7 deletions

View file

@ -563,7 +563,11 @@ namespace qe {
m_solver->collect_statistics(st);
}
void reset_statistics() {
init();
clear();
}
void collect_statistics(statistics& st) {
if (m_solver)
m_solver->collect_statistics(st);
}
void clear() {
@ -735,6 +739,7 @@ namespace qe {
m_fa.init();
m_ex.init();
}
/**
\brief create a quantifier prefix formula.
@ -1334,8 +1339,8 @@ namespace qe {
void collect_statistics(statistics & st) const override {
st.copy(m_st);
m_fa.s().collect_statistics(st);
m_ex.s().collect_statistics(st);
m_fa.collect_statistics(st);
m_ex.collect_statistics(st);
m_pred_abs.collect_statistics(st);
st.update("qsat num rounds", m_stats.m_num_rounds);
m_pred_abs.collect_statistics(st);
@ -1348,7 +1353,7 @@ namespace qe {
}
void cleanup() override {
reset();
clear();
}
void set_logic(symbol const & l) override {