mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 15:55:46 +00:00
fix debug assertion code, make maxlex optional
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d3d392da41
commit
1ed68906fa
3 changed files with 5 additions and 8 deletions
|
@ -232,10 +232,11 @@ namespace opt {
|
|||
lbool maxsmt::operator()() {
|
||||
lbool is_sat = l_undef;
|
||||
m_msolver = nullptr;
|
||||
opt_params optp(m_params);
|
||||
symbol const& maxsat_engine = m_c.maxsat_engine();
|
||||
IF_VERBOSE(1, verbose_stream() << "(maxsmt)\n";);
|
||||
TRACE("opt_verbose", s().display(tout << "maxsmt\n") << "\n";);
|
||||
if (is_maxlex(m_weights)) {
|
||||
if (optp.maxlex_enable() && is_maxlex(m_weights)) {
|
||||
m_msolver = mk_maxlex(m_c, m_index, m_weights, m_soft_constraints);
|
||||
}
|
||||
else if (m_soft_constraints.empty() || maxsat_engine == symbol("maxres") || maxsat_engine == symbol::null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue