Adds a streaming operator for RewriteStatus. I found it helpful while refactoring / debugging the rewriter.
namespace cvc5 {
namespace theory {
+std::ostream& operator<<(std::ostream& os, RewriteStatus rs)
+{
+ switch (rs)
+ {
+ case RewriteStatus::REWRITE_DONE: return os << "DONE";
+ case RewriteStatus::REWRITE_AGAIN: return os << "AGAIN";
+ case RewriteStatus::REWRITE_AGAIN_FULL: return os << "AGAIN_FULL";
+ }
+ Unreachable();
+ return os;
+}
+
TrustRewriteResponse::TrustRewriteResponse(RewriteStatus status,
Node n,
Node nr,
REWRITE_AGAIN_FULL
}; /* enum RewriteStatus */
+/** Print a RewriteStatus to an output stream */
+std::ostream& operator<<(std::ostream& os, RewriteStatus rs);
+
/**
* Instances of this class serve as response codes from
* TheoryRewriter::preRewrite() and TheoryRewriter::postRewrite(). The response