mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
expr_abstract: save 1 hashtable lookup per app argument
when we already know that the app is missing one arg to rewrite
This commit is contained in:
parent
2f5c0a6985
commit
c33bc2c8be
|
@ -58,7 +58,7 @@ void expr_abstractor::operator()(unsigned base, unsigned num_bound, expr* const*
|
|||
bool changed = false;
|
||||
m_args.reset();
|
||||
for (unsigned i = 0, e = a->get_num_args(); i < e; ++i) {
|
||||
if (!m_map.find(a->get_arg(i), b)) {
|
||||
if (!all_visited || !m_map.find(a->get_arg(i), b)) {
|
||||
m_stack.push_back(a->get_arg(i));
|
||||
all_visited = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue