mirror of
https://github.com/Z3Prover/z3
synced 2025-10-03 14:33:56 +00:00
use only maxres if there is a lexicographic objective, fix #6697
- maxlex.enable heuristic does not work if it is chained among multiple objectives. Only maxres is set up to commit the proper constraints.
This commit is contained in:
parent
7a689c3298
commit
fdd5c923ed
3 changed files with 6 additions and 6 deletions
|
@ -453,8 +453,8 @@ namespace opt {
|
|||
lbool context::execute_maxsat(symbol const& id, bool committed, bool scoped) {
|
||||
model_ref tmp;
|
||||
maxsmt& ms = *m_maxsmts.find(id);
|
||||
if (scoped) get_solver().push();
|
||||
lbool result = ms();
|
||||
if (scoped) get_solver().push();
|
||||
lbool result = ms(committed);
|
||||
if (result != l_false && (ms.get_model(tmp, m_labels), tmp.get())) {
|
||||
ms.get_model(m_model, m_labels);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue