mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 00:48:45 +00:00
fix build of tests
This commit is contained in:
parent
fcbbf7ba76
commit
c3407fc304
67 changed files with 67 additions and 6 deletions
|
@ -20,6 +20,7 @@ Notes:
|
||||||
#include "math/polynomial/polynomial_var2value.h"
|
#include "math/polynomial/polynomial_var2value.h"
|
||||||
#include "util/mpbq.h"
|
#include "util/mpbq.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void display_anums(std::ostream & out, scoped_anum_vector const & rs) {
|
static void display_anums(std::ostream & out, scoped_anum_vector const & rs) {
|
||||||
out << "numbers in decimal:\n";
|
out << "numbers in decimal:\n";
|
||||||
|
|
|
@ -10,7 +10,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/rewriter/th_rewriter.h"
|
#include "ast/rewriter/th_rewriter.h"
|
||||||
#include "model/model.h"
|
#include "model/model.h"
|
||||||
#include "parsers/smt2/smt2parser.h"
|
#include "parsers/smt2/smt2parser.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static expr_ref parse_fml(ast_manager& m, char const* str) {
|
static expr_ref parse_fml(ast_manager& m, char const* str) {
|
||||||
expr_ref result(m);
|
expr_ref result(m);
|
||||||
|
|
|
@ -6,6 +6,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
|
|
||||||
#include "smt/arith_eq_solver.h"
|
#include "smt/arith_eq_solver.h"
|
||||||
#include "smt/params/smt_params.h"
|
#include "smt/params/smt_params.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
typedef rational numeral;
|
typedef rational numeral;
|
||||||
typedef vector<numeral> row;
|
typedef vector<numeral> row;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include "math/dd/dd_bdd.h"
|
#include "math/dd/dd_bdd.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
namespace dd {
|
namespace dd {
|
||||||
static void test1() {
|
static void test1() {
|
||||||
|
|
|
@ -10,6 +10,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
#include "util/mpz.h"
|
#include "util/mpz.h"
|
||||||
#include "util/bit_util.h"
|
#include "util/bit_util.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst_shl(unsigned src_sz, unsigned const * src, unsigned k,
|
static void tst_shl(unsigned src_sz, unsigned const * src, unsigned k,
|
||||||
unsigned dst_sz, unsigned const * dst, bool trace = true) {
|
unsigned dst_sz, unsigned const * dst, bool trace = true) {
|
||||||
|
|
|
@ -20,6 +20,7 @@ Revision History:
|
||||||
#include "util/hashtable.h"
|
#include "util/hashtable.h"
|
||||||
#include "util/hash.h"
|
#include "util/hash.h"
|
||||||
#include "util/util.h"
|
#include "util/util.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
typedef chashtable<int, int_hash, default_eq<int> > int_table;
|
typedef chashtable<int, int_hash, default_eq<int> > int_table;
|
||||||
typedef cmap<int, int, int_hash, default_eq<int> > int_map;
|
typedef cmap<int, int, int_hash, default_eq<int> > int_map;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "solver/solver_pool.h"
|
#include "solver/solver_pool.h"
|
||||||
#include "smt/smt_solver.h"
|
#include "smt/smt_solver.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_cube_clause() {
|
void tst_cube_clause() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -11,6 +11,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "muz/fp/dl_register_engine.h"
|
#include "muz/fp/dl_register_engine.h"
|
||||||
#include "smt/params/smt_params.h"
|
#include "smt/params/smt_params.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace datalog;
|
using namespace datalog;
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "util/stopwatch.h"
|
#include "util/stopwatch.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "muz/rel/dl_relation_manager.h"
|
#include "muz/rel/dl_relation_manager.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace datalog;
|
using namespace datalog;
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "muz/rel/dl_table.h"
|
#include "muz/rel/dl_table.h"
|
||||||
#include "muz/fp/dl_register_engine.h"
|
#include "muz/fp/dl_register_engine.h"
|
||||||
#include "muz/rel/dl_relation_manager.h"
|
#include "muz/rel/dl_relation_manager.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
typedef datalog::table_base* (*mk_table_fn)(datalog::relation_manager& m, datalog::table_signature& sig);
|
typedef datalog::table_base* (*mk_table_fn)(datalog::relation_manager& m, datalog::table_signature& sig);
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/ast_util.h"
|
#include "ast/ast_util.h"
|
||||||
#include "ast/rewriter/expr_safe_replace.h"
|
#include "ast/rewriter/expr_safe_replace.h"
|
||||||
#include "ast/rewriter/th_rewriter.h"
|
#include "ast/rewriter/th_rewriter.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst_doc1(unsigned n) {
|
static void tst_doc1(unsigned n) {
|
||||||
doc_manager m(n);
|
doc_manager m(n);
|
||||||
|
|
|
@ -9,6 +9,7 @@ Copyright (c) 2020 Microsoft Corporation
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static expr_ref mk_const(ast_manager& m, char const* name, sort* s) {
|
static expr_ref mk_const(ast_manager& m, char const* name, sort* s) {
|
||||||
return expr_ref(m.mk_const(symbol(name), s), m);
|
return expr_ref(m.mk_const(symbol(name), s), m);
|
||||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include "util/util.h"
|
#include "util/util.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_escaped() {
|
void tst_escaped() {
|
||||||
std::cout << "[" << escaped("\"hello\"\"world\"\n\n") << "]\n";
|
std::cout << "[" << escaped("\"hello\"\"world\"\n\n") << "]\n";
|
||||||
|
|
|
@ -13,6 +13,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "ast/rewriter/th_rewriter.h"
|
#include "ast/rewriter/th_rewriter.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
expr* mk_bv_xor(bv_util& bv, expr* a, expr* b) {
|
expr* mk_bv_xor(bv_util& bv, expr* a, expr* b) {
|
||||||
expr* args[2];
|
expr* args[2];
|
||||||
|
|
|
@ -18,6 +18,7 @@ Revision History:
|
||||||
#include "util/f2n.h"
|
#include "util/f2n.h"
|
||||||
#include "util/hwf.h"
|
#include "util/hwf.h"
|
||||||
#include "util/mpf.h"
|
#include "util/mpf.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
hwf_manager hm;
|
hwf_manager hm;
|
||||||
|
|
|
@ -8,6 +8,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/bv_decl_plugin.h"
|
#include "ast/bv_decl_plugin.h"
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_factor_rewriter() {
|
void tst_factor_rewriter() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -12,6 +12,7 @@ Copyright (c) 2016 Microsoft Corporation
|
||||||
#include "tactic/tactic.h"
|
#include "tactic/tactic.h"
|
||||||
#include "model/model_smt2_pp.h"
|
#include "model/model_smt2_pp.h"
|
||||||
#include "tactic/fd_solver/fd_solver.h"
|
#include "tactic/fd_solver/fd_solver.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static expr_ref mk_const(ast_manager& m, char const* name, sort* s) {
|
static expr_ref mk_const(ast_manager& m, char const* name, sort* s) {
|
||||||
return expr_ref(m.mk_const(symbol(name), s), m);
|
return expr_ref(m.mk_const(symbol(name), s), m);
|
||||||
|
|
|
@ -5,6 +5,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include "math/hilbert/heap_trie.h"
|
#include "math/hilbert/heap_trie.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
struct unsigned_le {
|
struct unsigned_le {
|
||||||
static bool le(unsigned i, unsigned j) { return i <= j; }
|
static bool le(unsigned i, unsigned j) { return i <= j; }
|
||||||
|
|
|
@ -15,6 +15,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
static bool g_use_ordered_support = false;
|
static bool g_use_ordered_support = false;
|
||||||
|
|
|
@ -9,6 +9,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
#include "model/model_smt2_pp.h"
|
#include "model/model_smt2_pp.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_horn_subsume_model_converter() {
|
void tst_horn_subsume_model_converter() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -19,6 +19,7 @@ Revision History:
|
||||||
#include "util/hwf.h"
|
#include "util/hwf.h"
|
||||||
#include "util/f2n.h"
|
#include "util/f2n.h"
|
||||||
#include "util/rational.h"
|
#include "util/rational.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void bug_set_double() {
|
static void bug_set_double() {
|
||||||
hwf_manager m;
|
hwf_manager m;
|
||||||
|
|
|
@ -23,6 +23,7 @@ Revision History:
|
||||||
#include "ast/ast.h"
|
#include "ast/ast.h"
|
||||||
#include "util/debug.h"
|
#include "util/debug.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
template class interval_manager<im_default_config>;
|
template class interval_manager<im_default_config>;
|
||||||
typedef im_default_config::interval interval;
|
typedef im_default_config::interval interval;
|
||||||
|
|
|
@ -5,6 +5,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
--*/
|
--*/
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
#include "math/hilbert/hilbert_basis.h"
|
#include "math/hilbert/hilbert_basis.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Test generation of linear congruences a la Karr.
|
Test generation of linear congruences a la Karr.
|
||||||
|
|
|
@ -9,6 +9,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
#include "model/model_smt2_pp.h"
|
#include "model/model_smt2_pp.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_model2expr() {
|
void tst_model2expr() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "math/simplex/model_based_opt.h"
|
#include "math/simplex/model_based_opt.h"
|
||||||
#include "util/util.h"
|
#include "util/util.h"
|
||||||
#include "util/uint_set.h"
|
#include "util/uint_set.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
typedef opt::model_based_opt::var var;
|
typedef opt::model_based_opt::var var;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_model_evaluator() {
|
void tst_model_evaluator() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -13,6 +13,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/array_decl_plugin.h"
|
#include "ast/array_decl_plugin.h"
|
||||||
#include "model/model_v2_pp.h"
|
#include "model/model_v2_pp.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_model_retrieval()
|
void tst_model_retrieval()
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include "util/mpbq.h"
|
#include "util/mpbq.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
unsynch_mpz_manager zm;
|
unsynch_mpz_manager zm;
|
||||||
|
|
|
@ -18,6 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <iostream>
|
||||||
#include "util/mpff.h"
|
#include "util/mpff.h"
|
||||||
#include "util/mpz.h"
|
#include "util/mpz.h"
|
||||||
#include "util/mpq.h"
|
#include "util/mpq.h"
|
||||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include "util/mpfx.h"
|
#include "util/mpfx.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
mpfx_manager m;
|
mpfx_manager m;
|
||||||
|
|
|
@ -20,6 +20,7 @@ Revision History:
|
||||||
#include "util/mpq.h"
|
#include "util/mpq.h"
|
||||||
#include "util/rational.h"
|
#include "util/rational.h"
|
||||||
#include "util/timeit.h"
|
#include "util/timeit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst0() {
|
static void tst0() {
|
||||||
synch_mpq_manager m;
|
synch_mpq_manager m;
|
||||||
|
|
|
@ -21,6 +21,7 @@ Revision History:
|
||||||
#include "util/rational.h"
|
#include "util/rational.h"
|
||||||
#include "util/timeit.h"
|
#include "util/timeit.h"
|
||||||
#include "util/scoped_numeral.h"
|
#include "util/scoped_numeral.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
synch_mpz_manager m;
|
synch_mpz_manager m;
|
||||||
|
|
|
@ -8,6 +8,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_nlarith_util() {
|
void tst_nlarith_util() {
|
||||||
ast_manager M;
|
ast_manager M;
|
||||||
|
|
|
@ -24,6 +24,7 @@ Notes:
|
||||||
#include "nlsat/nlsat_explain.h"
|
#include "nlsat/nlsat_explain.h"
|
||||||
#include "math/polynomial/polynomial_cache.h"
|
#include "math/polynomial/polynomial_cache.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
nlsat::interval_set_ref tst_interval(nlsat::interval_set_ref const & s1,
|
nlsat::interval_set_ref tst_interval(nlsat::interval_set_ref const & s1,
|
||||||
nlsat::interval_set_ref const & s2,
|
nlsat::interval_set_ref const & s2,
|
||||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include "smt/old_interval.h"
|
#include "smt/old_interval.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
ext_numeral inf(true);
|
ext_numeral inf(true);
|
||||||
|
|
|
@ -19,6 +19,7 @@ Revision History:
|
||||||
#include "util/parray.h"
|
#include "util/parray.h"
|
||||||
#include "util/small_object_allocator.h"
|
#include "util/small_object_allocator.h"
|
||||||
#include "ast/ast.h"
|
#include "ast/ast.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
template<bool PRESERVE_ROOTS>
|
template<bool PRESERVE_ROOTS>
|
||||||
struct int_parray_config {
|
struct int_parray_config {
|
||||||
|
|
|
@ -19,6 +19,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "tactic/fd_solver/fd_solver.h"
|
#include "tactic/fd_solver/fd_solver.h"
|
||||||
#include "solver/solver.h"
|
#include "solver/solver.h"
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void test1() {
|
static void test1() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include "math/dd/dd_pdd.h"
|
#include "math/dd/dd_pdd.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
namespace dd {
|
namespace dd {
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include "tactic/goal.h"
|
#include "tactic/goal.h"
|
||||||
#include "tactic/tactic.h"
|
#include "tactic/tactic.h"
|
||||||
#include "tactic/bv/bit_blaster_tactic.h"
|
#include "tactic/bv/bit_blaster_tactic.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
namespace dd {
|
namespace dd {
|
||||||
void print_eqs(ptr_vector<solver::equation> const& eqs) {
|
void print_eqs(ptr_vector<solver::equation> const& eqs) {
|
||||||
|
|
|
@ -22,6 +22,7 @@ Notes:
|
||||||
#include "math/polynomial/polynomial_cache.h"
|
#include "math/polynomial/polynomial_cache.h"
|
||||||
#include "math/polynomial/linear_eq_solver.h"
|
#include "math/polynomial/linear_eq_solver.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
std::cout << "\n----- Basic testing -------\n";
|
std::cout << "\n----- Basic testing -------\n";
|
||||||
|
|
|
@ -10,7 +10,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "ast/rewriter/arith_rewriter.h"
|
#include "ast/rewriter/arith_rewriter.h"
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static expr_ref parse_fml(ast_manager& m, char const* str) {
|
static expr_ref parse_fml(ast_manager& m, char const* str) {
|
||||||
expr_ref result(m);
|
expr_ref result(m);
|
||||||
|
|
|
@ -18,6 +18,7 @@ Notes:
|
||||||
--*/
|
--*/
|
||||||
#include "util/mpz.h"
|
#include "util/mpz.h"
|
||||||
#include "util/prime_generator.h"
|
#include "util/prime_generator.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_prime_generator() {
|
void tst_prime_generator() {
|
||||||
unsynch_mpz_manager m;
|
unsynch_mpz_manager m;
|
||||||
|
|
|
@ -6,6 +6,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
|
|
||||||
#include "ast/proofs/proof_checker.h"
|
#include "ast/proofs/proof_checker.h"
|
||||||
#include "ast/ast_ll_pp.h"
|
#include "ast/ast_ll_pp.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_checker1() {
|
void tst_checker1() {
|
||||||
ast_manager m(PGM_ENABLED);
|
ast_manager m(PGM_ENABLED);
|
||||||
|
|
|
@ -15,6 +15,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "smt/smt_context.h"
|
#include "smt/smt_context.h"
|
||||||
#include "ast/expr_abstract.h"
|
#include "ast/expr_abstract.h"
|
||||||
#include "ast/rewriter/expr_safe_replace.h"
|
#include "ast/rewriter/expr_safe_replace.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static expr_ref parse_fml(ast_manager& m, char const* str) {
|
static expr_ref parse_fml(ast_manager& m, char const* str) {
|
||||||
expr_ref result(m);
|
expr_ref result(m);
|
||||||
|
|
|
@ -18,6 +18,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "model/model_smt2_pp.h"
|
#include "model/model_smt2_pp.h"
|
||||||
#include "parsers/smt2/smt2parser.h"
|
#include "parsers/smt2/smt2parser.h"
|
||||||
#include "ast/rewriter/var_subst.h"
|
#include "ast/rewriter/var_subst.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void validate_quant_solution(ast_manager& m, expr* fml, expr* guard, qe::def_vector const& defs) {
|
static void validate_quant_solution(ast_manager& m, expr* fml, expr* guard, qe::def_vector const& defs) {
|
||||||
// verify:
|
// verify:
|
||||||
|
|
|
@ -19,6 +19,7 @@ Notes:
|
||||||
#include "math/realclosure/realclosure.h"
|
#include "math/realclosure/realclosure.h"
|
||||||
#include "math/realclosure/mpz_matrix.h"
|
#include "math/realclosure/mpz_matrix.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
unsynch_mpq_manager qm;
|
unsynch_mpq_manager qm;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "util/cancel_eh.h"
|
#include "util/cancel_eh.h"
|
||||||
#include "util/scoped_ctrl_c.h"
|
#include "util/scoped_ctrl_c.h"
|
||||||
#include "util/scoped_timer.h"
|
#include "util/scoped_timer.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static bool build_instance(char const * filename, sat::solver& s, sat::local_search& local_search)
|
static bool build_instance(char const * filename, sat::solver& s, sat::local_search& local_search)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "util/statistics.h"
|
#include "util/statistics.h"
|
||||||
#include "sat/sat_lookahead.h"
|
#include "sat/sat_lookahead.h"
|
||||||
#include "sat/dimacs.h"
|
#include "sat/dimacs.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void display_model(sat::model const & m) {
|
static void display_model(sat::model const & m) {
|
||||||
for (unsigned i = 1; i < m.size(); i++) {
|
for (unsigned i = 1; i < m.size(); i++) {
|
||||||
|
|
|
@ -6,6 +6,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
|
|
||||||
#include "sat/sat_solver.h"
|
#include "sat/sat_solver.h"
|
||||||
#include "util/util.h"
|
#include "util/util.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
typedef sat::literal_vector clause_t;
|
typedef sat::literal_vector clause_t;
|
||||||
typedef vector<clause_t> clauses_t;
|
typedef vector<clause_t> clauses_t;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include "util/trace.h"
|
#include "util/trace.h"
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
class test_scoped_eh : public event_handler {
|
class test_scoped_eh : public event_handler {
|
||||||
std::atomic<bool> m_called = false;
|
std::atomic<bool> m_called = false;
|
||||||
|
|
|
@ -11,6 +11,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
#include "util/rational.h"
|
#include "util/rational.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#define R rational
|
#define R rational
|
||||||
typedef simplex::simplex<simplex::mpz_ext> Simplex;
|
typedef simplex::simplex<simplex::mpz_ext> Simplex;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "solver/solver_pool.h"
|
#include "solver/solver_pool.h"
|
||||||
#include "smt/smt_solver.h"
|
#include "smt/smt_solver.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_solver_pool() {
|
void tst_solver_pool() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -14,6 +14,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "model/model_smt2_pp.h"
|
#include "model/model_smt2_pp.h"
|
||||||
#include "smt/smt_kernel.h"
|
#include "smt/smt_kernel.h"
|
||||||
#include "smt/params/smt_params.h"
|
#include "smt/params/smt_params.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
struct ast_ext {
|
struct ast_ext {
|
||||||
ast_manager& m;
|
ast_manager& m;
|
||||||
|
|
|
@ -12,6 +12,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
#include "ast/arith_decl_plugin.h"
|
#include "ast/arith_decl_plugin.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_substitution()
|
void tst_substitution()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,6 +5,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include "muz/rel/tbv.h"
|
#include "muz/rel/tbv.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1(unsigned num_bits) {
|
static void tst1(unsigned num_bits) {
|
||||||
tbv_manager m(num_bits);
|
tbv_manager m(num_bits);
|
||||||
|
|
|
@ -10,6 +10,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "smt/smt_context.h"
|
#include "smt/smt_context.h"
|
||||||
#include "model/model_v2_pp.h"
|
#include "model/model_v2_pp.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_theory_dl() {
|
void tst_theory_dl() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -10,6 +10,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
#include "smt/theory_pb.h"
|
#include "smt/theory_pb.h"
|
||||||
#include "ast/rewriter/th_rewriter.h"
|
#include "ast/rewriter/th_rewriter.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static unsigned populate_literals(unsigned k, smt::literal_vector& lits) {
|
static unsigned populate_literals(unsigned k, smt::literal_vector& lits) {
|
||||||
ENSURE(k < (1u << lits.size()));
|
ENSURE(k < (1u << lits.size()));
|
||||||
|
|
|
@ -19,6 +19,7 @@ Revision History:
|
||||||
|
|
||||||
#include "util/total_order.h"
|
#include "util/total_order.h"
|
||||||
#include "util/timeit.h"
|
#include "util/timeit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
uint_total_order to;
|
uint_total_order to;
|
||||||
|
|
|
@ -24,6 +24,7 @@ Revision History:
|
||||||
#include "util/debug.h"
|
#include "util/debug.h"
|
||||||
#include "test/im_float_config.h"
|
#include "test/im_float_config.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#define PREC 100000
|
#define PREC 100000
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ Copyright (c) 2015 Microsoft Corporation
|
||||||
#include "muz/rel/rel_context.h"
|
#include "muz/rel/rel_context.h"
|
||||||
#include "ast/bv_decl_plugin.h"
|
#include "ast/bv_decl_plugin.h"
|
||||||
#include "muz/rel/check_relation.h"
|
#include "muz/rel/check_relation.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
class udoc_tester {
|
class udoc_tester {
|
||||||
typedef datalog::relation_base relation_base;
|
typedef datalog::relation_base relation_base;
|
||||||
|
|
|
@ -19,6 +19,7 @@ Revision History:
|
||||||
|
|
||||||
#include "util/uint_set.h"
|
#include "util/uint_set.h"
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1(unsigned n) {
|
static void tst1(unsigned n) {
|
||||||
uint_set s1;
|
uint_set s1;
|
||||||
|
|
|
@ -19,6 +19,7 @@ Notes:
|
||||||
#include "math/polynomial/upolynomial.h"
|
#include "math/polynomial/upolynomial.h"
|
||||||
#include "util/timeit.h"
|
#include "util/timeit.h"
|
||||||
#include "util/rlimit.h"
|
#include "util/rlimit.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
reslimit rl;
|
reslimit rl;
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include "ast/datatype_decl_plugin.h"
|
#include "ast/datatype_decl_plugin.h"
|
||||||
#include "ast/seq_decl_plugin.h"
|
#include "ast/seq_decl_plugin.h"
|
||||||
#include "ast/array_decl_plugin.h"
|
#include "ast/array_decl_plugin.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void list(unsigned bound, ast_manager& m, sort* s) {
|
static void list(unsigned bound, ast_manager& m, sort* s) {
|
||||||
value_generator gen(m);
|
value_generator gen(m);
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
#include "ast/seq_decl_plugin.h"
|
#include "ast/seq_decl_plugin.h"
|
||||||
#include "ast/array_decl_plugin.h"
|
#include "ast/array_decl_plugin.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
void tst_value_sweep() {
|
void tst_value_sweep() {
|
||||||
ast_manager m;
|
ast_manager m;
|
||||||
|
|
|
@ -23,6 +23,7 @@ Revision History:
|
||||||
#include "ast/array_decl_plugin.h"
|
#include "ast/array_decl_plugin.h"
|
||||||
#include "ast/for_each_expr.h"
|
#include "ast/for_each_expr.h"
|
||||||
#include "ast/reg_decl_plugins.h"
|
#include "ast/reg_decl_plugins.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
namespace find_q {
|
namespace find_q {
|
||||||
struct proc {
|
struct proc {
|
||||||
|
|
|
@ -17,6 +17,7 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#include "util/vector.h"
|
#include "util/vector.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
static void tst1() {
|
static void tst1() {
|
||||||
svector<int> v1;
|
svector<int> v1;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "util/debug.h"
|
#include "util/debug.h"
|
||||||
#include "util/trace.h"
|
#include "util/trace.h"
|
||||||
#include "util/zstring.h"
|
#include "util/zstring.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
// Encode and check for roundtrip all printable ASCII characters.
|
// Encode and check for roundtrip all printable ASCII characters.
|
||||||
static void tst_ascii_roundtrip() {
|
static void tst_ascii_roundtrip() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue