mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
remove '#include <iostream>' from headers and from unneeded places
It's harmful to have iostream everywhere as it injects functions in the compiled files
This commit is contained in:
parent
70bcf0b51d
commit
73a24ca0a9
90 changed files with 99 additions and 95 deletions
|
@ -818,11 +818,12 @@ namespace sat {
|
|||
lbool r = s.check();
|
||||
IF_VERBOSE(10, verbose_stream() << "check: " << r << "\n");
|
||||
if (r == l_true) {
|
||||
std::sort(vars.begin(), vars.end());
|
||||
s.display(std::cout);
|
||||
for (auto v : vars) std::cout << v << " := " << s.get_model()[v] << "\n";
|
||||
std::string line;
|
||||
std::getline(std::cin, line);
|
||||
IF_VERBOSE(0,
|
||||
std::sort(vars.begin(), vars.end());
|
||||
s.display(verbose_stream());
|
||||
for (auto v : vars) verbose_stream() << v << " := " << s.get_model()[v] << "\n";
|
||||
);
|
||||
UNREACHABLE();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -75,8 +75,7 @@ namespace sat {
|
|||
IF_VERBOSE(0,
|
||||
verbose_stream() << "not validated: " << clause << "\n";
|
||||
s.display(verbose_stream()););
|
||||
std::string line;
|
||||
std::getline(std::cin, line);
|
||||
UNREACHABLE();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -467,9 +467,7 @@ namespace sat {
|
|||
literal_vector lits(n, c);
|
||||
IF_VERBOSE(0, verbose_stream() << "Verification of " << lits << " failed\n");
|
||||
// s.display(std::cout);
|
||||
std::string line;
|
||||
std::getline(std::cin, line);
|
||||
exit(0);
|
||||
UNREACHABLE();
|
||||
#if 0
|
||||
SASSERT(false);
|
||||
INVOKE_DEBUGGER();
|
||||
|
|
|
@ -1831,8 +1831,8 @@ namespace sat {
|
|||
if (not_l == l2)
|
||||
continue;
|
||||
if ((~l2).index() >= m_visited.size()) {
|
||||
s.display(std::cout << l2 << " " << s.num_vars() << " " << m_visited.size() << "\n");
|
||||
exit(0);
|
||||
//s.display(std::cout << l2 << " " << s.num_vars() << " " << m_visited.size() << "\n");
|
||||
UNREACHABLE();
|
||||
}
|
||||
if (m_visited[(~l2).index()]) {
|
||||
res = false;
|
||||
|
|
|
@ -93,8 +93,10 @@ namespace array {
|
|||
validate_extensionality(n, k);
|
||||
}
|
||||
expr* x = nullptr, *y = nullptr;
|
||||
#if 0
|
||||
if (m.is_eq(n->get_expr(), x, y) && a.is_array(x))
|
||||
std::cout << ctx.bpp(n) << " " << s().value(n->bool_var()) << "\n";
|
||||
#endif
|
||||
if (m.is_eq(n->get_expr(), x, y) && a.is_array(x) && s().value(n->bool_var()) == l_false)
|
||||
validate_extensionality(expr2enode(x), expr2enode(y));
|
||||
}
|
||||
|
|
|
@ -93,6 +93,7 @@ namespace bv {
|
|||
} while (curr != v);
|
||||
|
||||
zero_one_bits const& _bits = m_zero_one_bits[v];
|
||||
#if 0
|
||||
if (_bits.size() != num_bits) {
|
||||
std::cout << "v" << v << " " << _bits.size() << " " << num_bits << "\n";
|
||||
std::cout << "true: " << mk_true() << "\n";
|
||||
|
@ -102,6 +103,7 @@ namespace bv {
|
|||
}
|
||||
while (curr != v);
|
||||
}
|
||||
#endif
|
||||
SASSERT(_bits.size() == num_bits);
|
||||
VERIFY(_bits.size() == num_bits);
|
||||
bool_vector already_found;
|
||||
|
|
|
@ -1624,7 +1624,7 @@ namespace pb {
|
|||
CTRACE("ba", coeff == 0, display(tout << l << " coeff: " << coeff << "\n", p, true););
|
||||
|
||||
if (_debug_conflict) {
|
||||
std::cout << "coeff " << coeff << "\n";
|
||||
IF_VERBOSE(0, verbose_stream() << "coeff " << coeff << "\n";);
|
||||
}
|
||||
|
||||
SASSERT(coeff > 0);
|
||||
|
@ -2256,7 +2256,7 @@ namespace pb {
|
|||
SASSERT(c.lit() == sat::null_literal || c.is_watched(*this, c.lit()));
|
||||
|
||||
// pre-condition is that the literals, except c.lit(), in c are unwatched.
|
||||
if (c.id() == _bad_id) std::cout << "recompile: " << c << "\n";
|
||||
//if (c.id() == _bad_id) std::cout << "recompile: " << c << "\n";
|
||||
m_weights.resize(2*s().num_vars(), 0);
|
||||
for (literal l : c) {
|
||||
++m_weights[l.index()];
|
||||
|
|
|
@ -302,9 +302,10 @@ namespace q {
|
|||
return md->v2t[md->values[j]];
|
||||
};
|
||||
|
||||
#if 0
|
||||
for (unsigned j = 0; j < sz; ++j)
|
||||
std::cout << mk_pp(md->values[j], m) << "\n";
|
||||
|
||||
#endif
|
||||
|
||||
expr* arg = t->get_arg(i);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue