Skip to content

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Sep 30, 2024
1 parent 7da58b9 commit 2c94a3a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/smt/smt_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2942,7 +2942,6 @@ namespace smt {

if (!e_internalized(var))
return;
enode* n = get_enode(var);
theory* th = m_theories.get_plugin(s->get_family_id());
if (!th) {
IF_VERBOSE(5, verbose_stream() << "No theory is attached to variable " << mk_pp(var, m) << " := " << mk_pp(value, m) << "\n");
Expand Down
5 changes: 1 addition & 4 deletions src/smt/smt_lookahead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace smt {
compare comp(ctx);
std::sort(vars.begin(), vars.end(), comp);

unsigned nf = 0, nc = 0, ns = 0, n = 0;
unsigned ns = 0, n = 0;
for (bool_var v : vars) {
if (!ctx.bool_var2expr(v))
continue;
Expand All @@ -98,7 +98,6 @@ namespace smt {
if (inconsistent) {
ctx.assign(~lit, b_justification::mk_axiom(), false);
ctx.propagate();
++nf;
continue;
}

Expand All @@ -114,7 +113,6 @@ namespace smt {
if (inconsistent) {
ctx.assign(lit, b_justification::mk_axiom(), false);
ctx.propagate();
++nf;
continue;
}
double score = score1 + score2 + 1024*score1*score2;
Expand All @@ -132,7 +130,6 @@ namespace smt {
best_v = v;
ns = 0;
}
++nc;
++ns;
if (ns > budget) {
break;
Expand Down
1 change: 0 additions & 1 deletion src/test/cnf_backbones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ static void track_clauses(sat::solver const& src,
dst.mk_var(false, true);
}
sat::literal_vector lits;
sat::literal lit;
sat::clause * const * it = src.begin_clauses();
sat::clause * const * end = src.end_clauses();
svector<sat::solver::bin_clause> bin_clauses;
Expand Down

0 comments on commit 2c94a3a

Please sign in to comment.