mirror of
https://github.com/Z3Prover/z3
synced 2026-06-28 03:18:49 +00:00
refactor solver to include settable stats
This commit is contained in:
parent
241c6211d6
commit
1f5132c396
22 changed files with 42 additions and 30 deletions
|
|
@ -1745,7 +1745,7 @@ namespace opt {
|
|||
m_pareto1 = p != nullptr;
|
||||
}
|
||||
|
||||
void context::collect_statistics(statistics& stats) const {
|
||||
void context::collect_statistics_core(statistics& stats) const {
|
||||
if (m_solver)
|
||||
m_solver->collect_statistics(stats);
|
||||
if (m_simplify)
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ namespace opt {
|
|||
void get_model_core(model_ref& _m) override;
|
||||
void get_box_model(model_ref& _m, unsigned index) override;
|
||||
void fix_model(model_ref& _m) override;
|
||||
void collect_statistics(statistics& stats) const override;
|
||||
void collect_statistics_core(statistics& stats) const override;
|
||||
proof* get_proof_core() override { return nullptr; }
|
||||
void get_labels(svector<symbol> & r) override;
|
||||
void get_unsat_core(expr_ref_vector & r) override;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ namespace opt {
|
|||
virtual void collect_param_descrs(param_descrs & r) {
|
||||
m_solver->collect_param_descrs(r);
|
||||
}
|
||||
virtual void collect_statistics(statistics & st) const {
|
||||
virtual void collect_statistics_core(statistics & st) const {
|
||||
m_solver->collect_statistics(st);
|
||||
if (m_bvsls) m_bvsls->collect_statistics(st);
|
||||
if (m_pbsls) m_pbsls->collect_statistics(st);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ namespace opt {
|
|||
m_context.collect_param_descrs(r);
|
||||
}
|
||||
|
||||
void opt_solver::collect_statistics(statistics & st) const {
|
||||
void opt_solver::collect_statistics_core(statistics & st) const {
|
||||
m_context.collect_statistics(st);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ namespace opt {
|
|||
solver* translate(ast_manager& m, params_ref const& p) override;
|
||||
void updt_params(params_ref const& p) override;
|
||||
void collect_param_descrs(param_descrs & r) override;
|
||||
void collect_statistics(statistics & st) const override;
|
||||
void collect_statistics_core(statistics & st) const override;
|
||||
void assert_expr_core(expr * t) override;
|
||||
void push_core() override;
|
||||
void pop_core(unsigned n) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue