mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 02:04:43 +00:00
align lengths of weights and soft constraints
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ddbff6f77b
commit
1c56d6ee95
4 changed files with 14 additions and 6 deletions
|
@ -33,7 +33,7 @@ namespace opt {
|
|||
lbool operator()() {
|
||||
IF_VERBOSE(1, verbose_stream() << "(opt.sls)\n";);
|
||||
init();
|
||||
enable_sls(m_soft);
|
||||
enable_sls(m_soft, m_weights);
|
||||
lbool is_sat = s().check_sat(0, 0);
|
||||
if (is_sat == l_true) {
|
||||
s().get_model(m_model);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue