d_passes["bv-intro-pow2"]->apply(&d_assertions);
}
- if (options::unsatCores())
- {
- // special rewriting pass for unsat cores, since many of the passes below
- // are skipped
- d_passes["rewrite"]->apply(&d_assertions);
- }
- else
+ // Since this pass is not robust for the information tracking necessary for
+ // unsat cores, it's only applied if we are not doing unsat core computation
+ if (!options::unsatCores())
{
d_passes["apply-substs"]->apply(&d_assertions);
}
- // Assertions ARE guaranteed to be rewritten by this point
-#ifdef CVC4_ASSERTIONS
- for (unsigned i = 0; i < d_assertions.size(); ++i)
- {
- Assert(Rewriter::rewrite(d_assertions[i]) == d_assertions[i]);
- }
-#endif
+ // Assertions MUST BE guaranteed to be rewritten by this point
+ d_passes["rewrite"]->apply(&d_assertions);
// Lift bit-vectors of size 1 to bool
if (options::bitvectorToBool())