3
0
Fork 0
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:
Nikolaj Bjorner 2020-01-22 14:29:02 -06:00
parent 05da2508bf
commit ad965ac896
2 changed files with 5 additions and 1 deletions

View file

@ -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);
}