3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-25 12:35:59 +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

@ -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();