mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
fixes in patch blocking
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
4728a1fb0c
commit
e7bb8e57cb
3 changed files with 10 additions and 10 deletions
|
@ -358,7 +358,7 @@ public:
|
|||
|
||||
template <typename Blocker, typename ChangeReport>
|
||||
bool try_to_patch(lpvar j, const mpq& val,
|
||||
const Blocker& blocker,
|
||||
const Blocker& is_blocked,
|
||||
const ChangeReport& change_report) {
|
||||
if (is_base(j)) {
|
||||
TRACE("nla_solver", get_int_solver()->display_row_info(tout, row_of_basic_column(j)) << "\n";);
|
||||
|
@ -367,7 +367,7 @@ public:
|
|||
}
|
||||
|
||||
impq ival(val);
|
||||
if (!blocker(j, ival))
|
||||
if (is_blocked(j, ival))
|
||||
return false;
|
||||
|
||||
impq delta = get_column_value(j) - ival;
|
||||
|
@ -378,7 +378,7 @@ public:
|
|||
impq rj_new_val = a * delta + get_column_value(rj);
|
||||
// if (column_is_int(rj) && !rj_new_val.is_int())
|
||||
// return false;
|
||||
if (blocker(rj, rj_new_val))
|
||||
if (is_blocked(rj, rj_new_val))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue