Skip to content

Commit a5e5d4d

Browse files
committed
testing
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent bbaec0b commit a5e5d4d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/math/lp/lar_solver.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ namespace lp {
14751475
explanation& exp,
14761476
const vector<std::pair<mpq, unsigned>>& inf_row,
14771477
int inf_sign) const {
1478-
1478+
#if 0
14791479
impq slack(0);
14801480

14811481
std_vector<unsigned> indices;
@@ -1493,16 +1493,17 @@ namespace lp {
14931493
if (k != j)
14941494
std::swap(indices[j], indices[k]);
14951495
}
1496-
1497-
for (unsigned k : indices) {
1498-
const auto& p = inf_row[k];
1499-
unsigned j = p.second;
1500-
const mpq& coeff = p.first;
1496+
#endif
1497+
for (auto& [coeff, j]: inf_row) {
1498+
// for (unsigned k : indices) {
1499+
// const auto& p = inf_row[k];
1500+
// unsigned j = p.second;
1501+
// const mpq& coeff = p.first;
15011502
int adj_sign = coeff.is_pos() ? inf_sign : -inf_sign;
15021503
bool is_upper = adj_sign < 0;
15031504
const column& ul = m_imp->m_columns[j];
15041505
u_dependency* bound_constr_i = is_upper ? ul.upper_bound_witness() : ul.lower_bound_witness();
1505-
1506+
#if 0
15061507
if(is_upper) {
15071508
if (ul.previous_upper() != UINT_MAX) {
15081509
auto const& [_is_upper, _j, _bound, _column] = m_imp->m_column_updates[ul.previous_upper()];
@@ -1525,7 +1526,7 @@ namespace lp {
15251526
}
15261527
}
15271528
}
1528-
1529+
#endif
15291530
svector<constraint_index> deps;
15301531
dep_manager().linearize(bound_constr_i, deps);
15311532
for (auto d : deps) {

0 commit comments

Comments
 (0)