3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

fix misc build warnings

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-01-11 17:41:24 -08:00
parent d97bd48669
commit 9a237d55ca
3 changed files with 2 additions and 6 deletions

View file

@ -724,7 +724,6 @@ namespace sls {
for (auto idx : vi.m_adds) {
auto const& ad = m_adds[idx];
auto w = ad.m_var;
num_t sum(ad.m_coeff);
for (auto const& [coeff, w] : ad.m_args)
sum += coeff * value(w);
@ -2265,7 +2264,7 @@ namespace sls {
return value(v) == (value(od.m_arg2) == 0 ? num_t(0) : mod(value(od.m_arg1), value(od.m_arg2)));
}
case arith_op_kind::OP_POWER: {
auto od = m_ops[vi.m_def_idx];
//auto od = m_ops[vi.m_def_idx];
NOT_IMPLEMENTED_YET();
break;
}
@ -2333,7 +2332,6 @@ namespace sls {
display(out, ad) << "\n";
}
};
auto& out = verbose_stream();
for (var_t v = 0; v < m_vars.size(); ++v) {
if (!eval_is_correct(v)) {
report_error(verbose_stream(), v);

View file

@ -699,7 +699,7 @@ namespace lp {
return;
lar_term t;
auto const& col = m_columns[j];
//auto const& col = m_columns[j];
auto const& r = basic2row(j);
for (auto const& c : r) {
if (c.var() != j)

View file

@ -1433,12 +1433,10 @@ namespace smt {
return nullptr;
case 1: {
literal unit = lits[0];
expr* atom = m_bool_var2expr[unit.var()];
if (j && !j->in_region())
m_justifications.push_back(j);
assign(unit, j);
inc_ref(unit);
// m_units_to_reassert.push_back({ expr_ref(atom, m), unit.sign(), is_relevant(unit) });
return nullptr;
}
case 2: