Skip to content

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Sep 30, 2024
1 parent 30b4fe6 commit 7da58b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/ast/rewriter/inj_axiom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ bool simplify_inj_axiom(ast_manager & m, quantifier * q, expr_ref & result) {
}
}
if (found_vars && !has_free_vars(q)) {
(void)num_vars;
TRACE("inj_axiom",
tout << "Cadidate for simplification:\n" << mk_ll_pp(q, m) << mk_pp(app1, m) << "\n" << mk_pp(app2, m) << "\n" <<
mk_pp(var1, m) << "\n" << mk_pp(var2, m) << "\nnum_vars: " << num_vars << "\n";);
Expand Down
4 changes: 2 additions & 2 deletions src/sat/sat_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ namespace sat {
}

bool solver::propagate_literal(literal l, bool update) {
literal l1, l2;
literal l1;

bool keep;
unsigned curr_level = lvl(l);
Expand Down Expand Up @@ -4733,7 +4733,7 @@ namespace sat {
num_lits += c.size();
}
}
unsigned total_cls = num_cls + num_ter + num_bin;
unsigned total_cls = num_cls + num_ter + num_bin + num_ext;
double mem = static_cast<double>(memory::get_allocation_size())/static_cast<double>(1024*1024);
out << "(sat-status\n";
out << " :inconsistent " << (m_inconsistent ? "true" : "false") << "\n";
Expand Down
2 changes: 0 additions & 2 deletions src/smt/diff_logic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1872,13 +1872,11 @@ class dl_graph {
// found path.
reset_marks();
m_heap.reset();
unsigned length = 0;
do {
inc_activity(m_parent[w]);
edge const& ee = m_edges[m_parent[w]];
f(ee.get_explanation());
w = ee.get_source();
++length;
}
while (w != src2);
return;
Expand Down
1 change: 1 addition & 0 deletions src/smt/theory_arith_aux.h
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,7 @@ namespace smt {
min_gain.reset();
++round;

(void)round;
TRACE("opt", tout << "round: " << round << ", max: " << max << "\n"; display_row(tout, r, true); tout << "state:\n"; display(tout););
typename vector<row_entry>::const_iterator it = r.begin_entries();
typename vector<row_entry>::const_iterator end = r.end_entries();
Expand Down

0 comments on commit 7da58b9

Please sign in to comment.