3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-03 22:06:11 +00:00

remove get/set max conflicts from solver, handle it using updt_params and get_params.

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-06-12 18:34:08 -07:00
parent 81af0cc230
commit 864c6a3f34
4 changed files with 22 additions and 28 deletions

View file

@ -118,6 +118,12 @@ namespace smt {
if (!m_setup.already_configured()) {
m_fparams.updt_params(p);
}
else {
// selected parameters are safe to update after initialization
params_ref new_p;
new_p.set_uint("max_conflicts", p.get_uint("max_conflicts", UINT_MAX));
m_fparams.updt_params(new_p);
}
for (auto th : m_theory_set)
if (th)
th->updt_params();

View file

@ -267,15 +267,6 @@ namespace {
m_context.set_preprocess(f);
}
void set_max_conflicts(unsigned max_conflicts) override {
auto& ctx = m_context.get_context();
ctx.get_fparams().m_max_conflicts = max_conflicts;
}
unsigned get_max_conflicts() const override {
return m_context.get_context().get_fparams().m_max_conflicts;
}
void get_backbone_candidates(vector<solver::scored_literal>& candidates, unsigned max_num) override {
ast_manager& m = get_manager();
auto& ctx = m_context.get_context();