mirror of
https://github.com/Z3Prover/z3
synced 2025-10-03 22:43:56 +00:00
change default output to print objective value
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e3c35840bb
commit
d9f3625f93
3 changed files with 31 additions and 29 deletions
|
@ -703,25 +703,25 @@ namespace opt {
|
|||
|
||||
void context::update_solver() {
|
||||
sat_params p(m_params);
|
||||
if (p.euf())
|
||||
if (!p.euf() && (!m_enable_sat || !probe_fd()))
|
||||
return;
|
||||
|
||||
if (m_maxsat_engine != symbol("maxres") &&
|
||||
m_maxsat_engine != symbol("rc2") &&
|
||||
m_maxsat_engine != symbol("maxres-bin") &&
|
||||
m_maxsat_engine != symbol("maxres-bin-delay") &&
|
||||
m_maxsat_engine != symbol("pd-maxres") &&
|
||||
m_maxsat_engine != symbol("bcd2") &&
|
||||
m_maxsat_engine != symbol("sls")) {
|
||||
return;
|
||||
if (!p.euf()) {
|
||||
if (!m_enable_sat || !probe_fd()) {
|
||||
return;
|
||||
}
|
||||
if (m_maxsat_engine != symbol("maxres") &&
|
||||
m_maxsat_engine != symbol("pd-maxres") &&
|
||||
m_maxsat_engine != symbol("bcd2") &&
|
||||
m_maxsat_engine != symbol("sls")) {
|
||||
return;
|
||||
}
|
||||
if (opt_params(m_params).priority() == symbol("pareto")) {
|
||||
return;
|
||||
}
|
||||
if (m.proofs_enabled()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (opt_params(m_params).priority() == symbol("pareto"))
|
||||
return;
|
||||
|
||||
if (m.proofs_enabled())
|
||||
return;
|
||||
|
||||
m_params.set_bool("minimize_core_partial", true);
|
||||
m_params.set_bool("minimize_core", true);
|
||||
m_sat_solver = mk_inc_sat_solver(m, m_params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue