mirror of
https://github.com/Z3Prover/z3
synced 2026-06-29 11:58:51 +00:00
lp: avoid per-call join allocation in explain_fixed_column (#9984)
This commit is contained in:
parent
f07acb459f
commit
56bb49f8dc
2 changed files with 24 additions and 2 deletions
|
|
@ -1125,8 +1125,10 @@ namespace lp {
|
|||
|
||||
void lar_solver::explain_fixed_column(unsigned j, explanation& ex) {
|
||||
SASSERT(column_is_fixed(j));
|
||||
auto* deps = get_bound_constraint_witnesses_for_column(j);
|
||||
for (auto ci : flatten(deps))
|
||||
const column& ul = m_imp->m_columns[j];
|
||||
m_imp->m_tmp_dependencies.reset();
|
||||
m_imp->m_dependencies.linearize(ul.lower_bound_witness(), ul.upper_bound_witness(), m_imp->m_tmp_dependencies);
|
||||
for (auto ci : m_imp->m_tmp_dependencies)
|
||||
ex.push_back(ci);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue