diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-11 00:08:29 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-11 00:08:29 +0000 |
commit | f3bca68c8e5e5362ea247c582e7e9ff1e717e9d2 (patch) | |
tree | 350ec312d6ad03de02df87e5ec79a425cf207424 /lib/SMT/SMTParser.cpp | |
parent | efeba0da263aa4c2feb2606e9d0dbf076ac48087 (diff) | |
download | klee-f3bca68c8e5e5362ea247c582e7e9ff1e717e9d2.tar.gz |
Report an error in the SMT parser when encountering the few operators
not supported yet: bvneg, bvsmod, bvxnor, rotate_left, rotate_right, repeat. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/SMT/SMTParser.cpp')
-rw-r--r-- | lib/SMT/SMTParser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/SMT/SMTParser.cpp b/lib/SMT/SMTParser.cpp index 96d33661..5edff9d0 100644 --- a/lib/SMT/SMTParser.cpp +++ b/lib/SMT/SMTParser.cpp @@ -63,8 +63,10 @@ Decl* SMTParser::ParseTopLevelDecl() { } // XXX: give more info -int SMTParser::Error(const string& s) { - std::cerr << "error: " << s << "\n"; +int SMTParser::Error(const string& msg) { + std::cerr << SMTParser::parserTemp->fileName << ":" + << SMTParser::parserTemp->lineNum + << ": " << msg << "\n"; exit(1); return 0; } |