mirror of
https://github.com/Z3Prover/z3
synced 2026-07-03 05:46:08 +00:00
update wcnf front-end and add new wcnf strategy
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
17dffc67c9
commit
5c4a3128c4
6 changed files with 168 additions and 5 deletions
|
|
@ -38,6 +38,14 @@ namespace opt {
|
|||
m_core(c), m_weight(w) {}
|
||||
};
|
||||
|
||||
struct weighted_soft {
|
||||
expr_ref soft;
|
||||
expr_ref def;
|
||||
rational weight;
|
||||
weighted_soft(expr_ref const& s, expr_ref const& d, rational const& w): soft(s), def(d), weight(w) {}
|
||||
};
|
||||
using weighted_softs = vector<weighted_soft>;
|
||||
|
||||
class maxsat_context;
|
||||
|
||||
class maxsmt_solver {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue