3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

reduce output

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-12-17 17:05:48 -08:00
parent bd96eaff47
commit 360d6f963e
3 changed files with 9 additions and 12 deletions

View file

@ -88,7 +88,7 @@ static void tst2() {
int_heap2 h(N);
for (int i = 0; i < N * 10; i++) {
if (i % 1 == 0) std::cout << "i: " << i << std::endl;
// if (i % 1 == 0) std::cout << "i: " << i << std::endl;
if (i % 1000 == 0) std::cout << "i: " << i << std::endl;
int cmd = heap_rand() % 10;
if (cmd <= 3) {

View file

@ -11,7 +11,7 @@ Copyright (c) 2015 Microsoft Corporation
#include "smt/theory_pb.h"
#include "ast/rewriter/th_rewriter.h"
unsigned populate_literals(unsigned k, smt::literal_vector& lits) {
static unsigned populate_literals(unsigned k, smt::literal_vector& lits) {
ENSURE(k < (1u << lits.size()));
unsigned t = 0;
for (unsigned i = 0; i < lits.size(); ++i) {
@ -84,6 +84,7 @@ private:
}
std::cout << "(assert " << fml << ")\n";
ctx.assert_expr(fml);
std::cout << ";asserted\n";
}
@ -138,11 +139,8 @@ void tst_theory_pb() {
unsigned k = populate_literals(i, lits);
std::cout << "k:" << k << " " << N << "\n";
std::cout.flush();
TRACE("pb", tout << "k " << k << ": ";
for (unsigned j = 0; j < lits.size(); ++j) {
tout << lits[j] << " ";
}
tout << "\n";);
TRACE("pb", tout << "k " << k << ": " << lits << "\n";);
{
smt::context ctx(m, params);
ctx.push();