mirror of
https://github.com/Z3Prover/z3
synced 2026-02-20 07:24:40 +00:00
fix #2817 - rows may apparently not be correct (root cause of this tbd), but avoid Gomory on incorrect rows
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
05da2508bf
commit
ad965ac896
2 changed files with 5 additions and 1 deletions
|
|
@ -147,6 +147,9 @@ lia_move int_solver::proceed_with_gomory_cut(unsigned j) {
|
|||
if (!is_gomory_cut_target(row))
|
||||
return create_branch_on_column(j);
|
||||
|
||||
if (!m_lar_solver->row_is_correct(row_of_basic_column(j)))
|
||||
return lia_move::undef;
|
||||
|
||||
m_upper = true;
|
||||
return mk_gomory_cut(j, row);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue