mirror of
https://github.com/Z3Prover/z3
synced 2025-06-16 02:46:16 +00:00
removing warnings for unused variables, #579
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
40f8e16273
commit
09b8c0e7fa
7 changed files with 27 additions and 34 deletions
|
@ -2899,15 +2899,16 @@ namespace smt {
|
|||
}
|
||||
|
||||
bool check_satisfied_residue_invariant() {
|
||||
qsset::iterator it = m_satisfied.begin();
|
||||
qsset::iterator end = m_satisfied.end();
|
||||
for (; it != end; ++it) {
|
||||
quantifier * q = *it;
|
||||
SASSERT(!m_residue.contains(q));
|
||||
quantifier_info * qi = get_qinfo(q);
|
||||
SASSERT(qi != 0);
|
||||
SASSERT(qi->get_the_one() != 0);
|
||||
}
|
||||
DEBUG_CODE(
|
||||
qsset::iterator it = m_satisfied.begin();
|
||||
qsset::iterator end = m_satisfied.end();
|
||||
for (; it != end; ++it) {
|
||||
quantifier * q = *it;
|
||||
SASSERT(!m_residue.contains(q));
|
||||
quantifier_info * qi = get_qinfo(q);
|
||||
SASSERT(qi != 0);
|
||||
SASSERT(qi->get_the_one() != 0);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -3546,12 +3547,9 @@ namespace smt {
|
|||
bool asserted_something = false;
|
||||
quantifier * flat_q = get_flat_quantifier(q);
|
||||
unsigned num_decls = q->get_num_decls();
|
||||
unsigned flat_num_decls = flat_q->get_num_decls();
|
||||
unsigned num_sks = sks.size();
|
||||
// Remark: sks were created for the flat version of q.
|
||||
SASSERT(num_sks == flat_num_decls);
|
||||
SASSERT(flat_num_decls >= num_decls);
|
||||
SASSERT(num_sks >= num_decls);
|
||||
SASSERT(flat_q->get_num_decls() == sks.size());
|
||||
SASSERT(sks.size() >= num_decls);
|
||||
for (unsigned i = 0; i < num_decls; i++) {
|
||||
expr * sk = sks.get(num_decls - i - 1);
|
||||
instantiation_set const * s = get_uvar_inst_set(q, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue