mirror of
https://github.com/Z3Prover/z3
synced 2025-08-12 14:10:54 +00:00
remove using insert_if_not_there2
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9ea1cf3c5c
commit
a884201d62
47 changed files with 172 additions and 208 deletions
|
@ -341,11 +341,8 @@ bool factor_rewriter::extract_factors() {
|
|||
|
||||
void factor_rewriter::collect_powers() {
|
||||
m_powers.reset();
|
||||
for (unsigned i = 0; i < m_factors.size(); ++i) {
|
||||
obj_map<expr,unsigned>::obj_map_entry* entry = m_powers.insert_if_not_there2(m_factors[i].get(), 0);
|
||||
if (entry) {
|
||||
++(entry->get_data().m_value);
|
||||
}
|
||||
for (expr* f : m_factors) {
|
||||
m_powers.insert_if_not_there(f, 0)++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue