about summary refs log tree commit diff homepage
path: root/lib/SMT/parser_temp.h
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-06-10 09:15:33 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-06-10 09:15:33 +0000
commit7ba75c1726a81d343e54bc718742541b9d884a13 (patch)
tree38627286534fd13a66b705341f215e80511e33e2 /lib/SMT/parser_temp.h
parent930bf13e988c169c585da158c4410bdb49cc5ec6 (diff)
downloadklee-7ba75c1726a81d343e54bc718742541b9d884a13.tar.gz
Updated the SMT test driver. Other small changes to parser_temp.h and
smtlib.y.



git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/SMT/parser_temp.h')
-rw-r--r--lib/SMT/parser_temp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/SMT/parser_temp.h b/lib/SMT/parser_temp.h
index 704157d9..ce0eecc8 100644
--- a/lib/SMT/parser_temp.h
+++ b/lib/SMT/parser_temp.h
@@ -27,6 +27,7 @@
 
 #include <sstream>
 #include <vector>
+#include <iostream>
 
 namespace CVC3 {
 
@@ -64,7 +65,12 @@ namespace CVC3 {
     ParserTemp() : d_uid(0), prompt1("CVC> "), prompt2("- "),
       prompt("CVC> "), lineNum(1), done(false), arrFlag(false), queryParsed(false) { }
     // Parser error handling (implemented in parser.cpp)
-    int error(const std::string& s);
+    int error(const std::string& s) {
+      // FIXME: Fail better?
+      std::cerr << "error: " << s << "\n";
+      exit(1);
+      return 0;
+    }
     // Get the next uniqueID as a string
     std::string uniqueID() {
       std::ostringstream ss;