3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

simplify column

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2024-12-20 10:37:23 -10:00 committed by Lev Nachmanson
parent 8d747865ae
commit 7fe703e229
2 changed files with 5 additions and 8 deletions

View file

@ -1577,7 +1577,7 @@ namespace lp {
return local_j;
lp_assert(m_columns.size() == A_r().column_count());
local_j = A_r().column_count();
m_columns.push_back(column(false, nullptr)); // false - not associated with a row, nullptr for term
m_columns.push_back(column());
m_trail.push(undo_add_column(*this));
while (m_usage_in_terms.size() <= local_j)
m_usage_in_terms.push_back(0);
@ -1704,7 +1704,7 @@ namespace lp {
// j will be a new variable
unsigned j = A_r().column_count();
SASSERT(ext_index == null_lpvar || external_to_local(ext_index) == j);
column ul(true, term); // true - to mark this column as associated_with_row
column ul(term);
term->j() = j; // point from the term to the column
m_columns.push_back(ul);
m_trail.push(undo_add_column(*this));