mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 12:35:59 +00:00
parent
de9bc930e9
commit
7996472923
3 changed files with 14 additions and 3 deletions
|
@ -620,6 +620,8 @@ namespace smt {
|
|||
|
||||
expr_ref bound(get_manager());
|
||||
if (pol.empty()) {
|
||||
if (ante.lits().empty() && ante.eqs().empty())
|
||||
return false;
|
||||
SASSERT(k.is_pos());
|
||||
// conflict 0 >= k where k is positive
|
||||
set_conflict(ante, ante, "gomory-cut");
|
||||
|
|
|
@ -1237,8 +1237,10 @@ theory_diff_logic<Ext>::maximize(theory_var v, expr_ref& blocker, bool& has_shar
|
|||
if (is_simplex_edge(v)) {
|
||||
unsigned edge_id = simplex2edge(v);
|
||||
literal lit = m_graph.get_explanation(edge_id);
|
||||
get_context().literal2expr(lit, tmp);
|
||||
core.push_back(tmp);
|
||||
if (lit != null_literal) {
|
||||
get_context().literal2expr(lit, tmp);
|
||||
core.push_back(tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
compute_delta();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue