Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Nov 15, 2024
1 parent ca6ec0d commit 3f40798
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
7 changes: 3 additions & 4 deletions src/ast/converters/expr_inverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,17 +790,16 @@ class seq_expr_inverter : public iexpr_inverter {
r = m.mk_or(r, emp);
return true;
}
if (uncnstr(args[1])) {
if (uncnstr(args[1]) && seq.is_string(args[0]->get_sort())) {
// x contains y -> r
// y -> if r then x else x + x
// y -> if r then x else x + x + a
mk_fresh_uncnstr_var_for(f, r);
if (m_mc)
add_def(args[1], m.mk_ite(r, args[0], seq.str.mk_concat(args[0], args[0])));
add_def(args[1], m.mk_ite(r, args[0], seq.str.mk_concat(args[0], args[0], seq.str.mk_string(zstring("a")))));
return true;
}
return false;
default:
verbose_stream() << f->get_name() << "\n";
return false;

}
Expand Down
2 changes: 1 addition & 1 deletion src/ast/sls/sls_smt_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace sls {
virtual void set_value(expr* t, expr* v) = 0;
virtual void force_phase(sat::literal lit) = 0;
virtual void set_has_new_best_phase(bool b) = 0;
virtual bool get_value(expr* v, expr_ref& val) = 0;
virtual bool get_smt_value(expr* v, expr_ref& val) = 0;
virtual bool get_best_phase(sat::bool_var v) = 0;
virtual expr* bool_var2expr(sat::bool_var v) = 0;
virtual void inc_activity(sat::bool_var v, double inc) = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/sat/smt/sls_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ namespace sls {
void inc_activity(sat::bool_var v, double inc) override {}
unsigned get_num_bool_vars() const override;
bool parallel_mode() const override { return false; }
bool get_value(expr* v, expr_ref& value) override { return false; }
bool get_smt_value(expr* v, expr_ref& value) override { return false; }

};

}

#endif
#endif
5 changes: 3 additions & 2 deletions src/smt/theory_sls.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ namespace smt {
void set_finished() override;
unsigned get_num_bool_vars() const override;
void inc_activity(sat::bool_var v, double inc) override;
bool parallel_mode() const { return m_parallel_mode; }
bool get_value(expr* v, expr_ref& value) override;
bool parallel_mode() const override { return m_parallel_mode; }
bool get_smt_value(expr* v, expr_ref& value) override;

};

}
Expand Down

0 comments on commit 3f40798

Please sign in to comment.