3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

removing warnings for unused variables, #579

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-05-17 15:59:06 -07:00
parent 40f8e16273
commit 09b8c0e7fa
7 changed files with 27 additions and 34 deletions

View file

@ -345,10 +345,11 @@ namespace sat {
}
void bceq::verify_sweep() {
for (unsigned i = 0; i < m_L.size(); ++i) {
uint64 b = eval_clause(*m_L[i]);
SASSERT((~b) == 0);
}
DEBUG_CODE(
for (unsigned i = 0; i < m_L.size(); ++i) {
uint64 b = eval_clause(*m_L[i]);
SASSERT((~b) == 0);
});
}
struct u64_hash { unsigned operator()(uint64 u) const { return (unsigned)u; } };

View file

@ -64,6 +64,7 @@ namespace sat {
}
bool clause_set::check_invariant() const {
DEBUG_CODE(
{
clause_vector::const_iterator it = m_set.begin();
clause_vector::const_iterator end = m_set.end();
@ -83,7 +84,7 @@ namespace sat {
SASSERT(pos < m_set.size());
SASSERT(m_set[pos]->id() == id);
}
}
});
return true;
}