3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

remove some warnings

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2018-08-14 13:52:29 +08:00
parent 9958f42d5c
commit 31d44471a1
4 changed files with 5 additions and 0 deletions

View file

@ -395,6 +395,7 @@ class theory_lra::imp {
void ensure_nra() {
if (!m_nra) {
m_nra = alloc(nra::solver, *m_solver.get(), m.limit(), ctx().get_params());
m_switcher.m_nra = &m_nra;
for (auto const& _s : m_scopes) {
(void)_s;
m_nra->push();

View file

@ -39,6 +39,7 @@ inline std::string lconstraint_kind_string(lconstraint_kind t) {
case GE: return std::string(">=");
case GT: return std::string(">");
case EQ: return std::string("=");
case NE: return std::string("!=");
}
lp_unreachable();
return std::string(); // it is unreachable

View file

@ -190,6 +190,8 @@ namespace nra {
case lp::lconstraint_kind::EQ:
lit = m_nlsat->mk_ineq_literal(nlsat::atom::kind::EQ, 1, ps, is_even);
break;
default:
lp_assert(false); // unreachable
}
m_nlsat->mk_clause(1, &lit, a);
}

View file

@ -39,6 +39,7 @@ inline std::ostream& operator<<(std::ostream& out, lconstraint_kind k) {
case GE: return out << ">=";
case GT: return out << ">";
case EQ: return out << "=";
case NE: return out << "!=";
}
return out << "??";
}