diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2013-02-22 16:48:13 -0500 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2013-03-08 19:30:49 -0500 |
commit | 56b7a4f494dfe069fc4cbdb1dcd05c23c9b59a1d (patch) | |
tree | a8dc4d5d2e1ecaba112fa67c9a61e27e5ef07c80 /src/parser/cvc/cvc_input.cpp | |
parent | 9817df56827b4ee0ee67a33361f8619c5d1df6ed (diff) |
Disallow overflow in bitvector literals (parser only)
* For example, (_ bv5 1) is now an error instead of being silently truncated.
* Probably inappropriate for 1.0.x because it changes exception specifications.
Diffstat (limited to 'src/parser/cvc/cvc_input.cpp')
-rw-r--r-- | src/parser/cvc/cvc_input.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/parser/cvc/cvc_input.cpp b/src/parser/cvc/cvc_input.cpp index 52fadae66..8328306be 100644 --- a/src/parser/cvc/cvc_input.cpp +++ b/src/parser/cvc/cvc_input.cpp @@ -56,13 +56,11 @@ CvcInput::~CvcInput() { d_pCvcParser->free(d_pCvcParser); } -Command* CvcInput::parseCommand() - throw (ParserException, TypeCheckingException) { +Command* CvcInput::parseCommand() { return d_pCvcParser->parseCommand(d_pCvcParser); } -Expr CvcInput::parseExpr() - throw (ParserException, TypeCheckingException) { +Expr CvcInput::parseExpr() { return d_pCvcParser->parseExpr(d_pCvcParser); } |