Node eq = registerRewriteStep(t, s, tctx);
if (!eq.isNull())
{
- AlwaysAssert(ps.d_rule != PfRule::ASSUME);
d_proof.addStep(eq, ps);
}
}
Node eq = registerRewriteStep(t, s, tctx);
if (!eq.isNull())
{
- AlwaysAssert(id != PfRule::ASSUME);
d_proof.addStep(eq, id, children, args);
}
}
Node conc = getProofForRewriting(f[0], lpf, d_tcontext);
if (conc != f)
{
+ bool debugTraceEnabled = Trace.isOn("tconv-pf-gen-debug");
Assert(conc.getKind() == EQUAL && conc[0] == f[0]);
std::stringstream serr;
serr << "TConvProofGenerator::getProofFor: " << toStringDebug()
- << ": failed, mismatch (see -t tconv-pf-gen-debug for details)"
- << std::endl;
+ << ": failed, mismatch";
+ if (!debugTraceEnabled)
+ {
+ serr << " (see -t tconv-pf-gen-debug for details)";
+ }
+ serr << std::endl;
serr << " source: " << f[0] << std::endl;
serr << "expected after rewriting: " << f[1] << std::endl;
serr << " actual after rewriting: " << conc[1] << std::endl;
- if (Trace.isOn("tconv-pf-gen-debug"))
+ if (debugTraceEnabled)
{
Trace("tconv-pf-gen-debug") << "Printing rewrite steps..." << std::endl;
serr << "Rewrite steps: " << std::endl;