mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +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
|
@ -1771,7 +1771,6 @@ def write_log_h_preamble(log_h):
|
||||||
|
|
||||||
def write_log_c_preamble(log_c):
|
def write_log_c_preamble(log_c):
|
||||||
log_c.write('// Automatically generated file\n')
|
log_c.write('// Automatically generated file\n')
|
||||||
log_c.write('#include<iostream>\n')
|
|
||||||
log_c.write('#include\"api/z3.h\"\n')
|
log_c.write('#include\"api/z3.h\"\n')
|
||||||
log_c.write('#include\"api/api_log_macros.h\"\n')
|
log_c.write('#include\"api/api_log_macros.h\"\n')
|
||||||
log_c.write('#include\"api/z3_logger.h\"\n')
|
log_c.write('#include\"api/z3_logger.h\"\n')
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
#include "api/api_util.h"
|
#include "api/api_util.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -16,7 +16,6 @@ Author:
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -16,7 +16,6 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<cmath>
|
#include<cmath>
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "util/cancel_eh.h"
|
#include "util/cancel_eh.h"
|
||||||
#include "util/scoped_timer.h"
|
#include "util/scoped_timer.h"
|
||||||
#include "util/scoped_ctrl_c.h"
|
#include "util/scoped_ctrl_c.h"
|
||||||
|
|
|
@ -17,7 +17,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -17,7 +17,6 @@ Notes:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include "ast/expr_map.h"
|
#include "ast/expr_map.h"
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
|
|
|
@ -19,7 +19,6 @@ Author:
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -16,7 +16,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include<thread>
|
#include<thread>
|
||||||
#include "util/scoped_ctrl_c.h"
|
#include "util/scoped_ctrl_c.h"
|
||||||
#include "util/cancel_eh.h"
|
#include "util/cancel_eh.h"
|
||||||
|
|
|
@ -17,7 +17,6 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "api/api_log_macros.h"
|
#include "api/api_log_macros.h"
|
||||||
#include "api/api_context.h"
|
#include "api/api_context.h"
|
||||||
|
|
|
@ -21,7 +21,7 @@ Notes:
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<cassert>
|
#include<cassert>
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include<string>
|
#include<string>
|
||||||
#include<sstream>
|
#include<sstream>
|
||||||
#include<memory>
|
#include<memory>
|
||||||
|
|
|
@ -18,7 +18,6 @@ Notes:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include<iostream>
|
|
||||||
#include "util/rational.h"
|
#include "util/rational.h"
|
||||||
#include "api/z3_macros.h"
|
#include "api/z3_macros.h"
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ Notes:
|
||||||
#include "util/stream_buffer.h"
|
#include "util/stream_buffer.h"
|
||||||
#include "util/symbol.h"
|
#include "util/symbol.h"
|
||||||
#include "util/trace.h"
|
#include "util/trace.h"
|
||||||
|
#include<iostream>
|
||||||
#include<sstream>
|
#include<sstream>
|
||||||
#include<vector>
|
#include<vector>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ Notes:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
|
||||||
#include "api/z3.h"
|
#include "api/z3.h"
|
||||||
#include "util/z3_exception.h"
|
#include "util/z3_exception.h"
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ Revision History:
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
#include "ast/ast_translation.h"
|
#include "ast/ast_translation.h"
|
||||||
#include "util/z3_version.h"
|
#include "util/z3_version.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
|
||||||
// -----------------------------------
|
// -----------------------------------
|
||||||
|
|
|
@ -17,7 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include<iostream>
|
#include "ast/ast_ll_pp.h"
|
||||||
#include "ast/for_each_ast.h"
|
#include "ast/for_each_ast.h"
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
#include "ast/datatype_decl_plugin.h"
|
#include "ast/datatype_decl_plugin.h"
|
||||||
|
|
|
@ -19,7 +19,7 @@ Revision History:
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ast/ast.h"
|
#include "ast/ast.h"
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
|
|
||||||
void ast_ll_pp(std::ostream & out, ast_manager & m, ast * n, bool only_exprs=true, bool compact=true);
|
void ast_ll_pp(std::ostream & out, ast_manager & m, ast * n, bool only_exprs=true, bool compact=true);
|
||||||
void ast_ll_pp(std::ostream & out, ast_manager & m, ast * n, ast_mark & visited, bool only_exprs=true, bool compact=true);
|
void ast_ll_pp(std::ostream & out, ast_manager & m, ast * n, ast_mark & visited, bool only_exprs=true, bool compact=true);
|
||||||
|
|
|
@ -6,7 +6,7 @@ Abstract: Pretty-printer for proofs in Graphviz format
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <iostream>
|
#include <ostream>
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
|
|
||||||
class ast_pp_dot {
|
class ast_pp_dot {
|
||||||
|
|
|
@ -18,6 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#include "ast/ast_printer.h"
|
#include "ast/ast_printer.h"
|
||||||
#include "ast/pp.h"
|
#include "ast/pp.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
class simple_ast_printer_context : public ast_printer_context {
|
class simple_ast_printer_context : public ast_printer_context {
|
||||||
ast_manager & m_manager;
|
ast_manager & m_manager;
|
||||||
|
@ -51,3 +52,6 @@ public:
|
||||||
ast_printer_context * mk_simple_ast_printer_context(ast_manager & m) {
|
ast_printer_context * mk_simple_ast_printer_context(ast_manager & m) {
|
||||||
return alloc(simple_ast_printer_context, m);
|
return alloc(simple_ast_printer_context, m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::ostream & ast_printer_context::regular_stream() { return std::cout; }
|
||||||
|
std::ostream & ast_printer_context::diagnostic_stream() { return std::cerr; }
|
||||||
|
|
|
@ -20,6 +20,7 @@ Revision History:
|
||||||
|
|
||||||
#include "ast/ast.h"
|
#include "ast/ast.h"
|
||||||
#include "ast/ast_smt2_pp.h"
|
#include "ast/ast_smt2_pp.h"
|
||||||
|
#include <ostream>
|
||||||
|
|
||||||
class ast_printer {
|
class ast_printer {
|
||||||
public:
|
public:
|
||||||
|
@ -46,8 +47,8 @@ class ast_printer_context : public ast_printer {
|
||||||
public:
|
public:
|
||||||
~ast_printer_context() override {}
|
~ast_printer_context() override {}
|
||||||
virtual ast_manager & get_ast_manager() = 0;
|
virtual ast_manager & get_ast_manager() = 0;
|
||||||
virtual std::ostream & regular_stream() { return std::cout; }
|
virtual std::ostream & regular_stream();
|
||||||
virtual std::ostream & diagnostic_stream() { return std::cerr; }
|
virtual std::ostream & diagnostic_stream();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include<sstream>
|
#include<sstream>
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
#include "util/smt2_util.h"
|
#include "util/smt2_util.h"
|
||||||
#include "ast/ast_smt_pp.h"
|
#include "ast/ast_smt_pp.h"
|
||||||
|
|
|
@ -162,7 +162,7 @@ expr_ref bv2fpa_converter::convert_bv2rm(expr * bv_rm) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::cout << expr_ref(bv_rm, m) << " not converted\n";
|
//std::cout << expr_ref(bv_rm, m) << " not converted\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
|
@ -124,7 +124,7 @@ void fpa2bv_converter::mk_ite(expr * c, expr * t, expr * f, expr_ref & result) {
|
||||||
result = m_util.mk_bv2rm(result);
|
result = m_util.mk_bv2rm(result);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::cout << mk_pp(t, m) << " " << mk_pp(f, m) << "\n";
|
//std::cout << mk_pp(t, m) << " " << mk_pp(f, m) << "\n";
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,7 @@ Notes:
|
||||||
#include "solver/smt_logics.h"
|
#include "solver/smt_logics.h"
|
||||||
#include "cmd_context/basic_cmds.h"
|
#include "cmd_context/basic_cmds.h"
|
||||||
#include "cmd_context/cmd_context.h"
|
#include "cmd_context/cmd_context.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
func_decls::func_decls(ast_manager & m, func_decl * f):
|
func_decls::func_decls(ast_manager & m, func_decl * f):
|
||||||
m_decls(TAG(func_decl*, f, 0)) {
|
m_decls(TAG(func_decl*, f, 0)) {
|
||||||
|
|
|
@ -24,6 +24,7 @@ Revision History:
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
#include <iostream>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "util/stopwatch.h"
|
#include "util/stopwatch.h"
|
||||||
#include "util/statistics.h"
|
#include "util/statistics.h"
|
||||||
|
|
|
@ -33,7 +33,7 @@ Revision History:
|
||||||
#include "math/lp/static_matrix.h"
|
#include "math/lp/static_matrix.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "math/lp/numeric_pair.h"
|
#include "math/lp/numeric_pair.h"
|
||||||
#include <iostream>
|
#include <ostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "math/lp/row_eta_matrix.h"
|
#include "math/lp/row_eta_matrix.h"
|
||||||
#include "math/lp/square_dense_submatrix.h"
|
#include "math/lp/square_dense_submatrix.h"
|
||||||
|
|
|
@ -26,7 +26,7 @@ Revision History:
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <iostream>
|
#include <ostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include "math/lp/lp_primal_simplex.h"
|
#include "math/lp/lp_primal_simplex.h"
|
||||||
|
|
|
@ -29,6 +29,7 @@ Notes:
|
||||||
#include "util/ref_vector.h"
|
#include "util/ref_vector.h"
|
||||||
#include "util/ref_buffer.h"
|
#include "util/ref_buffer.h"
|
||||||
#include "util/common_msgs.h"
|
#include "util/common_msgs.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#ifndef REALCLOSURE_INI_BUFFER_SIZE
|
#ifndef REALCLOSURE_INI_BUFFER_SIZE
|
||||||
#define REALCLOSURE_INI_BUFFER_SIZE 32
|
#define REALCLOSURE_INI_BUFFER_SIZE 32
|
||||||
|
|
|
@ -281,7 +281,7 @@ namespace simplex {
|
||||||
vector<_row> const& m_rows;
|
vector<_row> const& m_rows;
|
||||||
void move_to_next() {
|
void move_to_next() {
|
||||||
while (m_curr < m_rows.size() && m_rows[m_curr].size() == 0) {
|
while (m_curr < m_rows.size() && m_rows[m_curr].size() == 0) {
|
||||||
std::cout << "size is 0 for " << m_curr << "\n";
|
//std::cout << "size is 0 for " << m_curr << "\n";
|
||||||
++m_curr;
|
++m_curr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include "util/tptr.h"
|
#include "util/tptr.h"
|
||||||
#include "util/small_object_allocator.h"
|
#include "util/small_object_allocator.h"
|
||||||
#include "util/chashtable.h"
|
#include "util/chashtable.h"
|
||||||
|
|
|
@ -26,6 +26,7 @@ Revision History:
|
||||||
#include "util/mpff.h"
|
#include "util/mpff.h"
|
||||||
#include "util/mpfx.h"
|
#include "util/mpfx.h"
|
||||||
#include "util/f2n.h"
|
#include "util/f2n.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
class subpaving_tactic : public tactic {
|
class subpaving_tactic : public tactic {
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
class model_core;
|
class model_core;
|
||||||
|
|
||||||
void model_pp(std::ostream & out, model_core const & m);
|
void model_pp(std::ostream & out, model_core const & m);
|
||||||
|
|
|
@ -18,6 +18,7 @@ Revision History:
|
||||||
#include "model/model_v2_pp.h"
|
#include "model/model_v2_pp.h"
|
||||||
#include "model/model_core.h"
|
#include "model/model_core.h"
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void display_function(std::ostream & out, model_core const & md, func_decl * f, bool partial) {
|
static void display_function(std::ostream & out, model_core const & md, func_decl * f, bool partial) {
|
||||||
ast_manager & m = md.get_manager();
|
ast_manager & m = md.get_manager();
|
||||||
|
|
|
@ -17,7 +17,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
class model_core;
|
class model_core;
|
||||||
|
|
||||||
void model_v2_pp(std::ostream & out, model_core const & m, bool partial = false);
|
void model_v2_pp(std::ostream & out, model_core const & m, bool partial = false);
|
||||||
|
|
|
@ -121,11 +121,11 @@ namespace datalog {
|
||||||
}
|
}
|
||||||
|
|
||||||
void boogie_proof::set_proof(proof* p) {
|
void boogie_proof::set_proof(proof* p) {
|
||||||
std::cout << "set proof\n";
|
//std::cout << "set proof\n";
|
||||||
m_proof = p;
|
m_proof = p;
|
||||||
proof_utils::push_instantiations_up(m_proof);
|
proof_utils::push_instantiations_up(m_proof);
|
||||||
mk_input_resolution(m_proof);
|
mk_input_resolution(m_proof);
|
||||||
std::cout << "proof set\n";
|
//std::cout << "proof set\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void boogie_proof::set_model(model* m) {
|
void boogie_proof::set_model(model* m) {
|
||||||
|
@ -201,7 +201,7 @@ namespace datalog {
|
||||||
ptr_vector<proof> todo;
|
ptr_vector<proof> todo;
|
||||||
todo.push_back(p);
|
todo.push_back(p);
|
||||||
ast_mark visited;
|
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()) {
|
while (!todo.empty()) {
|
||||||
proof* p = todo.back();
|
proof* p = todo.back();
|
||||||
todo.pop_back();
|
todo.pop_back();
|
||||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
|
#include<iostream>
|
||||||
#include<sstream>
|
#include<sstream>
|
||||||
#include<limits>
|
#include<limits>
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
|
|
|
@ -257,12 +257,14 @@ namespace datalog {
|
||||||
}
|
}
|
||||||
container[i-ofs] = container[i];
|
container[i-ofs] = container[i];
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
if (r_i != removed_col_cnt) {
|
if (r_i != removed_col_cnt) {
|
||||||
for (unsigned i = 0; i < removed_col_cnt; ++i) {
|
for (unsigned i = 0; i < removed_col_cnt; ++i) {
|
||||||
std::cout << removed_cols[i] << " ";
|
std::cout << removed_cols[i] << " ";
|
||||||
}
|
}
|
||||||
std::cout << " container size: " << n << "\n";
|
std::cout << " container size: " << n << "\n";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
SASSERT(r_i==removed_col_cnt);
|
SASSERT(r_i==removed_col_cnt);
|
||||||
container.resize(n-removed_col_cnt);
|
container.resize(n-removed_col_cnt);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@ Revision History:
|
||||||
#include "ast/scoped_proof.h"
|
#include "ast/scoped_proof.h"
|
||||||
#include "ast/bv_decl_plugin.h"
|
#include "ast/bv_decl_plugin.h"
|
||||||
#include "muz/rel/tbv.h"
|
#include "muz/rel/tbv.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
namespace datalog {
|
namespace datalog {
|
||||||
|
|
||||||
|
@ -224,9 +225,9 @@ namespace datalog {
|
||||||
}
|
}
|
||||||
|
|
||||||
void display_statistics(std::ostream& out) const {
|
void display_statistics(std::ostream& out) const {
|
||||||
std::cout << "Number of insertions: " << m_stats.m_num_inserts << "\n";
|
out << "Number of insertions: " << m_stats.m_num_inserts << "\n"
|
||||||
std::cout << "Number of comparisons: " << m_stats.m_num_comparisons << "\n";
|
"Number of comparisons: " << m_stats.m_num_comparisons << "\n"
|
||||||
std::cout << "Number of nodes: " << size() << "\n";
|
"Number of nodes: " << size() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void display(std::ostream& out) const {
|
void display(std::ostream& out) const {
|
||||||
|
|
|
@ -108,13 +108,11 @@ namespace datalog {
|
||||||
rule *r = *II;
|
rule *r = *II;
|
||||||
unsigned numqs = r->get_positive_tail_size();
|
unsigned numqs = r->get_positive_tail_size();
|
||||||
if (numqs > 1) {
|
if (numqs > 1) {
|
||||||
std::cerr << "non-linear clauses not supported\n";
|
throw default_exception("non-linear clauses not supported");
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (numqs != r->get_uninterpreted_tail_size()) {
|
if (numqs != r->get_uninterpreted_tail_size()) {
|
||||||
std::cerr << "negation of queries not supported\n";
|
throw default_exception("negation of queries not supported");
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exprs.reset();
|
exprs.reset();
|
||||||
|
|
|
@ -18,8 +18,6 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
|
||||||
#include<list>
|
|
||||||
#include<utility>
|
#include<utility>
|
||||||
|
|
||||||
#include "ast/ast.h"
|
#include "ast/ast.h"
|
||||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include<string>
|
#include<string>
|
||||||
#include<utility>
|
#include<utility>
|
||||||
#include "ast/ast.h"
|
#include "ast/ast.h"
|
||||||
|
|
|
@ -19,7 +19,6 @@ Revision History:
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
|
||||||
#include<list>
|
#include<list>
|
||||||
#include<utility>
|
#include<utility>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
|
||||||
#include<list>
|
#include<list>
|
||||||
#include<utility>
|
#include<utility>
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Notes:
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include<map>
|
#include<map>
|
||||||
#include "util/ref.h"
|
#include "util/ref.h"
|
||||||
#include "util/ref_vector.h"
|
#include "util/ref_vector.h"
|
||||||
|
|
|
@ -39,6 +39,7 @@ namespace datalog {
|
||||||
}
|
}
|
||||||
|
|
||||||
rule_set * mk_array_instantiation::operator()(rule_set const & source) {
|
rule_set * mk_array_instantiation::operator()(rule_set const & source) {
|
||||||
|
#if 0
|
||||||
std::cout<<"Array Instantiation called with parameters :"
|
std::cout<<"Array Instantiation called with parameters :"
|
||||||
<<" enforce="<<m_ctx.get_params().xform_instantiate_arrays_enforce()
|
<<" enforce="<<m_ctx.get_params().xform_instantiate_arrays_enforce()
|
||||||
<<" nb_quantifier="<<m_ctx.get_params().xform_instantiate_arrays_nb_quantifier()
|
<<" nb_quantifier="<<m_ctx.get_params().xform_instantiate_arrays_nb_quantifier()
|
||||||
|
@ -46,6 +47,7 @@ namespace datalog {
|
||||||
<<"\n";
|
<<"\n";
|
||||||
std::cout<<"Input rules = \n";
|
std::cout<<"Input rules = \n";
|
||||||
source.display(std::cout);
|
source.display(std::cout);
|
||||||
|
#endif
|
||||||
src_set = &source;
|
src_set = &source;
|
||||||
scoped_ptr<rule_set> result = alloc(rule_set, m_ctx);
|
scoped_ptr<rule_set> result = alloc(rule_set, m_ctx);
|
||||||
dst = result.get();
|
dst = result.get();
|
||||||
|
@ -55,8 +57,10 @@ namespace datalog {
|
||||||
rule & r = *source.get_rule(i);
|
rule & r = *source.get_rule(i);
|
||||||
instantiate_rule(r, *result);
|
instantiate_rule(r, *result);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
std::cout<<"\n\nOutput rules = \n";
|
std::cout<<"\n\nOutput rules = \n";
|
||||||
result->display(std::cout);
|
result->display(std::cout);
|
||||||
|
#endif
|
||||||
return result.detach();
|
return result.detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#include "opt/opt_context.h"
|
#include "opt/opt_context.h"
|
||||||
#include "opt/opt_parse.h"
|
#include "opt/opt_parse.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
class opt_stream_buffer {
|
class opt_stream_buffer {
|
||||||
std::istream & m_stream;
|
std::istream & m_stream;
|
||||||
|
|
|
@ -12,7 +12,7 @@ Abstract:
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <ostream>
|
||||||
|
|
||||||
#include "ast/ast.h"
|
#include "ast/ast.h"
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<istream>
|
||||||
#include "util/symbol.h"
|
#include "util/symbol.h"
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
#include "util/rational.h"
|
#include "util/rational.h"
|
||||||
|
|
|
@ -26,7 +26,6 @@ class cost_parser : public simple_parser {
|
||||||
var_ref_vector m_vars;
|
var_ref_vector m_vars;
|
||||||
public:
|
public:
|
||||||
cost_parser(ast_manager & m);
|
cost_parser(ast_manager & m);
|
||||||
~cost_parser() override {}
|
|
||||||
expr * parse_int(rational const & r) override;
|
expr * parse_int(rational const & r) override;
|
||||||
expr * parse_float(rational const & r) override;
|
expr * parse_float(rational const & r) override;
|
||||||
unsigned add_var(symbol name);
|
unsigned add_var(symbol name);
|
||||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include "parsers/util/scanner.h"
|
#include "parsers/util/scanner.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
inline int scanner::read_char() {
|
inline int scanner::read_char() {
|
||||||
if (m_is_interactive) {
|
if (m_is_interactive) {
|
||||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<fstream>
|
#include<fstream>
|
||||||
|
#include<iostream>
|
||||||
#include<sstream>
|
#include<sstream>
|
||||||
#include "parsers/util/simple_parser.h"
|
#include "parsers/util/simple_parser.h"
|
||||||
#include "util/warning.h"
|
#include "util/warning.h"
|
||||||
|
|
|
@ -818,11 +818,12 @@ namespace sat {
|
||||||
lbool r = s.check();
|
lbool r = s.check();
|
||||||
IF_VERBOSE(10, verbose_stream() << "check: " << r << "\n");
|
IF_VERBOSE(10, verbose_stream() << "check: " << r << "\n");
|
||||||
if (r == l_true) {
|
if (r == l_true) {
|
||||||
|
IF_VERBOSE(0,
|
||||||
std::sort(vars.begin(), vars.end());
|
std::sort(vars.begin(), vars.end());
|
||||||
s.display(std::cout);
|
s.display(verbose_stream());
|
||||||
for (auto v : vars) std::cout << v << " := " << s.get_model()[v] << "\n";
|
for (auto v : vars) verbose_stream() << v << " := " << s.get_model()[v] << "\n";
|
||||||
std::string line;
|
);
|
||||||
std::getline(std::cin, line);
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -75,8 +75,7 @@ namespace sat {
|
||||||
IF_VERBOSE(0,
|
IF_VERBOSE(0,
|
||||||
verbose_stream() << "not validated: " << clause << "\n";
|
verbose_stream() << "not validated: " << clause << "\n";
|
||||||
s.display(verbose_stream()););
|
s.display(verbose_stream()););
|
||||||
std::string line;
|
UNREACHABLE();
|
||||||
std::getline(std::cin, line);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -467,9 +467,7 @@ namespace sat {
|
||||||
literal_vector lits(n, c);
|
literal_vector lits(n, c);
|
||||||
IF_VERBOSE(0, verbose_stream() << "Verification of " << lits << " failed\n");
|
IF_VERBOSE(0, verbose_stream() << "Verification of " << lits << " failed\n");
|
||||||
// s.display(std::cout);
|
// s.display(std::cout);
|
||||||
std::string line;
|
UNREACHABLE();
|
||||||
std::getline(std::cin, line);
|
|
||||||
exit(0);
|
|
||||||
#if 0
|
#if 0
|
||||||
SASSERT(false);
|
SASSERT(false);
|
||||||
INVOKE_DEBUGGER();
|
INVOKE_DEBUGGER();
|
||||||
|
|
|
@ -1831,8 +1831,8 @@ namespace sat {
|
||||||
if (not_l == l2)
|
if (not_l == l2)
|
||||||
continue;
|
continue;
|
||||||
if ((~l2).index() >= m_visited.size()) {
|
if ((~l2).index() >= m_visited.size()) {
|
||||||
s.display(std::cout << l2 << " " << s.num_vars() << " " << m_visited.size() << "\n");
|
//s.display(std::cout << l2 << " " << s.num_vars() << " " << m_visited.size() << "\n");
|
||||||
exit(0);
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
if (m_visited[(~l2).index()]) {
|
if (m_visited[(~l2).index()]) {
|
||||||
res = false;
|
res = false;
|
||||||
|
|
|
@ -93,8 +93,10 @@ namespace array {
|
||||||
validate_extensionality(n, k);
|
validate_extensionality(n, k);
|
||||||
}
|
}
|
||||||
expr* x = nullptr, *y = nullptr;
|
expr* x = nullptr, *y = nullptr;
|
||||||
|
#if 0
|
||||||
if (m.is_eq(n->get_expr(), x, y) && a.is_array(x))
|
if (m.is_eq(n->get_expr(), x, y) && a.is_array(x))
|
||||||
std::cout << ctx.bpp(n) << " " << s().value(n->bool_var()) << "\n";
|
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)
|
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));
|
validate_extensionality(expr2enode(x), expr2enode(y));
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,6 +93,7 @@ namespace bv {
|
||||||
} while (curr != v);
|
} while (curr != v);
|
||||||
|
|
||||||
zero_one_bits const& _bits = m_zero_one_bits[v];
|
zero_one_bits const& _bits = m_zero_one_bits[v];
|
||||||
|
#if 0
|
||||||
if (_bits.size() != num_bits) {
|
if (_bits.size() != num_bits) {
|
||||||
std::cout << "v" << v << " " << _bits.size() << " " << num_bits << "\n";
|
std::cout << "v" << v << " " << _bits.size() << " " << num_bits << "\n";
|
||||||
std::cout << "true: " << mk_true() << "\n";
|
std::cout << "true: " << mk_true() << "\n";
|
||||||
|
@ -102,6 +103,7 @@ namespace bv {
|
||||||
}
|
}
|
||||||
while (curr != v);
|
while (curr != v);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
SASSERT(_bits.size() == num_bits);
|
SASSERT(_bits.size() == num_bits);
|
||||||
VERIFY(_bits.size() == num_bits);
|
VERIFY(_bits.size() == num_bits);
|
||||||
bool_vector already_found;
|
bool_vector already_found;
|
||||||
|
|
|
@ -1624,7 +1624,7 @@ namespace pb {
|
||||||
CTRACE("ba", coeff == 0, display(tout << l << " coeff: " << coeff << "\n", p, true););
|
CTRACE("ba", coeff == 0, display(tout << l << " coeff: " << coeff << "\n", p, true););
|
||||||
|
|
||||||
if (_debug_conflict) {
|
if (_debug_conflict) {
|
||||||
std::cout << "coeff " << coeff << "\n";
|
IF_VERBOSE(0, verbose_stream() << "coeff " << coeff << "\n";);
|
||||||
}
|
}
|
||||||
|
|
||||||
SASSERT(coeff > 0);
|
SASSERT(coeff > 0);
|
||||||
|
@ -2256,7 +2256,7 @@ namespace pb {
|
||||||
SASSERT(c.lit() == sat::null_literal || c.is_watched(*this, c.lit()));
|
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.
|
// 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);
|
m_weights.resize(2*s().num_vars(), 0);
|
||||||
for (literal l : c) {
|
for (literal l : c) {
|
||||||
++m_weights[l.index()];
|
++m_weights[l.index()];
|
||||||
|
|
|
@ -302,9 +302,10 @@ namespace q {
|
||||||
return md->v2t[md->values[j]];
|
return md->v2t[md->values[j]];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
for (unsigned j = 0; j < sz; ++j)
|
for (unsigned j = 0; j < sz; ++j)
|
||||||
std::cout << mk_pp(md->values[j], m) << "\n";
|
std::cout << mk_pp(md->values[j], m) << "\n";
|
||||||
|
#endif
|
||||||
|
|
||||||
expr* arg = t->get_arg(i);
|
expr* arg = t->get_arg(i);
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ Author:
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
#include "util/gparams.h"
|
#include "util/gparams.h"
|
||||||
#include "util/mutex.h"
|
#include "util/mutex.h"
|
||||||
|
#include <iostream>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "smt/params/smt_params_helper.hpp"
|
#include "smt/params/smt_params_helper.hpp"
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include<fstream>
|
#include<fstream>
|
||||||
|
#include<iostream>
|
||||||
#include<signal.h>
|
#include<signal.h>
|
||||||
#include<time.h>
|
#include<time.h>
|
||||||
#include "util/gparams.h"
|
#include "util/gparams.h"
|
||||||
|
|
|
@ -42,6 +42,7 @@ Revision History:
|
||||||
#include "smt/smt_model_finder.h"
|
#include "smt/smt_model_finder.h"
|
||||||
#include "smt/smt_parallel.h"
|
#include "smt/smt_parallel.h"
|
||||||
#include "smt/smt_arith_value.h"
|
#include "smt/smt_arith_value.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
namespace smt {
|
namespace smt {
|
||||||
|
|
||||||
|
@ -3943,8 +3944,7 @@ namespace smt {
|
||||||
if (m_fparams.m_model_on_final_check) {
|
if (m_fparams.m_model_on_final_check) {
|
||||||
mk_proto_model();
|
mk_proto_model();
|
||||||
model_pp(std::cout, *m_proto_model);
|
model_pp(std::cout, *m_proto_model);
|
||||||
std::cout << "END_OF_MODEL\n";
|
std::cout << "END_OF_MODEL" << std::endl;
|
||||||
std::cout.flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_stats.m_num_final_checks++;
|
m_stats.m_num_final_checks++;
|
||||||
|
|
|
@ -136,9 +136,9 @@ namespace smt {
|
||||||
}
|
}
|
||||||
|
|
||||||
void context::display_profile_res_sub(std::ostream & out) const {
|
void context::display_profile_res_sub(std::ostream & out) const {
|
||||||
display_var_occs_histogram(std::cerr);
|
display_var_occs_histogram(out);
|
||||||
display_num_min_occs(std::cerr);
|
display_num_min_occs(out);
|
||||||
std::cerr << "\n";
|
out << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void context::display_profile(std::ostream & out) const {
|
void context::display_profile(std::ostream & out) const {
|
||||||
|
|
|
@ -18,8 +18,6 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
|
||||||
|
|
||||||
namespace smt {
|
namespace smt {
|
||||||
|
|
||||||
struct statistics {
|
struct statistics {
|
||||||
|
|
|
@ -272,12 +272,14 @@ namespace smt {
|
||||||
std::cout << smt << "\n";
|
std::cout << smt << "\n";
|
||||||
std::cout << tns << "\n";
|
std::cout << tns << "\n";
|
||||||
#endif
|
#endif
|
||||||
|
#if 0
|
||||||
if (tns == sz1) {
|
if (tns == sz1) {
|
||||||
std::cout << "SEEN " << tms << "\n";
|
std::cout << "SEEN " << tms << "\n";
|
||||||
}
|
}
|
||||||
if (tns == sz2) {
|
if (tns == sz2) {
|
||||||
std::cout << "SEEN " << smt << "\n";
|
std::cout << "SEEN " << smt << "\n";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
ctx().push_trail(value_trail<bool>(i1.m_is_leaf, false));
|
ctx().push_trail(value_trail<bool>(i1.m_is_leaf, false));
|
||||||
ctx().push_trail(value_trail<bool>(i2.m_is_leaf, false));
|
ctx().push_trail(value_trail<bool>(i2.m_is_leaf, false));
|
||||||
expr_ref k1(m), k2(m), k3(m);
|
expr_ref k1(m), k2(m), k3(m);
|
||||||
|
|
|
@ -1598,10 +1598,12 @@ namespace smt {
|
||||||
lbool is_sat = k.check();
|
lbool is_sat = k.check();
|
||||||
validating = false;
|
validating = false;
|
||||||
// std::cout << is_sat << "\n";
|
// std::cout << is_sat << "\n";
|
||||||
|
#if 0
|
||||||
if (is_sat == l_true) {
|
if (is_sat == l_true) {
|
||||||
std::cout << A << "\n";
|
std::cout << A << "\n";
|
||||||
std::cout << B << "\n";
|
std::cout << B << "\n";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
SASSERT(is_sat != l_true);
|
SASSERT(is_sat != l_true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -368,7 +368,6 @@ br_status bv2real_rewriter::mk_app_core(func_decl * f, unsigned num_args, expr *
|
||||||
tout << "\n";);
|
tout << "\n";);
|
||||||
|
|
||||||
if (u().memory_exceeded()) {
|
if (u().memory_exceeded()) {
|
||||||
std::cout << "tactic exception\n";
|
|
||||||
throw tactic_exception("bv2real-memory exceeded");
|
throw tactic_exception("bv2real-memory exceeded");
|
||||||
}
|
}
|
||||||
if(f->get_family_id() == m_arith.get_family_id()) {
|
if(f->get_family_id() == m_arith.get_family_id()) {
|
||||||
|
|
|
@ -29,6 +29,7 @@ Notes:
|
||||||
#include "ast/fpa_decl_plugin.h"
|
#include "ast/fpa_decl_plugin.h"
|
||||||
#include "tactic/tactical.h"
|
#include "tactic/tactical.h"
|
||||||
#include "util/stats.h"
|
#include "util/stats.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#include "tactic/core/collect_statistics_tactic.h"
|
#include "tactic/core/collect_statistics_tactic.h"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Notes:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include<climits>
|
#include<climits>
|
||||||
|
|
||||||
class approx_nat {
|
class approx_nat {
|
||||||
|
|
|
@ -17,7 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include "util/debug.h"
|
#include "util/debug.h"
|
||||||
|
|
||||||
template<typename T> class approx_set_traits;
|
template<typename T> class approx_set_traits;
|
||||||
|
|
|
@ -14,7 +14,6 @@ Author:
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "util/cmd_context_types.h"
|
#include "util/cmd_context_types.h"
|
||||||
|
|
||||||
std::ostream & operator<<(std::ostream & out, cmd_arg_kind k) {
|
std::ostream & operator<<(std::ostream & out, cmd_arg_kind k) {
|
||||||
|
|
|
@ -18,6 +18,7 @@ Notes:
|
||||||
|
|
||||||
#include "util/symbol.h"
|
#include "util/symbol.h"
|
||||||
#include "util/z3_exception.h"
|
#include "util/z3_exception.h"
|
||||||
|
#include <ostream>
|
||||||
#include<sstream>
|
#include<sstream>
|
||||||
class rational;
|
class rational;
|
||||||
class expr;
|
class expr;
|
||||||
|
|
|
@ -19,7 +19,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include "util/debug.h"
|
#include "util/debug.h"
|
||||||
|
|
||||||
enum ext_numeral_kind { EN_MINUS_INFINITY, EN_NUMERAL, EN_PLUS_INFINITY };
|
enum ext_numeral_kind { EN_MINUS_INFINITY, EN_NUMERAL, EN_PLUS_INFINITY };
|
||||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
|
|
||||||
class permutation {
|
class permutation {
|
||||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include<cstdlib>
|
#include<cstdlib>
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
|
|
||||||
#ifdef Z3DEBUG
|
#ifdef Z3DEBUG
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<signal.h>
|
#include<signal.h>
|
||||||
#include<iostream>
|
|
||||||
#include "util/scoped_ctrl_c.h"
|
#include "util/scoped_ctrl_c.h"
|
||||||
|
|
||||||
static scoped_ctrl_c * g_obj = nullptr;
|
static scoped_ctrl_c * g_obj = nullptr;
|
||||||
|
|
|
@ -18,7 +18,7 @@ Notes:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ Revision History:
|
||||||
|
|
||||||
#include "util/debug.h"
|
#include "util/debug.h"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <iostream>
|
#include <ostream>
|
||||||
#include<iomanip>
|
#include<iomanip>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include<iostream>
|
#include<istream>
|
||||||
|
|
||||||
class stream_buffer {
|
class stream_buffer {
|
||||||
std::istream & m_stream;
|
std::istream & m_stream;
|
||||||
|
@ -40,5 +40,3 @@ public:
|
||||||
m_val = m_stream.get();
|
m_val = m_stream.get();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,11 +16,11 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include<iostream>
|
|
||||||
#include "util/timeit.h"
|
#include "util/timeit.h"
|
||||||
#include "util/memory_manager.h"
|
#include "util/memory_manager.h"
|
||||||
#include "util/stopwatch.h"
|
#include "util/stopwatch.h"
|
||||||
#include<iomanip>
|
#include<iomanip>
|
||||||
|
#include<iostream>
|
||||||
|
|
||||||
struct timeit::imp {
|
struct timeit::imp {
|
||||||
stopwatch m_watch;
|
stopwatch m_watch;
|
||||||
|
@ -45,9 +45,9 @@ struct timeit::imp {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
timeit::timeit(bool enable, char const * msg, std::ostream & out) {
|
timeit::timeit(bool enable, char const * msg, std::ostream * out) {
|
||||||
if (enable)
|
if (enable)
|
||||||
m_imp = alloc(imp, msg, out);
|
m_imp = alloc(imp, msg, out ? *out : std::cerr);
|
||||||
else
|
else
|
||||||
m_imp = nullptr;
|
m_imp = nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,11 +21,14 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include<ostream>
|
||||||
|
|
||||||
class timeit {
|
class timeit {
|
||||||
struct imp;
|
struct imp;
|
||||||
imp * m_imp;
|
imp * m_imp;
|
||||||
public:
|
public:
|
||||||
timeit(bool enable, char const * msg, std::ostream & out = std::cerr);
|
timeit(bool enable, char const * msg, std::ostream * out = nullptr);
|
||||||
|
timeit(bool enable, char const * msg, std::ostream & out) : timeit(enable, msg, &out) {}
|
||||||
~timeit();
|
~timeit();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include "util/util.h"
|
#include "util/util.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static unsigned g_verbosity_level = 0;
|
static unsigned g_verbosity_level = 0;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ Revision History:
|
||||||
|
|
||||||
#include "util/debug.h"
|
#include "util/debug.h"
|
||||||
#include "util/memory_manager.h"
|
#include "util/memory_manager.h"
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include<climits>
|
#include<climits>
|
||||||
#include<limits>
|
#include<limits>
|
||||||
#include<stdint.h>
|
#include<stdint.h>
|
||||||
|
|
|
@ -17,7 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include<iostream>
|
#include<ostream>
|
||||||
#include<stdarg.h>
|
#include<stdarg.h>
|
||||||
|
|
||||||
void send_warnings_to_stdout(bool flag);
|
void send_warnings_to_stdout(bool flag);
|
||||||
|
|
Loading…
Reference in a new issue