diff options
Diffstat (limited to 'src/theory/rewriter.cpp')
-rw-r--r-- | src/theory/rewriter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/theory/rewriter.cpp b/src/theory/rewriter.cpp index c247d8f08..a00e4dad4 100644 --- a/src/theory/rewriter.cpp +++ b/src/theory/rewriter.cpp @@ -191,7 +191,7 @@ Node Rewriter::rewriteTo(theory::TheoryId theoryId, TConvProofGenerator* tcpg) { RewriteWithProofsAttribute rpfa; -#ifdef CVC4_ASSERTIONS +#ifdef CVC5_ASSERTIONS bool isEquality = node.getKind() == kind::EQUAL && (!node[0].getType().isBoolean()); if (d_rewriteStack == nullptr) @@ -329,21 +329,21 @@ Node Rewriter::rewriteTo(theory::TheoryId theoryId, // In the post rewrite if we've changed theories, we must do a full rewrite Assert(response.d_node != rewriteStackTop.d_node); //TODO: this is not thread-safe - should make this assertion dependent on sequential build -#ifdef CVC4_ASSERTIONS +#ifdef CVC5_ASSERTIONS Assert(d_rewriteStack->find(response.d_node) == d_rewriteStack->end()); d_rewriteStack->insert(response.d_node); #endif Node rewritten = rewriteTo(newTheoryId, response.d_node, tcpg); rewriteStackTop.d_node = rewritten; -#ifdef CVC4_ASSERTIONS +#ifdef CVC5_ASSERTIONS d_rewriteStack->erase(response.d_node); #endif break; } else if (response.d_status == REWRITE_DONE) { -#ifdef CVC4_ASSERTIONS +#ifdef CVC5_ASSERTIONS RewriteResponse r2 = d_theoryRewriters[newTheoryId]->postRewrite(response.d_node); Assert(r2.d_node == response.d_node) @@ -504,7 +504,7 @@ RewriteResponse Rewriter::processTrustRewriteResponse( void Rewriter::clearCaches() { Rewriter* rewriter = getInstance(); -#ifdef CVC4_ASSERTIONS +#ifdef CVC5_ASSERTIONS rewriter->d_rewriteStack.reset(nullptr); #endif |