3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

working on weighted maxsat

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-10-28 21:32:41 -07:00
parent d30f183476
commit 1878d64b02

View file

@ -166,6 +166,9 @@ namespace opt {
}
lbool result = s.check_sat_core(0,0);
wth->get_assignment(soft_constraints);
if (!soft_constraints.empty() && result == l_false) {
result = l_true;
}
return result;
}
};