mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
detect the status change in lar_solver::add_equality()
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
ee8aa50750
commit
e0b95979e6
|
@ -2368,6 +2368,9 @@ std::pair<constraint_index, constraint_index> lar_solver::add_equality(lpvar j,
|
|||
coeffs.push_back(std::make_pair(mpq(1),j));
|
||||
coeffs.push_back(std::make_pair(mpq(-1),k));
|
||||
unsigned term_index = add_term(coeffs, UINT_MAX); // UINT_MAX is the external null var
|
||||
if (get_column_value(j) != get_column_value(k))
|
||||
set_status(lp_status::UNKNOWN);
|
||||
|
||||
return std::pair<constraint_index, constraint_index>(
|
||||
add_var_bound(term_index, lconstraint_kind::LE, mpq(0)),
|
||||
add_var_bound(term_index, lconstraint_kind::GE, mpq(0)));
|
||||
|
|
Loading…
Reference in a new issue