3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-22 02:57:50 +00:00

code cleaning around m_touched_rows of lar_solver (#6814)

This commit is contained in:
Lev Nachmanson 2023-07-14 20:19:13 -07:00 committed by GitHub
parent 3849f665d6
commit 401ec04ec3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 51 additions and 65 deletions

View file

@ -788,7 +788,7 @@ namespace smt {
//
// -----------------------------------
void mark_row_for_bound_prop(unsigned r1);
void mark_rows_for_bound_prop(theory_var v);
void add_column_rows_to_touched_rows(theory_var v);
void is_row_useful_for_bound_prop(row const & r, int & lower_idx, int & upper_idx) const;
unsigned imply_bound_for_monomial(row const & r, int idx, bool lower);
unsigned imply_bound_for_all_monomials(row const & r, bool lower);

View file

@ -2486,7 +2486,7 @@ namespace smt {
set_bound(b, false);
if (propagation_mode() != bound_prop_mode::BP_NONE)
mark_rows_for_bound_prop(v);
add_column_rows_to_touched_rows(v);
return true;
}
@ -2534,7 +2534,7 @@ namespace smt {
set_bound(b, true);
if (propagation_mode() != bound_prop_mode::BP_NONE)
mark_rows_for_bound_prop(v);
add_column_rows_to_touched_rows(v);
return true;
}
@ -2603,7 +2603,7 @@ namespace smt {
\brief Mark all rows that contain v for bound propagation.
*/
template<typename Ext>
void theory_arith<Ext>::mark_rows_for_bound_prop(theory_var v) {
void theory_arith<Ext>::add_column_rows_to_touched_rows(theory_var v) {
for (col_entry const& ce : m_columns[v]) {
if (!ce.is_dead())
mark_row_for_bound_prop(ce.m_row_id);

View file

@ -2989,7 +2989,7 @@ public:
}
#if 0
if (should_propagate())
lp().mark_rows_for_bound_prop(b.tv().id());
lp().add_column_rows_to_touched_rows(b.tv().id());
#endif
}