3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-04 01:15:15 +00:00

refine maxresw option

This commit is contained in:
Nikolaj Bjorner 2026-01-02 16:23:42 -08:00
parent 623b32239c
commit 5dc812728e
4 changed files with 102 additions and 61 deletions

View file

@ -40,9 +40,10 @@ namespace opt {
struct weighted_soft {
expr_ref soft;
expr_ref def;
expr_ref conj;
expr_ref disj;
rational weight;
weighted_soft(expr_ref const& s, expr_ref const& d, rational const& w): soft(s), def(d), weight(w) {}
weighted_soft(expr_ref const& s, expr_ref const& c, expr_ref const& d, rational const& w): soft(s), conj(c), disj(d), weight(w) {}
};
using weighted_softs = vector<weighted_soft>;