Skip to content

Commit 2c94a3a

Browse files
fix build warnings
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 7da58b9 commit 2c94a3a

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/smt/smt_context.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -2942,7 +2942,6 @@ namespace smt {
29422942

29432943
if (!e_internalized(var))
29442944
return;
2945-
enode* n = get_enode(var);
29462945
theory* th = m_theories.get_plugin(s->get_family_id());
29472946
if (!th) {
29482947
IF_VERBOSE(5, verbose_stream() << "No theory is attached to variable " << mk_pp(var, m) << " := " << mk_pp(value, m) << "\n");

src/smt/smt_lookahead.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace smt {
7979
compare comp(ctx);
8080
std::sort(vars.begin(), vars.end(), comp);
8181

82-
unsigned nf = 0, nc = 0, ns = 0, n = 0;
82+
unsigned ns = 0, n = 0;
8383
for (bool_var v : vars) {
8484
if (!ctx.bool_var2expr(v))
8585
continue;
@@ -98,7 +98,6 @@ namespace smt {
9898
if (inconsistent) {
9999
ctx.assign(~lit, b_justification::mk_axiom(), false);
100100
ctx.propagate();
101-
++nf;
102101
continue;
103102
}
104103

@@ -114,7 +113,6 @@ namespace smt {
114113
if (inconsistent) {
115114
ctx.assign(lit, b_justification::mk_axiom(), false);
116115
ctx.propagate();
117-
++nf;
118116
continue;
119117
}
120118
double score = score1 + score2 + 1024*score1*score2;
@@ -132,7 +130,6 @@ namespace smt {
132130
best_v = v;
133131
ns = 0;
134132
}
135-
++nc;
136133
++ns;
137134
if (ns > budget) {
138135
break;

src/test/cnf_backbones.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ static void track_clauses(sat::solver const& src,
8686
dst.mk_var(false, true);
8787
}
8888
sat::literal_vector lits;
89-
sat::literal lit;
9089
sat::clause * const * it = src.begin_clauses();
9190
sat::clause * const * end = src.end_clauses();
9291
svector<sat::solver::bin_clause> bin_clauses;

0 commit comments

Comments
 (0)