mirror of
https://github.com/Z3Prover/z3
synced 2025-05-03 22:05:45 +00:00
correctly process cancellation in gomory cuts
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
b99c4a47a4
commit
342dccdc02
2 changed files with 6 additions and 2 deletions
|
@ -527,7 +527,7 @@ public:
|
|||
has_small_cut = true;
|
||||
add_cut(cc.m_t, cc.m_k, cc.m_dep);
|
||||
if (lia.settings().get_cancel_flag())
|
||||
return lia_move::undef;
|
||||
return lia_move::cancelled;
|
||||
}
|
||||
|
||||
if (big_cuts.size()) {
|
||||
|
@ -544,6 +544,9 @@ public:
|
|||
|
||||
if (!_check_feasible())
|
||||
return lia_move::conflict;
|
||||
|
||||
if (lra.get_status() == lp_status::CANCELLED)
|
||||
return lia_move::cancelled;
|
||||
|
||||
if (!lia.has_inf_int())
|
||||
return lia_move::sat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue