mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Debug code
This commit is contained in:
parent
8e57ab5d97
commit
e906930922
|
@ -322,6 +322,24 @@ void iuc_solver::get_iuc(expr_ref_vector &core)
|
||||||
// -- new hypothesis reducer
|
// -- new hypothesis reducer
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
|
static unsigned bcnt = 0;
|
||||||
|
{
|
||||||
|
bcnt++;
|
||||||
|
TRACE("spacer", tout << "Dumping pf bcnt: " << bcnt << "\n";);
|
||||||
|
if (bcnt == 123) {
|
||||||
|
std::ofstream ofs;
|
||||||
|
ofs.open("/tmp/bpf_" + std::to_string(bcnt) + ".dot");
|
||||||
|
iuc_proof iuc_pf_before(m, res.get(), core_lits);
|
||||||
|
iuc_pf_before.display_dot(ofs);
|
||||||
|
ofs.close();
|
||||||
|
|
||||||
|
proof_checker pc(m);
|
||||||
|
expr_ref_vector side(m);
|
||||||
|
ENSURE(pc.check(res, side));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
scoped_watch _t_ (m_hyp_reduce2_sw);
|
scoped_watch _t_ (m_hyp_reduce2_sw);
|
||||||
|
|
||||||
// pre-process proof for better iuc extraction
|
// pre-process proof for better iuc extraction
|
||||||
|
@ -356,6 +374,22 @@ void iuc_solver::get_iuc(expr_ref_vector &core)
|
||||||
|
|
||||||
iuc_proof iuc_pf(m, res, core_lits);
|
iuc_proof iuc_pf(m, res, core_lits);
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
static unsigned cnt = 0;
|
||||||
|
{
|
||||||
|
cnt++;
|
||||||
|
TRACE("spacer", tout << "Dumping pf cnt: " << cnt << "\n";);
|
||||||
|
if (cnt == 123) {
|
||||||
|
std::ofstream ofs;
|
||||||
|
ofs.open("/tmp/pf_" + std::to_string(cnt) + ".dot");
|
||||||
|
iuc_pf.display_dot(ofs);
|
||||||
|
ofs.close();
|
||||||
|
proof_checker pc(m);
|
||||||
|
expr_ref_vector side(m);
|
||||||
|
ENSURE(pc.check(res, side));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
unsat_core_learner learner(m, iuc_pf);
|
unsat_core_learner learner(m, iuc_pf);
|
||||||
|
|
||||||
unsat_core_plugin* plugin;
|
unsat_core_plugin* plugin;
|
||||||
|
|
Loading…
Reference in a new issue