summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-03-15 21:10:29 +0000
committerMorgan Deters <mdeters@gmail.com>2010-03-15 21:10:29 +0000
commit12ad4cf2de936acbf8c21117804c69b2deaa7272 (patch)
tree39280aebed0a299b080512d1c26d1adad827fcc7 /src/util
parentbb21cdc3a551fa46b5e77345bb5cbcb55cba2fa6 (diff)
This checkin resolves bug #57.
* CVC4::theory::Interrupted no longer derives CVC4::Exception. * Interrupted is only thrown if "safe" parameter is TRUE ! * UF returns one conflict (instead of waiting for Interrupted to be thrown). * Minor build system work (quieter builds if V=0, better handling of build profiles in configure)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/exception.h1
-rw-r--r--src/util/output.h18
2 files changed, 8 insertions, 11 deletions
diff --git a/src/util/exception.h b/src/util/exception.h
index 5449d67f7..ff88b5d81 100644
--- a/src/util/exception.h
+++ b/src/util/exception.h
@@ -17,7 +17,6 @@
#define __CVC4__EXCEPTION_H
#include <string>
-#include <iostream>
#include "cvc4_config.h"
namespace CVC4 {
diff --git a/src/util/output.h b/src/util/output.h
index d0db064f0..5c265e699 100644
--- a/src/util/output.h
+++ b/src/util/output.h
@@ -24,8 +24,6 @@
#include <cstdarg>
#include <set>
-#include "util/exception.h"
-
namespace CVC4 {
/**
@@ -60,25 +58,25 @@ public:
DebugC(std::ostream* os) : d_os(os) {}
void operator()(const char* tag, const char* s) {
- if(d_tags.find(std::string(tag)) != d_tags.end()) {
+ if(!d_tags.empty() && d_tags.find(std::string(tag)) != d_tags.end()) {
*d_os << s;
}
}
void operator()(const char* tag, const std::string& s) {
- if(d_tags.find(std::string(tag)) != d_tags.end()) {
+ if(!d_tags.empty() && d_tags.find(std::string(tag)) != d_tags.end()) {
*d_os << s;
}
}
void operator()(const std::string& tag, const char* s) {
- if(d_tags.find(tag) != d_tags.end()) {
+ if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
*d_os << s;
}
}
void operator()(const std::string& tag, const std::string& s) {
- if(d_tags.find(tag) != d_tags.end()) {
+ if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
*d_os << s;
}
}
@@ -87,14 +85,14 @@ public:
void printf(std::string tag, const char* fmt, ...) __attribute__ ((format(printf, 3, 4)));
std::ostream& operator()(const char* tag) {
- if(d_tags.find(std::string(tag)) != d_tags.end()) {
+ if(!d_tags.empty() && d_tags.find(std::string(tag)) != d_tags.end()) {
return *d_os;
} else {
return null_os;
}
}
std::ostream& operator()(std::string tag) {
- if(d_tags.find(tag) != d_tags.end()) {
+ if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
return *d_os;
} else {
return null_os;
@@ -223,7 +221,7 @@ public:
void printf(std::string tag, const char* fmt, ...) __attribute__ ((format(printf, 3, 4)));
std::ostream& operator()(const char* tag) {
- if(d_tags.find(tag) != d_tags.end()) {
+ if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
return *d_os;
} else {
return null_os;
@@ -231,7 +229,7 @@ public:
}
std::ostream& operator()(std::string tag) {
- if(d_tags.find(tag) != d_tags.end()) {
+ if(!d_tags.empty() && d_tags.find(tag) != d_tags.end()) {
return *d_os;
} else {
return null_os;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback