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:
parent
3849f665d6
commit
401ec04ec3
9 changed files with 51 additions and 65 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue