3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 03:15:50 +00:00

more aggressive patching

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-05-26 14:56:13 -07:00
parent e5503cdc65
commit b84585beeb
5 changed files with 27 additions and 26 deletions

View file

@ -323,19 +323,16 @@ public:
const mpq & a = c.coeff();
unsigned rj = m_mpq_lar_core_solver.m_r_basis[row_index];
impq rj_new_val = a * delta + get_column_value(rj);
if (column_is_int(rj) && !rj_new_val.is_int())
return false;
if (!inside_bounds(rj, rj_new_val) || blocker(rj))
// if (column_is_int(rj) && !rj_new_val.is_int())
// return false;
if (blocker(rj))
return false;
}
set_column_value(j, ival);
set_value_for_nbasic_column_ignore_old_values(j, ival);
change_report(j);
for (const auto &c : A_r().column(j)) {
unsigned row_index = c.var();
const mpq & a = c.coeff();
unsigned rj = m_mpq_lar_core_solver.m_r_basis[row_index];
m_mpq_lar_core_solver.m_r_solver.add_delta_to_x(rj, a * delta);
unsigned rj = m_mpq_lar_core_solver.m_r_basis[c.var()];
change_report(rj);
}
@ -509,6 +506,7 @@ public:
return 0;
return m_usage_in_terms[j];
}
void set_value_for_nbasic_column_ignore_old_values(unsigned j, const impq & new_val);
friend int_solver;
friend int_branch;