3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 01:40:22 +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:
Nikolaj Bjorner 2023-04-24 20:20:26 -07:00
parent 7a689c3298
commit fdd5c923ed
3 changed files with 6 additions and 6 deletions

View file

@ -137,7 +137,7 @@ namespace opt {
params_ref m_params;
public:
maxsmt(maxsat_context& c, unsigned id);
lbool operator()();
lbool operator()(bool committed);
void updt_params(params_ref& p);
void add(expr* f, rational const& w);
unsigned size() const { return m_soft.size(); }