mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
log also quantifier generation (besides binding)
We add also logging for quantifier generation. It is auxiliary information that is of use for diagnostics (axiom profiler).
This commit is contained in:
parent
c1b355f342
commit
842e8057bc
7 changed files with 27 additions and 16 deletions
|
@ -306,11 +306,15 @@ namespace smt {
|
|||
}
|
||||
else if (m_context.on_clause_active()) {
|
||||
expr_ref_vector bindings_e(m), args(m);
|
||||
arith_util a(m);
|
||||
expr_ref gen(a.mk_int(generation), m);
|
||||
expr* gens[1] = { gen.get() };
|
||||
for (unsigned i = 0; i < num_bindings; ++i)
|
||||
bindings_e.push_back(bindings[i]->get_expr());
|
||||
args.push_back(m.mk_not(q));
|
||||
args.push_back(instance);
|
||||
args.push_back(m.mk_app(symbol("bind"), num_bindings, bindings_e.data(), m.mk_proof_sort()));
|
||||
args.push_back(m.mk_app(symbol("gen"), 1, gens, m.mk_proof_sort()));
|
||||
pr1 = m.mk_app(symbol("inst"), args.size(), args.data(), m.mk_proof_sort());
|
||||
m_instances.push_back(pr1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue