Skip to content

Commit d686e92

Browse files
disambiguate
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 93ff89b commit d686e92

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/math/lp/lar_solver.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1930,9 +1930,10 @@ namespace lp {
19301930
default:
19311931
UNREACHABLE();
19321932
}
1933-
if (m_mpq_lar_core_solver.m_r_upper_bounds[j] == m_mpq_lar_core_solver.m_r_lower_bounds[j]) {
1933+
numeric_pair<mpq> const& lo = m_mpq_lar_core_solver.m_r_lower_bounds[j];
1934+
numeric_pair<mpq> const& hi = m_mpq_lar_core_solver.m_r_upper_bounds[j];
1935+
if (lo == hi)
19341936
m_mpq_lar_core_solver.m_column_types[j] = column_type::fixed;
1935-
}
19361937
}
19371938

19381939
void lar_solver::update_bound_with_no_ub_lb(lpvar j, lconstraint_kind kind, const mpq& right_side, u_dependency* dep) {

src/math/lp/stacked_vector.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ template < typename B> class stacked_vector {
6262
return m_vec.m_vector[m_i] == other.m_vec.m_vector[other.m_i];
6363
}
6464
bool operator!=(ref const& other) const {
65-
return m_vec.m_vector[m_i] != other.m_vec.m_vectpr[other.m_i];
65+
return m_vec.m_vector[m_i] != other.m_vec.m_vector[other.m_i];
6666
}
6767

6868

@@ -90,7 +90,7 @@ template < typename B> class stacked_vector {
9090
return m_vec.m_vector[m_i] == other.m_vec.m_vector[other.m_i];
9191
}
9292
bool operator!=(ref_const const& other) const {
93-
return m_vec.m_vector[m_i] != other.m_vec.m_vectpr[other.m_i];
93+
return m_vec.m_vector[m_i] != other.m_vec.m_vector[other.m_i];
9494
}
9595
};
9696

0 commit comments

Comments
 (0)