summaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2017-08-17 08:51:51 -0700
committerGitHub <noreply@github.com>2017-08-17 08:51:51 -0700
commit33ca2a3f2359493a9154a229a30ad3aa3a21f2aa (patch)
tree2faebdb98cff292d4b4cd9aed254a685efada15b /src/parser
parent7766f0ba088ad6d6c58ea9678477b255c9e52fee (diff)
Remove unused SubrangeBound(s) classes (#221)
As discussed in pull request #220, commit 360d6ee8d3cdd5ddb47c328043eaed3a107b8db1 mostly got rid of SubrangeBound(s). There were still a few mentions of it left in the code, most of them commented out. The occurrences in expr.i and expr_manager.i, however, created issues with the Python wrapper. This commit removes the SubrangeBound(s) implementation and other leftovers.
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/cvc/Cvc.g30
1 files changed, 5 insertions, 25 deletions
diff --git a/src/parser/cvc/Cvc.g b/src/parser/cvc/Cvc.g
index a137cece3..efdd328a4 100644
--- a/src/parser/cvc/Cvc.g
+++ b/src/parser/cvc/Cvc.g
@@ -539,7 +539,6 @@ Expr addNots(ExprManager* em, size_t n, Expr e) {
#include "parser/antlr_tracing.h"
#include "parser/parser.h"
#include "smt/command.h"
-#include "util/subrange_bound.h"
namespace CVC4 {
class Expr;
@@ -563,18 +562,6 @@ namespace CVC4 {
* Just exists to give us the void* construction that
* ANTLR requires.
*/
- class mySubrangeBound : public CVC4::SubrangeBound {
- public:
- mySubrangeBound() : CVC4::SubrangeBound() {}
- mySubrangeBound(void*) : CVC4::SubrangeBound() {}
- mySubrangeBound(const Integer& i) : CVC4::SubrangeBound(i) {}
- mySubrangeBound(const SubrangeBound& b) : CVC4::SubrangeBound(b) {}
- };/* class mySubrangeBound */
-
- /**
- * Just exists to give us the void* construction that
- * ANTLR requires.
- */
struct myExpr : public CVC4::Expr {
myExpr() : CVC4::Expr() {}
myExpr(void*) : CVC4::Expr() {}
@@ -1284,16 +1271,9 @@ restrictedTypePossiblyFunctionLHS[CVC4::Type& t,
}
/* subrange types */
- | LBRACKET k1=bound DOTDOT k2=bound RBRACKET
- { if(k1.hasBound() && k2.hasBound() &&
- k1.getBound() > k2.getBound()) {
- std::stringstream ss;
- ss << "Subrange [" << k1.getBound() << ".." << k2.getBound()
- << "] inappropriate: range must be nonempty!";
- PARSER_STATE->parseError(ss.str());
- }
+ | LBRACKET bound DOTDOT bound RBRACKET
+ {
PARSER_STATE->unimplementedFeature("subrange typing not supported in this release");
- //t = EXPR_MANAGER->mkSubrangeType(SubrangeBounds(k1, k2));
}
/* tuple types / old-style function types */
@@ -1348,9 +1328,9 @@ parameterization[CVC4::parser::DeclarationCheck check,
( COMMA restrictedType[t,check] { Debug("parser-param") << "t = " << t << std::endl; params.push_back( t ); } )* RBRACKET
;
-bound returns [CVC4::parser::cvc::mySubrangeBound bound]
- : UNDERSCORE { $bound = SubrangeBound(); }
- | k=integer { $bound = SubrangeBound(k.getNumerator()); }
+bound
+ : UNDERSCORE
+ | integer
;
typeLetDecl[CVC4::parser::DeclarationCheck check]
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback