3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 00:18:45 +00:00

add consequence finding to inc-sat-solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-10-16 15:43:28 -04:00
parent d8ea3023fc
commit aec59e4ff7
10 changed files with 283 additions and 41 deletions

View file

@ -277,6 +277,22 @@ br_status pb_rewriter::mk_app_core(func_decl * f, unsigned num_args, expr * cons
tout << tmp << "\n";
tout << result << "\n";
);
#if 0
static unsigned num_changes = 0;
static unsigned num_calls = 0;
static unsigned inc = 1;
{
expr_ref tmp(m);
tmp = m.mk_app(f, num_args, args);
num_calls++;
if (tmp != result) ++num_changes;
if (num_calls > inc) {
std::cout << num_calls << " " << num_changes << "\n";
inc *= 2;
}
}
#endif
TRACE("pb_validate",
validate_rewrite(f, num_args, args, result););