mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
remove sources for unused variable warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d9227b95ea
commit
8d18fd075e
12 changed files with 20 additions and 25 deletions
|
@ -53,8 +53,10 @@ struct aig {
|
|||
aig() {}
|
||||
};
|
||||
|
||||
#if Z3DEBUG
|
||||
inline bool is_true(aig_lit const & r) { return !r.is_inverted() && r.ptr_non_inverted()->m_id == 0; }
|
||||
inline bool is_false(aig_lit const & r) { return r.is_inverted() && r.ptr()->m_id == 0; }
|
||||
#endif
|
||||
// inline bool is_false(aig_lit const & r) { return r.is_inverted() && r.ptr()->m_id == 0; }
|
||||
inline bool is_var(aig * n) { return n->m_children[0].is_null(); }
|
||||
inline bool is_var(aig_lit const & n) { return is_var(n.ptr()); }
|
||||
inline unsigned id(aig_lit const & n) { return n.ptr()->m_id; }
|
||||
|
@ -66,12 +68,6 @@ inline aig_lit right(aig_lit const & n) { return right(n.ptr()); }
|
|||
|
||||
inline unsigned to_idx(aig * p) { SASSERT(!is_var(p)); return p->m_id - FIRST_NODE_ID; }
|
||||
|
||||
void unmark(unsigned sz, aig_lit const * ns) {
|
||||
for (unsigned i = 0; i < sz; i++) {
|
||||
ns[i].ptr()->m_mark = false;
|
||||
}
|
||||
}
|
||||
|
||||
void unmark(unsigned sz, aig * const * ns) {
|
||||
for (unsigned i = 0; i < sz; i++) {
|
||||
ns[i]->m_mark = false;
|
||||
|
|
|
@ -148,10 +148,12 @@ struct interval {
|
|||
}
|
||||
};
|
||||
|
||||
#ifdef _TRACE
|
||||
std::ostream& operator<<(std::ostream& o, const interval& I) {
|
||||
o << "[" << I.l << ", " << I.h << "]";
|
||||
return o;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
struct undo_bound {
|
||||
|
|
|
@ -25,7 +25,7 @@ Notes:
|
|||
extension_model_converter::~extension_model_converter() {
|
||||
}
|
||||
|
||||
|
||||
#ifdef _TRACE
|
||||
static void display_decls_info(std::ostream & out, model_ref & md) {
|
||||
ast_manager & m = md->get_manager();
|
||||
unsigned sz = md->get_num_decls();
|
||||
|
@ -42,6 +42,7 @@ static void display_decls_info(std::ostream & out, model_ref & md) {
|
|||
out << " :id " << d->get_id() << "\n";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void extension_model_converter::operator()(model_ref & md, unsigned goal_idx) {
|
||||
SASSERT(goal_idx == 0);
|
||||
|
|
|
@ -126,7 +126,7 @@ tactic * mk_report_verbose_tactic(char const * msg, unsigned lvl) {
|
|||
class trace_tactic : public skip_tactic {
|
||||
char const * m_tag;
|
||||
public:
|
||||
trace_tactic(char const * tag):m_tag(tag) {}
|
||||
trace_tactic(char const * tag): m_tag(tag) {}
|
||||
|
||||
virtual void operator()(goal_ref const & in,
|
||||
goal_ref_buffer & result,
|
||||
|
@ -134,6 +134,7 @@ public:
|
|||
proof_converter_ref & pc,
|
||||
expr_dependency_ref & core) {
|
||||
TRACE(m_tag, in->display(tout););
|
||||
(void)m_tag;
|
||||
skip_tactic::operator()(in, result, mc, pc, core);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue