Skip to content

Commit 9c51001

Browse files
committed
fix the debug build
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent 058b9e4 commit 9c51001

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/math/lp/dioph_eq.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,8 @@ namespace lp {
19401940
SASSERT(is_eliminated_from_f(j));
19411941
}
19421942
// j is the variable to eliminate, or substitude, it appears in term t with
1943-
// a coefficient equal to j_sign which is +-1 , matrix m_l_matrix is not changed since it is a substitution of a fresh variable
1943+
// a coefficient equal to j_sign which is +-1 ,
1944+
// matrix m_l_matrix is not changed since it is a substitution of a fresh variable
19441945
void eliminate_var_in_f_with_term(const lar_term& t, unsigned j, int j_sign) {
19451946
SASSERT(abs(t.get_coeff(j)).is_one());
19461947
TRACE("dioph_eq", tout << "eliminate var:" << j << " by using:";
@@ -1956,16 +1957,16 @@ namespace lp {
19561957
}
19571958

19581959
mpq coeff = m_e_matrix.get_val(c);
1959-
unsigned i = c.var();
1960-
TRACE("dioph_eq", tout << "before pivot entry :"; print_entry(i, tout) << std::endl;);
1960+
TRACE("dioph_eq", tout << "before pivot entry :"; print_entry(c.var(), tout) << std::endl;);
19611961
m_e_matrix.pivot_term_to_row_given_cell(t, c, j, j_sign);
19621962
TRACE("dioph_eq", tout << "after pivoting c_row:";
1963-
print_entry(i, tout););
1964-
SASSERT(entry_invariant(i));
1963+
print_entry(c.var(), tout););
1964+
SASSERT(entry_invariant(c.var()));
19651965
cell_to_process--;
19661966
}
19671967
SASSERT(is_eliminated_from_f(j));
19681968
}
1969+
19691970
bool is_eliminated_from_f(unsigned j) const {
19701971
for (unsigned ei = 0; ei < m_e_matrix.row_count(); ei++) {
19711972
if (!belongs_to_f(ei)) continue;
@@ -1978,6 +1979,7 @@ namespace lp {
19781979
}
19791980
return true;
19801981
}
1982+
19811983
term_o term_to_lar_solver(const term_o& eterm) const {
19821984
term_o ret;
19831985
for (const auto& p : eterm) {

0 commit comments

Comments
 (0)