std::ostream DumpOutC::dump_cout(cout.rdbuf());// copy cout stream buffer
DumpOutC DumpOutChannel CVC4_PUBLIC (&DumpOutC::dump_cout);
-#ifndef CVC4_MUZZLE
-
-# if defined(CVC4_DEBUG) && defined(CVC4_TRACING)
-
-int DebugC::printf(const char* tag, const char* fmt, ...) {
- if(d_tags.find(string(tag)) == d_tags.end()) {
- return 0;
- }
-
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-int DebugC::printf(std::string tag, const char* fmt, ...) {
- if(d_tags.find(tag) == d_tags.end()) {
- return 0;
- }
-
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-# endif /* CVC4_DEBUG && CVC4_TRACING */
-
-int WarningC::printf(const char* fmt, ...) {
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-int MessageC::printf(const char* fmt, ...) {
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-int NoticeC::printf(const char* fmt, ...) {
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-int ChatC::printf(const char* fmt, ...) {
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-# ifdef CVC4_TRACING
-
-int TraceC::printf(const char* tag, const char* fmt, ...) {
- if(d_tags.find(string(tag)) == d_tags.end()) {
- return 0;
- }
-
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-int TraceC::printf(std::string tag, const char* fmt, ...) {
- if(d_tags.find(tag) == d_tags.end()) {
- return 0;
- }
-
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-# endif /* CVC4_TRACING */
-
-# ifdef CVC4_DUMPING
-
-int DumpOutC::printf(const char* tag, const char* fmt, ...) {
- if(d_tags.find(string(tag)) == d_tags.end()) {
- return 0;
- }
-
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-int DumpOutC::printf(std::string tag, const char* fmt, ...) {
- if(d_tags.find(tag) == d_tags.end()) {
- return 0;
- }
-
- // chop off output after 1024 bytes
- char buf[1024];
- va_list vl;
- va_start(vl, fmt);
- int retval = vsnprintf(buf, sizeof(buf), fmt, vl);
- va_end(vl);
- *d_os << buf;
- return retval;
-}
-
-# endif /* CVC4_DUMPING */
-
-#endif /* ! CVC4_MUZZLE */
-
}/* CVC4 namespace */
return *this;
}
- bool isConnected() { return d_os != NULL; }
- operator std::ostream&() { return isConnected() ? *d_os : null_os; }
+ bool isConnected() const { return d_os != NULL; }
+ operator std::ostream&() const { return isConnected() ? *d_os : null_os; }
- std::ostream* getStreamPointer() { return d_os; }
+ std::ostream* getStreamPointer() const { return d_os; }
template <class T>
CVC4ostream& operator<<(T const& t) CVC4_PUBLIC;
*/
class CVC4_PUBLIC NullC {
public:
- operator bool() { return false; }
- operator CVC4ostream() { return CVC4ostream(); }
- operator std::ostream&() { return null_os; }
+ operator bool() const { return false; }
+ operator CVC4ostream() const { return CVC4ostream(); }
+ operator std::ostream&() const { return null_os; }
};/* class NullC */
extern NullC nullCvc4Stream CVC4_PUBLIC;
public:
explicit DebugC(std::ostream* os) : d_os(os) {}
- int printf(const char* tag, const char* fmt, ...) __attribute__ ((format(printf, 3, 4)));
- int printf(std::string tag, const char* fmt, ...) __attribute__ ((format(printf, 3, 4)));
-
- CVC4ostream operator()(const char* tag) {
- if(!d_tags.empty() && d_tags.find(std::string(tag)) != d_tags.end()) {
- return CVC4ostream(d_os);
- } else {
- return CVC4ostream();
- }
- }
- CVC4ostream operator()(std::string tag) {
+ CVC4ostream operator()(const std::string& tag) const
+ {
if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
return CVC4ostream(d_os);
} else {
}
}
- bool on (const char* tag) { d_tags.insert(std::string(tag)); return true; }
- bool on (std::string tag) { d_tags.insert(tag); return true; }
- bool off(const char* tag) { d_tags.erase (std::string(tag)); return false; }
- bool off(std::string tag) { d_tags.erase (tag); return false; }
+ bool on(const std::string& tag)
+ {
+ d_tags.insert(tag);
+ return true;
+ }
+ bool off(const std::string& tag)
+ {
+ d_tags.erase(tag);
+ return false;
+ }
bool off() { d_tags.clear(); return false; }
- bool isOn(const char* tag) { return d_tags.find(std::string(tag)) != d_tags.end(); }
- bool isOn(std::string tag) { return d_tags.find(tag) != d_tags.end(); }
+ bool isOn(const std::string& tag) const
+ {
+ return d_tags.find(tag) != d_tags.end();
+ }
std::ostream& setStream(std::ostream* os) { d_os = os; return *os; }
- std::ostream& getStream() { return *d_os; }
- std::ostream* getStreamPointer() { return d_os; }
+ std::ostream& getStream() const { return *d_os; }
+ std::ostream* getStreamPointer() const { return d_os; }
};/* class DebugC */
/** The warning output class */
class CVC4_PUBLIC WarningC {
- std::set< std::pair<const char*, size_t> > d_alreadyWarned;
+ std::set<std::pair<std::string, size_t> > d_alreadyWarned;
std::ostream* d_os;
public:
explicit WarningC(std::ostream* os) : d_os(os) {}
- int printf(const char* fmt, ...) __attribute__ ((format(printf, 2, 3)));
-
- CVC4ostream operator()() { return CVC4ostream(d_os); }
+ CVC4ostream operator()() const { return CVC4ostream(d_os); }
std::ostream& setStream(std::ostream* os) { d_os = os; return *d_os; }
- std::ostream& getStream() { return *d_os; }
- std::ostream* getStreamPointer() { return d_os; }
+ std::ostream& getStream() const { return *d_os; }
+ std::ostream* getStreamPointer() const { return d_os; }
bool isOn() const { return d_os != &null_os; }
// This function supports the WarningOnce() macro, which allows you
// to easily indicate that a warning should be emitted, but only
// once for a given run of CVC4.
- bool warnOnce(const char* file, size_t line) {
- std::pair<const char*, size_t> pr = std::make_pair(file, line);
+ bool warnOnce(const std::string& file, size_t line)
+ {
+ std::pair<std::string, size_t> pr = std::make_pair(file, line);
if(d_alreadyWarned.find(pr) != d_alreadyWarned.end()) {
// signal caller not to warn again
return false;
public:
explicit MessageC(std::ostream* os) : d_os(os) {}
- int printf(const char* fmt, ...) __attribute__ ((format(printf, 2, 3)));
-
- CVC4ostream operator()() { return CVC4ostream(d_os); }
+ CVC4ostream operator()() const { return CVC4ostream(d_os); }
std::ostream& setStream(std::ostream* os) { d_os = os; return *d_os; }
- std::ostream& getStream() { return *d_os; }
- std::ostream* getStreamPointer() { return d_os; }
+ std::ostream& getStream() const { return *d_os; }
+ std::ostream* getStreamPointer() const { return d_os; }
bool isOn() const { return d_os != &null_os; }
};/* class MessageC */
public:
explicit NoticeC(std::ostream* os) : d_os(os) {}
- int printf(const char* fmt, ...) __attribute__ ((format(printf, 2, 3)));
-
- CVC4ostream operator()() { return CVC4ostream(d_os); }
+ CVC4ostream operator()() const { return CVC4ostream(d_os); }
std::ostream& setStream(std::ostream* os) { d_os = os; return *d_os; }
- std::ostream& getStream() { return *d_os; }
- std::ostream* getStreamPointer() { return d_os; }
+ std::ostream& getStream() const { return *d_os; }
+ std::ostream* getStreamPointer() const { return d_os; }
bool isOn() const { return d_os != &null_os; }
};/* class NoticeC */
public:
explicit ChatC(std::ostream* os) : d_os(os) {}
- int printf(const char* fmt, ...) __attribute__ ((format(printf, 2, 3)));
-
- CVC4ostream operator()() { return CVC4ostream(d_os); }
+ CVC4ostream operator()() const { return CVC4ostream(d_os); }
std::ostream& setStream(std::ostream* os) { d_os = os; return *d_os; }
- std::ostream& getStream() { return *d_os; }
- std::ostream* getStreamPointer() { return d_os; }
+ std::ostream& getStream() const { return *d_os; }
+ std::ostream* getStreamPointer() const { return d_os; }
bool isOn() const { return d_os != &null_os; }
};/* class ChatC */
public:
explicit TraceC(std::ostream* os) : d_os(os) {}
- int printf(const char* tag, const char* fmt, ...) __attribute__ ((format(printf, 3, 4)));
- int printf(std::string tag, const char* fmt, ...) __attribute__ ((format(printf, 3, 4)));
-
- CVC4ostream operator()(const char* tag) {
+ CVC4ostream operator()(std::string tag) const
+ {
if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
return CVC4ostream(d_os);
} else {
}
}
- CVC4ostream operator()(std::string tag) {
- if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
- return CVC4ostream(d_os);
- } else {
- return CVC4ostream();
- }
+ bool on(const std::string& tag)
+ {
+ d_tags.insert(tag);
+ return true;
+ }
+ bool off(const std::string& tag)
+ {
+ d_tags.erase(tag);
+ return false;
}
-
- bool on (const char* tag) { d_tags.insert(std::string(tag)); return true; }
- bool on (std::string tag) { d_tags.insert(tag); return true; }
- bool off(const char* tag) { d_tags.erase (std::string(tag)); return false; }
- bool off(std::string tag) { d_tags.erase (tag); return false; }
bool off() { d_tags.clear(); return false; }
- bool isOn(const char* tag) { return d_tags.find(std::string(tag)) != d_tags.end(); }
- bool isOn(std::string tag) { return d_tags.find(tag) != d_tags.end(); }
+ bool isOn(const std::string& tag) const
+ {
+ return d_tags.find(tag) != d_tags.end();
+ }
std::ostream& setStream(std::ostream* os) { d_os = os; return *d_os; }
- std::ostream& getStream() { return *d_os; }
- std::ostream* getStreamPointer() { return d_os; }
+ std::ostream& getStream() const { return *d_os; }
+ std::ostream* getStreamPointer() const { return d_os; }
};/* class TraceC */
explicit DumpOutC(std::ostream* os) : d_os(os) {}
- int printf(const char* tag, const char* fmt, ...) __attribute__ ((format(printf, 3, 4)));
- int printf(std::string tag, const char* fmt, ...) __attribute__ ((format(printf, 3, 4)));
-
- CVC4ostream operator()(const char* tag) {
- if(!d_tags.empty() && d_tags.find(std::string(tag)) != d_tags.end()) {
- return CVC4ostream(d_os);
- } else {
- return CVC4ostream();
- }
- }
CVC4ostream operator()(std::string tag) {
if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
return CVC4ostream(d_os);
}
}
- bool on (const char* tag) { d_tags.insert(std::string(tag)); return true; }
- bool on (std::string tag) { d_tags.insert(tag); return true; }
- bool off(const char* tag) { d_tags.erase (std::string(tag)); return false; }
- bool off(std::string tag) { d_tags.erase (tag); return false; }
+ bool on(const std::string& tag)
+ {
+ d_tags.insert(tag);
+ return true;
+ }
+ bool off(const std::string& tag)
+ {
+ d_tags.erase(tag);
+ return false;
+ }
bool off() { d_tags.clear(); return false; }
- bool isOn(const char* tag) { return d_tags.find(std::string(tag)) != d_tags.end(); }
- bool isOn(std::string tag) { return d_tags.find(tag) != d_tags.end(); }
+ bool isOn(std::string tag) const { return d_tags.find(tag) != d_tags.end(); }
std::ostream& setStream(std::ostream* os) { d_os = os; return *d_os; }
- std::ostream& getStream() { return *d_os; }
- std::ostream* getStreamPointer() { return d_os; }
+ std::ostream& getStream() const { return *d_os; }
+ std::ostream* getStreamPointer() const { return d_os; }
};/* class DumpOutC */
/** The debug output singleton */
# define Trace ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::TraceChannel
# define DumpOut ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::DumpOutChannel
-inline int DebugC::printf(const char* tag, const char* fmt, ...) { return 0; }
-inline int DebugC::printf(std::string tag, const char* fmt, ...) { return 0; }
-inline int WarningC::printf(const char* fmt, ...) { return 0; }
-inline int MessageC::printf(const char* fmt, ...) { return 0; }
-inline int NoticeC::printf(const char* fmt, ...) { return 0; }
-inline int ChatC::printf(const char* fmt, ...) { return 0; }
-inline int TraceC::printf(const char* tag, const char* fmt, ...) { return 0; }
-inline int TraceC::printf(std::string tag, const char* fmt, ...) { return 0; }
-inline int DumpOutC::printf(const char* tag, const char* fmt, ...) { return 0; }
-inline int DumpOutC::printf(std::string tag, const char* fmt, ...) { return 0; }
-
#else /* CVC4_MUZZLE */
# if defined(CVC4_DEBUG) && defined(CVC4_TRACING)
# define Debug ::CVC4::DebugChannel
# else /* CVC4_DEBUG && CVC4_TRACING */
# define Debug ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::DebugChannel
-inline int DebugC::printf(const char* tag, const char* fmt, ...) { return 0; }
-inline int DebugC::printf(std::string tag, const char* fmt, ...) { return 0; }
# endif /* CVC4_DEBUG && CVC4_TRACING */
# define Warning (! ::CVC4::WarningChannel.isOn()) ? ::CVC4::nullCvc4Stream : ::CVC4::WarningChannel
# define WarningOnce (! ::CVC4::WarningChannel.isOn() || ! ::CVC4::WarningChannel.warnOnce(__FILE__,__LINE__)) ? ::CVC4::nullCvc4Stream : ::CVC4::WarningChannel
# define Trace ::CVC4::TraceChannel
# else /* CVC4_TRACING */
# define Trace ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::TraceChannel
-inline int TraceC::printf(const char* tag, const char* fmt, ...) { return 0; }
-inline int TraceC::printf(std::string tag, const char* fmt, ...) { return 0; }
# endif /* CVC4_TRACING */
# ifdef CVC4_DUMPING
# define DumpOut ::CVC4::DumpOutChannel
# else /* CVC4_DUMPING */
# define DumpOut ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::DumpOutChannel
-inline int DumpOutC::printf(const char* tag, const char* fmt, ...) { return 0; }
-inline int DumpOutC::printf(std::string tag, const char* fmt, ...) { return 0; }
# endif /* CVC4_DUMPING */
#endif /* CVC4_MUZZLE */
}
}
- ScopedDebug(const char* tag, bool newSetting = true) :
- d_tag(tag) {
- d_oldSetting = Debug.isOn(d_tag);
- if(newSetting) {
- Debug.on(d_tag);
- } else {
- Debug.off(d_tag);
- }
- }
-
~ScopedDebug() {
if(d_oldSetting) {
Debug.on(d_tag);
class CVC4_PUBLIC ScopedDebug {
public:
ScopedDebug(std::string tag, bool newSetting = true) {}
- ScopedDebug(const char* tag, bool newSetting = true) {}
};/* class ScopedDebug */
#endif /* CVC4_DEBUG && CVC4_TRACING */
}
}
- ScopedTrace(const char* tag, bool newSetting = true) :
- d_tag(tag) {
- d_oldSetting = Trace.isOn(d_tag);
- if(newSetting) {
- Trace.on(d_tag);
- } else {
- Trace.off(d_tag);
- }
- }
-
~ScopedTrace() {
if(d_oldSetting) {
Trace.on(d_tag);
class CVC4_PUBLIC ScopedTrace {
public:
ScopedTrace(std::string tag, bool newSetting = true) {}
- ScopedTrace(const char* tag, bool newSetting = true) {}
};/* class ScopedTrace */
#endif /* CVC4_TRACING */
#endif /* CVC4_MUZZLE */
}
- void testPrintf() {
-
-#ifdef CVC4_MUZZLE
-
- Debug.off("yo");
- Debug.printf("yo", "hello %s", "world");
- TS_ASSERT_EQUALS(d_debugStream.str(), string());
- d_debugStream.str("");
- Debug.printf(string("yo"), "hello %s", "world");
- TS_ASSERT_EQUALS(d_debugStream.str(), string());
- d_debugStream.str("");
-
- Debug.on("yo");
- Debug.printf("yo", "hello %s", "world");
- TS_ASSERT_EQUALS(d_debugStream.str(), string());
- d_debugStream.str("");
- Debug.printf(string("yo"), "hello %s", "world");
- TS_ASSERT_EQUALS(d_debugStream.str(), string());
- d_debugStream.str("");
-
- Trace.off("yo");
- Trace.printf("yo", "hello %s", "world");
- TS_ASSERT_EQUALS(d_traceStream.str(), string());
- d_traceStream.str("");
- Trace.printf(string("yo"), "hello %s", "world");
- TS_ASSERT_EQUALS(d_traceStream.str(), string());
- d_traceStream.str("");
-
- Trace.on("yo");
- Trace.printf("yo", "hello %s", "world");
- TS_ASSERT_EQUALS(d_traceStream.str(), string());
- d_traceStream.str("");
- Trace.printf(string("yo"), "hello %s", "world");
- TS_ASSERT_EQUALS(d_traceStream.str(), string());
-
- Warning.printf("hello %s", "world");
- TS_ASSERT_EQUALS(d_warningStream.str(), string());
-
- Chat.printf("hello %s", "world");
- TS_ASSERT_EQUALS(d_chatStream.str(), string());
-
- Message.printf("hello %s", "world");
- TS_ASSERT_EQUALS(d_messageStream.str(), string());
-
- Notice.printf("hello %s", "world");
- TS_ASSERT_EQUALS(d_noticeStream.str(), string());
-
-#else /* CVC4_MUZZLE */
-
- Debug.off("yo");
- Debug.printf("yo", "hello %s", "world");
- TS_ASSERT_EQUALS(d_debugStream.str(), string());
- d_debugStream.str("");
- Debug.printf(string("yo"), "hello %s", "world");
- TS_ASSERT_EQUALS(d_debugStream.str(), string());
- d_debugStream.str("");
-
- Debug.on("yo");
- Debug.printf("yo", "hello %s", "world");
-#ifdef CVC4_DEBUG
- TS_ASSERT_EQUALS(d_debugStream.str(), string("hello world"));
-#else /* CVC4_DEBUG */
- TS_ASSERT_EQUALS(d_debugStream.str(), string());
-#endif /* CVC4_DEBUG */
- d_debugStream.str("");
- Debug.printf(string("yo"), "hello %s", "world");
-#ifdef CVC4_DEBUG
- TS_ASSERT_EQUALS(d_debugStream.str(), string("hello world"));
-#else /* CVC4_DEBUG */
- TS_ASSERT_EQUALS(d_debugStream.str(), string());
-#endif /* CVC4_DEBUG */
- d_debugStream.str("");
-
- Trace.off("yo");
- Trace.printf("yo", "hello %s", "world");
- TS_ASSERT_EQUALS(d_traceStream.str(), string());
- d_traceStream.str("");
- Trace.printf(string("yo"), "hello %s", "world");
- TS_ASSERT_EQUALS(d_traceStream.str(), string());
- d_traceStream.str("");
-
- Trace.on("yo");
- Trace.printf("yo", "hello %s", "world");
-#ifdef CVC4_TRACING
- TS_ASSERT_EQUALS(d_traceStream.str(), string("hello world"));
-#else /* CVC4_TRACING */
- TS_ASSERT_EQUALS(d_traceStream.str(), string());
-#endif /* CVC4_TRACING */
- d_traceStream.str("");
- Trace.printf(string("yo"), "hello %s", "world");
-#ifdef CVC4_TRACING
- TS_ASSERT_EQUALS(d_traceStream.str(), string("hello world"));
-#else /* CVC4_TRACING */
- TS_ASSERT_EQUALS(d_traceStream.str(), string());
-#endif /* CVC4_TRACING */
-
- Warning.printf("hello %s", "world");
- TS_ASSERT_EQUALS(d_warningStream.str(), string("hello world"));
-
- Chat.printf("hello %s", "world");
- TS_ASSERT_EQUALS(d_chatStream.str(), string("hello world"));
-
- Message.printf("hello %s", "world");
- TS_ASSERT_EQUALS(d_messageStream.str(), string("hello world"));
-
- Notice.printf("hello %s", "world");
- TS_ASSERT_EQUALS(d_noticeStream.str(), string("hello world"));
-
-#endif /* CVC4_MUZZLE */
-
- }
-
static int failure() {
// this represents an expensive function that should NOT be called
// when debugging/tracing is turned off
#ifndef CVC4_DEBUG
TS_ASSERT( !( Debug.isOn("foo") ) );
Debug("foo") << failure() << endl;
- Debug.printf("foo", "%d\n", failure());
#else /* ! CVC4_DEBUG */
TS_ASSERT( Debug.isOn("foo") );
#endif /* ! CVC4_DEBUG */
Debug.off("foo");
//Debug("foo") << failure() << endl;
- //Debug.printf("foo", "%d\n", failure());
Trace.on("foo");
#ifndef CVC4_TRACING
TS_ASSERT( !( Trace.isOn("foo") ) );
Trace("foo") << failure() << endl;
- Trace.printf("foo", "%d\n", failure());
#else /* ! CVC4_TRACING */
TS_ASSERT( Trace.isOn("foo") );
#endif /* ! CVC4_TRACING */
Trace.off("foo");
//Trace("foo") << failure() << endl;
- //Trace.printf("foo", "%d\n", failure());
#ifdef CVC4_MUZZLE
TS_ASSERT( !( Debug.isOn("foo") ) );
Notice() << failure() << endl;
cout << "chat" << std::endl;
Chat() << failure() << endl;
-
- cout << "debug:printf" << std::endl;
- Debug.printf("foo", "%d\n", failure());
- cout << "trace:printf" << std::endl;
- Trace.printf("foo", "%d\n", failure());
- cout << "warning:printf" << std::endl;
- Warning.printf("%d\n", failure());
- cout << "message:printf" << std::endl;
- Message.printf("%d\n", failure());
- cout << "notice:printf" << std::endl;
- Notice.printf("%d\n", failure());
- cout << "chat:printf" << std::endl;
- Chat.printf("%d\n", failure());
#endif /* CVC4_MUZZLE */
}