mirror of
https://github.com/Z3Prover/z3
synced 2025-08-26 13:06:05 +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
|
@ -24,8 +24,7 @@ void num_occurs::process(expr * t, expr_fast_mark1 & visited) {
|
|||
|
||||
#define VISIT(ARG) { \
|
||||
if (!m_ignore_ref_count1 || ARG->get_ref_count() > 1) { \
|
||||
obj_map<expr, unsigned>::obj_map_entry * entry = m_num_occurs.insert_if_not_there2(ARG, 0); \
|
||||
entry->get_data().m_value++; \
|
||||
m_num_occurs.insert_if_not_there(ARG, 0)++; \
|
||||
} \
|
||||
if (!visited.is_marked(ARG)) { \
|
||||
visited.mark(ARG, true); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue