3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-12 06:00:53 +00:00

prepare using fresh vars in cuts

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2024-10-07 13:40:29 -07:00 committed by Lev Nachmanson
parent 06faf03eaa
commit ea50208ad6
3 changed files with 111 additions and 70 deletions

View file

@ -80,7 +80,7 @@ public:
void subst_by_term(const lar_term& t, unsigned term_column) {
auto it = this->m_coeffs.find_core(term_column);
const auto* it = this->m_coeffs.find_core(term_column);
if (it == nullptr) return;
mpq a = it->get_data().m_value;
this->m_coeffs.erase(term_column);
@ -127,7 +127,7 @@ public:
// j is the basic variable to substitute
void subst_in_row(unsigned j, indexed_vector<mpq> & li) {
auto* it = m_coeffs.find_core(j);
const auto* it = m_coeffs.find_core(j);
if (it == nullptr) return;
const mpq & b = it->get_data().m_value;
for (unsigned it_j :li.m_index) {
@ -138,7 +138,7 @@ public:
const mpq & get_coeff(unsigned j) const {
auto* it = m_coeffs.find_core(j);
const auto* it = m_coeffs.find_core(j);
SASSERT(it != nullptr);
return it->get_data().m_value;
}