diff --git a/src/math/lp/hnf_cutter.cpp b/src/math/lp/hnf_cutter.cpp index 687a5517c..71e888d39 100644 --- a/src/math/lp/hnf_cutter.cpp +++ b/src/math/lp/hnf_cutter.cpp @@ -50,8 +50,7 @@ namespace lp { m_constraints_for_explanation.push_back(ci); for (const auto &p : *t) { - auto tv = lia.lra.column2tv(p.column()); - m_var_register.add_var(tv.id(), true); // hnf only deals with integral variables for now + m_var_register.add_var(p.column().index(), true); // hnf only deals with integral variables for now mpq t = abs(ceil(p.coeff())); if (t > m_abs_max) m_abs_max = t; diff --git a/src/test/lp/gomory_test.h b/src/test/lp/gomory_test.h index f7dc52b05..16d33794e 100644 --- a/src/test/lp/gomory_test.h +++ b/src/test/lp/gomory_test.h @@ -187,7 +187,7 @@ struct gomory_test { void print_term(lar_term & t, std::ostream & out) { vector> row; for (auto p : t) - row.push_back(std::make_pair(p.coeff(), p.var().index())); + row.push_back(std::make_pair(p.coeff(), p.column().index())); print_row(out, row); }