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

add ability to touch variables for bound propagation

This commit is contained in:
Nikolaj Bjorner 2020-07-30 10:20:17 -07:00
parent a74ef394ec
commit 4039352837
4 changed files with 26 additions and 1 deletions

View file

@ -345,7 +345,7 @@ void lar_solver::set_costs_to_zero(const lar_term& term) {
jset.insert(j);
else {
for (const auto & rc : A_r().m_rows[i])
jset.insert(rc.var());
jset.insert(rc.var());
}
}
@ -1269,6 +1269,14 @@ void lar_solver::random_update(unsigned sz, var_index const * vars) {
ru.update();
}
void lar_solver::mark_rows_for_bound_prop(lpvar j) {
auto & column = A_r().m_columns[j];
for (auto const& r : column) {
m_rows_with_changed_bounds.insert(r.var());
}
}
void lar_solver::pivot_fixed_vars_from_basis() {
m_mpq_lar_core_solver.m_r_solver.pivot_fixed_vars_from_basis();