Skip to content

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Oct 1, 2024
1 parent 8c39863 commit 328616b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ast/fpa/fpa2bv_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2692,7 +2692,7 @@ void fpa2bv_converter::mk_to_fp_real(func_decl * f, sort * s, expr * rm, expr *
SASSERT(tmp_rat.is_int32());
SASSERT(sz == 3);

mpf_rounding_mode mrm;
mpf_rounding_mode mrm = MPF_ROUND_TOWARD_ZERO;
switch ((BV_RM_VAL)tmp_rat.get_unsigned()) {
case BV_RM_TIES_TO_AWAY: mrm = MPF_ROUND_NEAREST_TAWAY; break;
case BV_RM_TIES_TO_EVEN: mrm = MPF_ROUND_NEAREST_TEVEN; break;
Expand Down
2 changes: 1 addition & 1 deletion src/muz/spacer/spacer_legacy_mev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void model_evaluator::eval_eq(app* e, expr* arg1, expr* arg2)

void model_evaluator::eval_basic(app* e)
{
expr* arg1, *arg2;
expr* arg1 = nullptr, *arg2 = nullptr;
expr *argCond = nullptr, *argThen = nullptr, *argElse = nullptr, *arg = nullptr;
bool has_x = false;
unsigned arity = e->get_num_args();
Expand Down
2 changes: 1 addition & 1 deletion src/sat/smt/arith_axioms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ namespace arith {
}

bool solver::check_bv_term(app* n) {
unsigned sz;
unsigned sz = 0;
expr* _x = nullptr, * _y = nullptr;
if (!ctx.is_relevant(expr2enode(n)))
return true;
Expand Down
6 changes: 3 additions & 3 deletions src/smt/mam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,9 @@ namespace {
void linearise_core() {
m_aux.reset();
app * first_app = nullptr;
unsigned first_app_reg;
unsigned first_app_sz;
unsigned first_app_num_unbound_vars;
unsigned first_app_reg = 0;
unsigned first_app_sz = 0;
unsigned first_app_num_unbound_vars = 0;
// generate first the non-BIND operations
for (unsigned reg : m_todo) {
expr * p = m_registers[reg];
Expand Down
2 changes: 1 addition & 1 deletion src/smt/theory_str.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ namespace smt {

void theory_str::instantiate_axiom_CharAt(enode * e) {
ast_manager & m = get_manager();
expr* arg0, *arg1;
expr* arg0 = nullptr, *arg1 = nullptr;
app * expr = e->get_expr();
if (axiomatized_terms.contains(expr)) {
TRACE("str", tout << "already set up CharAt axiom for " << mk_pp(expr, m) << std::endl;);
Expand Down
1 change: 1 addition & 0 deletions src/test/dlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,6 @@ void tst_dlist() {
test_detach();
test_invariant();
test_contains();
(void)test_remove_from;
std::cout << "All tests passed." << std::endl;
}

0 comments on commit 328616b

Please sign in to comment.