3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00

fix build warnings

This commit is contained in:
Nikolaj Bjorner 2024-09-30 17:25:19 -07:00
parent 8c39863019
commit 328616b8b2
6 changed files with 8 additions and 7 deletions

View file

@ -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;

View file

@ -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();

View file

@ -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;

View file

@ -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];

View file

@ -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;);

View file

@ -179,5 +179,6 @@ void tst_dlist() {
test_detach();
test_invariant();
test_contains();
(void)test_remove_from;
std::cout << "All tests passed." << std::endl;
}