3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-06 06:03:23 +00:00

Moved farkas stats printing to before and after the hyp-reduction

This commit is contained in:
Bernhard Gleiss 2017-12-01 15:23:07 +01:00 committed by Arie Gurfinkel
parent de31b07008
commit 0f25e9e831
2 changed files with 22 additions and 16 deletions

View file

@ -281,7 +281,23 @@ void itp_solver::get_itp_core (expr_ref_vector &core)
// preprocess proof in order to get a proof which is better suited for unsat-core-extraction
proof_ref pr(get_proof(), m);
if (m_print_farkas_stats)
{
iuc_proof iuc_before(m, pr.get(), B);
verbose_stream() << "Stats before transformation:";
iuc_before.print_farkas_stats();
}
spacer::reduce_hypotheses(pr);
spacer::reduce_hypotheses(pr);
if (m_print_farkas_stats)
{
iuc_proof iuc_after(m, pr.get(), B);
verbose_stream() << "Stats after transformation:";
iuc_after.print_farkas_stats();
}
STRACE("spacer.unsat_core_learner",
verbose_stream() << "Reduced proof:\n" << mk_ismt2_pp(pr, m) << "\n";
);

View file

@ -75,16 +75,6 @@ void unsat_core_learner::compute_unsat_core(expr_ref_vector& unsat_core)
// TODO: remove duplicates from unsat core?
// count both number of all Farkas lemmas and number of Farkas lemmas in the cut
if (m_print_farkas_stats)
{
m_pr.print_farkas_stats();
}
//TODO remove this
if(m_iuc_debug_proof)
{
}
verbose_stream() << std::endl;
// move all lemmas into vector
for (expr* const* it = m_unsat_core.begin(); it != m_unsat_core.end(); ++it)