summaryrefslogtreecommitdiff
path: root/src/theory
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory')
-rw-r--r--src/theory/rewriter.cpp9
-rw-r--r--src/theory/rewriter.h6
2 files changed, 6 insertions, 9 deletions
diff --git a/src/theory/rewriter.cpp b/src/theory/rewriter.cpp
index eeb2f166d..de8750d89 100644
--- a/src/theory/rewriter.cpp
+++ b/src/theory/rewriter.cpp
@@ -504,14 +504,13 @@ RewriteResponse Rewriter::processTrustRewriteResponse(
return RewriteResponse(tresponse.d_status, trn.getNode());
}
-void Rewriter::clearCaches() {
- Rewriter* rewriter = getInstance();
-
+void Rewriter::clearCaches()
+{
#ifdef CVC5_ASSERTIONS
- rewriter->d_rewriteStack.reset(nullptr);
+ d_rewriteStack.reset(nullptr);
#endif
- rewriter->clearCachesInternal();
+ clearCachesInternal();
}
} // namespace theory
diff --git a/src/theory/rewriter.h b/src/theory/rewriter.h
index 3201bb2c8..09f0123bf 100644
--- a/src/theory/rewriter.h
+++ b/src/theory/rewriter.h
@@ -93,10 +93,8 @@ class Rewriter {
/** Set proof node manager */
void setProofNodeManager(ProofNodeManager* pnm);
- /**
- * Garbage collects the rewrite caches.
- */
- static void clearCaches();
+ /** Garbage collects the rewrite caches. */
+ void clearCaches();
/**
* Registers a theory rewriter with this rewriter. The rewriter does not own
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback