mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05: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
|
@ -121,11 +121,11 @@ namespace datalog {
|
|||
}
|
||||
|
||||
void boogie_proof::set_proof(proof* p) {
|
||||
std::cout << "set proof\n";
|
||||
//std::cout << "set proof\n";
|
||||
m_proof = p;
|
||||
proof_utils::push_instantiations_up(m_proof);
|
||||
mk_input_resolution(m_proof);
|
||||
std::cout << "proof set\n";
|
||||
//std::cout << "proof set\n";
|
||||
}
|
||||
|
||||
void boogie_proof::set_model(model* m) {
|
||||
|
@ -201,7 +201,7 @@ namespace datalog {
|
|||
ptr_vector<proof> todo;
|
||||
todo.push_back(p);
|
||||
ast_mark visited;
|
||||
std::cout << "get_subst\n" << mk_pp(p, m) << "\n";
|
||||
//std::cout << "get_subst\n" << mk_pp(p, m) << "\n";
|
||||
while (!todo.empty()) {
|
||||
proof* p = todo.back();
|
||||
todo.pop_back();
|
||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
|||
|
||||
--*/
|
||||
|
||||
#include<iostream>
|
||||
#include<sstream>
|
||||
#include<limits>
|
||||
#include "ast/arith_decl_plugin.h"
|
||||
|
|
|
@ -257,12 +257,14 @@ namespace datalog {
|
|||
}
|
||||
container[i-ofs] = container[i];
|
||||
}
|
||||
#if 0
|
||||
if (r_i != removed_col_cnt) {
|
||||
for (unsigned i = 0; i < removed_col_cnt; ++i) {
|
||||
std::cout << removed_cols[i] << " ";
|
||||
}
|
||||
std::cout << " container size: " << n << "\n";
|
||||
}
|
||||
#endif
|
||||
SASSERT(r_i==removed_col_cnt);
|
||||
container.resize(n-removed_col_cnt);
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@ Revision History:
|
|||
#include "ast/scoped_proof.h"
|
||||
#include "ast/bv_decl_plugin.h"
|
||||
#include "muz/rel/tbv.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace datalog {
|
||||
|
||||
|
@ -224,9 +225,9 @@ namespace datalog {
|
|||
}
|
||||
|
||||
void display_statistics(std::ostream& out) const {
|
||||
std::cout << "Number of insertions: " << m_stats.m_num_inserts << "\n";
|
||||
std::cout << "Number of comparisons: " << m_stats.m_num_comparisons << "\n";
|
||||
std::cout << "Number of nodes: " << size() << "\n";
|
||||
out << "Number of insertions: " << m_stats.m_num_inserts << "\n"
|
||||
"Number of comparisons: " << m_stats.m_num_comparisons << "\n"
|
||||
"Number of nodes: " << size() << "\n";
|
||||
}
|
||||
|
||||
void display(std::ostream& out) const {
|
||||
|
|
|
@ -108,13 +108,11 @@ namespace datalog {
|
|||
rule *r = *II;
|
||||
unsigned numqs = r->get_positive_tail_size();
|
||||
if (numqs > 1) {
|
||||
std::cerr << "non-linear clauses not supported\n";
|
||||
exit(-1);
|
||||
throw default_exception("non-linear clauses not supported");
|
||||
}
|
||||
|
||||
if (numqs != r->get_uninterpreted_tail_size()) {
|
||||
std::cerr << "negation of queries not supported\n";
|
||||
exit(-1);
|
||||
throw default_exception("negation of queries not supported");
|
||||
}
|
||||
|
||||
exprs.reset();
|
||||
|
|
|
@ -18,8 +18,6 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<list>
|
||||
#include<utility>
|
||||
|
||||
#include "ast/ast.h"
|
||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include<string>
|
||||
#include<utility>
|
||||
#include "ast/ast.h"
|
||||
|
|
|
@ -19,7 +19,6 @@ Revision History:
|
|||
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<list>
|
||||
#include<utility>
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<list>
|
||||
#include<utility>
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ Notes:
|
|||
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include<map>
|
||||
#include "util/ref.h"
|
||||
#include "util/ref_vector.h"
|
||||
|
|
|
@ -39,6 +39,7 @@ namespace datalog {
|
|||
}
|
||||
|
||||
rule_set * mk_array_instantiation::operator()(rule_set const & source) {
|
||||
#if 0
|
||||
std::cout<<"Array Instantiation called with parameters :"
|
||||
<<" enforce="<<m_ctx.get_params().xform_instantiate_arrays_enforce()
|
||||
<<" nb_quantifier="<<m_ctx.get_params().xform_instantiate_arrays_nb_quantifier()
|
||||
|
@ -46,6 +47,7 @@ namespace datalog {
|
|||
<<"\n";
|
||||
std::cout<<"Input rules = \n";
|
||||
source.display(std::cout);
|
||||
#endif
|
||||
src_set = &source;
|
||||
scoped_ptr<rule_set> result = alloc(rule_set, m_ctx);
|
||||
dst = result.get();
|
||||
|
@ -55,8 +57,10 @@ namespace datalog {
|
|||
rule & r = *source.get_rule(i);
|
||||
instantiate_rule(r, *result);
|
||||
}
|
||||
#if 0
|
||||
std::cout<<"\n\nOutput rules = \n";
|
||||
result->display(std::cout);
|
||||
#endif
|
||||
return result.detach();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue