Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jan 20, 2021
1 parent 3a572ed commit c5432db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ast/for_each_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bool has_skolem_functions(expr * n) {
}

subterms::subterms(expr_ref_vector const& es): m_es(es) {}
subterms::subterms(const expr_ref& e) : m_es(e.m()) { m_es.push_back(e); }
subterms::subterms(expr_ref const& e) : m_es(e.m()) { m_es.push_back(e); }
subterms::iterator subterms::begin() { return iterator(*this, true); }
subterms::iterator subterms::end() { return iterator(*this, false); }
subterms::iterator::iterator(subterms& f, bool start): m_es(f.m_es) {
Expand Down
2 changes: 1 addition & 1 deletion src/ast/for_each_expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class subterms {
bool operator!=(iterator const& other) const;
};
subterms(expr_ref_vector const& es);
subterms(const expr_ref& e);
subterms(expr_ref const& e);
iterator begin();
iterator end();
};
Expand Down
2 changes: 1 addition & 1 deletion src/ast/static_features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ void static_features::process(expr * e, bool form_ctx, bool or_and_ctx, bool ite
return;
}
if (stack_depth > m_max_stack_depth) {
for (expr* arg : subterms(expr_ref(e, m)))
for (expr* arg : subterms(expr_ref(e, m)))
if (get_depth(arg) <= 3 || is_quantifier(arg))
process(arg, form_ctx, or_and_ctx, ite_ctx, stack_depth-10);
return;
Expand Down

0 comments on commit c5432db

Please sign in to comment.