Skip to content

Commit

Permalink
compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Apr 28, 2020
1 parent 00d35c2 commit 8dde1bf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
15 changes: 8 additions & 7 deletions src/smt/mam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,6 @@ namespace {
//
// ------------------------------------

inline enode * get_enode(context & ctx, app * n) {
SASSERT(ctx.e_internalized(n));
enode * e = ctx.get_enode(n);
SASSERT(e);
return e;
}
inline enode * mk_enode(context & ctx, quantifier * qa, app * n) {
ctx.internalize(n, false, ctx.get_generation(qa));
enode * e = ctx.get_enode(n);
Expand Down Expand Up @@ -446,6 +440,13 @@ namespace {
}

#ifdef Z3DEBUG
inline enode * get_enode(context & ctx, app * n) const {
SASSERT(ctx.e_internalized(n));
enode * e = ctx.get_enode(n);
SASSERT(e);
return e;
}

void display_label_hashes_core(std::ostream & out, app * p) const {
if (p->is_ground()) {
enode * e = get_enode(*m_context, p);
Expand Down Expand Up @@ -587,7 +588,7 @@ namespace {
}
};

inline std::ostream & operator<<(std::ostream & out, code_tree const & tree) {
std::ostream & operator<<(std::ostream & out, code_tree const & tree) {
tree.display(out);
return out;
}
Expand Down
1 change: 1 addition & 0 deletions src/smt/smt_quantifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ namespace smt {
void assign_eh(quantifier * q) override {
m_active = true;
ast_manager& m = m_context->get_manager();
(void)m;
if (!m_fparams->m_ematching) {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/tactic/ufbv/ufbv_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ ufbv_rewriter::ufbv_rewriter(ast_manager & m):
m_new_args(m),
m_rewrite_todo(m),
m_rewrite_cache(m),
m_new_exprs(m),
m_in_processed(m) {
m_in_processed(m),
m_new_exprs(m) {
params_ref p;
p.set_bool("elim_and", true);
m_bsimp.updt_params(p);
Expand Down

0 comments on commit 8dde1bf

Please sign in to comment.