mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 12:07:52 +00:00
use vector instead of indexed uint set for Boolean var occurrences
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
eebff13f8b
commit
92ad285951
2 changed files with 6 additions and 2 deletions
|
@ -1416,6 +1416,7 @@ namespace sls {
|
|||
buffer<var_t> todo;
|
||||
todo.push_back(v);
|
||||
auto& vi = m_vars[v];
|
||||
m_tmp_set.reset();
|
||||
for (unsigned i = 0; i < todo.size(); ++i) {
|
||||
var_t u = todo[i];
|
||||
auto& ui = m_vars[u];
|
||||
|
@ -1434,8 +1435,10 @@ namespace sls {
|
|||
todo.push_back(x);
|
||||
}
|
||||
for (auto const& [coeff, bv] : ui.m_linear_occurs)
|
||||
vi.m_bool_vars_of.insert(bv);
|
||||
m_tmp_set.insert(bv);
|
||||
}
|
||||
for (auto bv : m_tmp_set)
|
||||
vi.m_bool_vars_of.push_back(bv);
|
||||
}
|
||||
|
||||
template<typename num_t>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue