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/tptp | |
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/tptp')
-rw-r--r-- | src/parser/tptp/tptp_input.cpp | 6 | ||||
-rw-r--r-- | src/parser/tptp/tptp_input.h | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/parser/tptp/tptp_input.cpp b/src/parser/tptp/tptp_input.cpp index 40231853f..d52c7f597 100644 --- a/src/parser/tptp/tptp_input.cpp +++ b/src/parser/tptp/tptp_input.cpp @@ -58,13 +58,11 @@ TptpInput::~TptpInput() { d_pTptpParser->free(d_pTptpParser); } -Command* TptpInput::parseCommand() - throw (ParserException, TypeCheckingException) { +Command* TptpInput::parseCommand() { return d_pTptpParser->parseCommand(d_pTptpParser); } -Expr TptpInput::parseExpr() - throw (ParserException, TypeCheckingException) { +Expr TptpInput::parseExpr() { return d_pTptpParser->parseExpr(d_pTptpParser); } diff --git a/src/parser/tptp/tptp_input.h b/src/parser/tptp/tptp_input.h index da9c67e31..13aa358cd 100644 --- a/src/parser/tptp/tptp_input.h +++ b/src/parser/tptp/tptp_input.h @@ -75,8 +75,7 @@ protected: * * @throws ParserException if an error is encountered during parsing. */ - Command* parseCommand() - throw(ParserException, TypeCheckingException); + Command* parseCommand(); /** * Parse an expression from the input. Returns a null @@ -84,8 +83,7 @@ protected: * * @throws ParserException if an error is encountered during parsing. */ - Expr parseExpr() - throw(ParserException, TypeCheckingException); + Expr parseExpr(); };/* class TptpInput */ |