Skip to content

Commit d818233

Browse files
unused variable warnings
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 5434f3e commit d818233

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/smt/seq_offset_eq.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ update m_offset_equalities to contain.
3232
r1 |-> [r2 |-> val]
3333
*/
3434

35-
seq_offset_eq::seq_offset_eq(theory& th, ast_manager& m):
36-
th(th), m(m), seq(m), a(m), m_propagation_level(-1) {
35+
seq_offset_eq::seq_offset_eq(theory& th, ast_manager& _m):
36+
th(th), m(_m), seq(m), a(m), m_propagation_level(-1) {
37+
(void)m;
3738
}
3839

3940
bool seq_offset_eq::match_x_minus_y(expr* e, expr*& x, expr*& y) const {

src/smt/theory_seq.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ bool theory_seq::is_solved() {
745745
*/
746746
void theory_seq::linearize(dependency* dep, enode_pair_vector& eqs, literal_vector& lits) const {
747747
context & ctx = get_context();
748+
(void)ctx;
748749
DEBUG_CODE(for (literal lit : lits) SASSERT(ctx.get_assignment(lit) == l_true); );
749750
svector<assumption> assumptions;
750751
const_cast<dependency_manager&>(m_dm).linearize(dep, assumptions);
@@ -1885,6 +1886,7 @@ class theory_seq::seq_value_proc : public model_value_proc {
18851886
svector<source_t> m_source;
18861887
public:
18871888
seq_value_proc(theory_seq& th, enode* n, sort* s): th(th), m_node(n), m_sort(s) {
1889+
(void)m_node;
18881890
}
18891891
~seq_value_proc() override {}
18901892
void add_unit(enode* n) {
@@ -3458,7 +3460,7 @@ bool theory_seq::should_research(expr_ref_vector & unsat_core) {
34583460

34593461
void theory_seq::propagate_length_limit(expr* e) {
34603462
unsigned k = 0;
3461-
expr* s = nullptr, *i = nullptr;
3463+
expr* s = nullptr;
34623464
VERIFY(m_sk.is_length_limit(e, k, s));
34633465
if (m_util.str.is_stoi(s)) {
34643466
m_ax.add_stoi_axiom(s, k);

src/smt/theory_seq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ namespace smt {
446446
theory* mk_fresh(context* new_ctx) override { return alloc(theory_seq, new_ctx->get_manager(), new_ctx->get_fparams()); }
447447
char const * get_name() const override { return "seq"; }
448448
bool include_func_interp(func_decl* f) override { return m_util.str.is_nth_u(f); }
449-
bool is_safe_to_copy(bool_var v) const;
449+
bool is_safe_to_copy(bool_var v) const override;
450450
theory_var mk_var(enode* n) override;
451451
void apply_sort_cnstr(enode* n, sort* s) override;
452452
void display(std::ostream & out) const override;

src/tactic/ufbv/ufbv_rewriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ expr * ufbv_rewriter::rewrite(expr * n) {
371371
if (rewrite_visit_children(a)) {
372372
func_decl * f = a->get_decl();
373373
m_new_args.reset();
374-
unsigned num_args = a->get_num_args();
375374
bool all_untouched = true;
376375
for (expr* o_child : *a) {
377376
expr * n_child;

0 commit comments

Comments
 (0)