mirror of
https://github.com/Z3Prover/z3
synced 2025-06-22 22:03:39 +00:00
fix and coallesce clique functionality
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1600823435
commit
ea601dd403
17 changed files with 361 additions and 119 deletions
|
@ -51,7 +51,10 @@ namespace opt {
|
|||
obj_map<expr, rational>::iterator it = soft.begin(), end = soft.end();
|
||||
for (; it != end; ++it) {
|
||||
wth().assert_weighted(it->m_key, it->m_value);
|
||||
m_upper += it->m_value;
|
||||
expr_ref tmp(m);
|
||||
if (!m_model->eval(it->m_key, tmp) || !m.is_true(tmp)) {
|
||||
m_upper += it->m_value;
|
||||
}
|
||||
}
|
||||
trace_bounds("wmax");
|
||||
while (l_true == is_sat && m_lower < m_upper) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue