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
|
@ -42,6 +42,7 @@ Revision History:
|
|||
#include "smt/smt_model_finder.h"
|
||||
#include "smt/smt_parallel.h"
|
||||
#include "smt/smt_arith_value.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace smt {
|
||||
|
||||
|
@ -3943,8 +3944,7 @@ namespace smt {
|
|||
if (m_fparams.m_model_on_final_check) {
|
||||
mk_proto_model();
|
||||
model_pp(std::cout, *m_proto_model);
|
||||
std::cout << "END_OF_MODEL\n";
|
||||
std::cout.flush();
|
||||
std::cout << "END_OF_MODEL" << std::endl;
|
||||
}
|
||||
|
||||
m_stats.m_num_final_checks++;
|
||||
|
|
|
@ -136,9 +136,9 @@ namespace smt {
|
|||
}
|
||||
|
||||
void context::display_profile_res_sub(std::ostream & out) const {
|
||||
display_var_occs_histogram(std::cerr);
|
||||
display_num_min_occs(std::cerr);
|
||||
std::cerr << "\n";
|
||||
display_var_occs_histogram(out);
|
||||
display_num_min_occs(out);
|
||||
out << "\n";
|
||||
}
|
||||
|
||||
void context::display_profile(std::ostream & out) const {
|
||||
|
|
|
@ -18,8 +18,6 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
|
||||
namespace smt {
|
||||
|
||||
struct statistics {
|
||||
|
|
|
@ -272,12 +272,14 @@ namespace smt {
|
|||
std::cout << smt << "\n";
|
||||
std::cout << tns << "\n";
|
||||
#endif
|
||||
#if 0
|
||||
if (tns == sz1) {
|
||||
std::cout << "SEEN " << tms << "\n";
|
||||
}
|
||||
if (tns == sz2) {
|
||||
std::cout << "SEEN " << smt << "\n";
|
||||
}
|
||||
#endif
|
||||
ctx().push_trail(value_trail<bool>(i1.m_is_leaf, false));
|
||||
ctx().push_trail(value_trail<bool>(i2.m_is_leaf, false));
|
||||
expr_ref k1(m), k2(m), k3(m);
|
||||
|
|
|
@ -1598,10 +1598,12 @@ namespace smt {
|
|||
lbool is_sat = k.check();
|
||||
validating = false;
|
||||
// std::cout << is_sat << "\n";
|
||||
#if 0
|
||||
if (is_sat == l_true) {
|
||||
std::cout << A << "\n";
|
||||
std::cout << B << "\n";
|
||||
}
|
||||
#endif
|
||||
SASSERT(is_sat != l_true);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue