3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 02:45:51 +00:00

fix column patching

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-02-07 12:14:45 -08:00
parent 8c016abb12
commit f45e17c47e
5 changed files with 40 additions and 56 deletions

View file

@ -39,13 +39,6 @@ bool random_updater::shift_var(unsigned v) {
return m_lar_solver.get_int_solver()->shift_var(v, m_range);
}
bool random_updater::random_shift_var(unsigned j) {
if (m_lar_solver.A_r().m_columns.size() >= 50) {
return false;
}
return shift_var(j);
}
void random_updater::update() {
for (auto j : m_var_set) {
@ -53,7 +46,7 @@ void random_updater::update() {
break; // we are done
}
auto old_x = m_lar_solver.get_column_value(j);
if (random_shift_var(j)) {
if (shift_var(j)) {
remove_value(old_x);
add_value(m_lar_solver.get_column_value(j));
}