about summary refs log tree commit diff homepage
path: root/lib/SMT/smtlib.y
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-06-13 01:53:35 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-06-13 01:53:35 +0000
commit723545c647d93082444f5b49e132c6c9b406babf (patch)
tree8418189cceb86ab95b6fdd6913072e1bc866aeb2 /lib/SMT/smtlib.y
parent48bc0478e93b095407b6f53dfa33af5edf98b8d1 (diff)
downloadklee-723545c647d93082444f5b49e132c6c9b406babf.tar.gz
Removed bits of grammar dealing with quantifiers.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/SMT/smtlib.y')
-rw-r--r--lib/SMT/smtlib.y114
1 files changed, 2 insertions, 112 deletions
diff --git a/lib/SMT/smtlib.y b/lib/SMT/smtlib.y
index 456adff7..65931db1 100644
--- a/lib/SMT/smtlib.y
+++ b/lib/SMT/smtlib.y
@@ -395,29 +395,7 @@ an_formula:
       delete $2;
       delete $3;
     }
-  | LPAREN_TOK quant_symb quant_vars an_formula annotations RPAREN_TOK
-    {
-      $$ = new CVC3::Expr(VC->listExpr(*$2, VC->listExpr(*$3), *$4));
-      delete $2;
-      delete $3;
-      delete $4;
-      delete $5;
-    }
-  | LPAREN_TOK quant_symb quant_vars an_formula RPAREN_TOK
-    {
-      $$ = new CVC3::Expr(VC->listExpr(*$2, VC->listExpr(*$3), *$4));
-      delete $2;
-      delete $3;
-      delete $4;
-    }
-  | LPAREN_TOK quant_symb quant_vars an_formula patterns_annotations RPAREN_TOK
-    {
-      $$ = new CVC3::Expr(VC->listExpr(*$2, VC->listExpr(*$3), *$4, VC->listExpr((*$5).first)));
-      delete $2;
-      delete $3;
-      delete $4;
-      delete $5;
-    }
+
   | LPAREN_TOK LET_TOK LPAREN_TOK var an_term RPAREN_TOK an_formula annotations RPAREN_TOK
     {
       CVC3::Expr e(VC->listExpr(VC->listExpr(*$4, *$5)));
@@ -455,96 +433,8 @@ an_formula:
 */
 ;
 
-/*
-patterns_annotations:
-     patterns
-     {
-       $$ = new std::pair<std::vector<CVC3::Expr>, std::vector<std::string> >;
-       $$->first = *$1;
-       delete $1;
-     }
-     | annotation
-     {
-       $$ = new std::pair<std::vector<CVC3::Expr>, std::vector<std::string> >;
-       $$->second.push_back(*$1);
-       delete $1;
-     }
-     | patterns_annotations patterns
-     {
-       $1->first.insert($1->first.end(), $2->begin(), $2->end());
-       $$ = $1;
-       delete $2;
-     }
-     | patterns_annotations annotation
-     {
-       $1->second.push_back(*$2);
-       $$ = $1;
-       delete $2;
-     }
-
-patterns:
-     pattern
-     {
-       $$ = new std::vector<CVC3::Expr >;
-       $$->push_back(*$1);
-       delete $1;
-     }
-    | patterns pattern
-     {
-       $1->push_back(*$2);
-       $$ = $1;
-       delete $2;
-     }
-
-pattern:
-     PAT_TOK LCURBRACK_TOK an_terms RCURBRACK_TOK
-     {
-       $$ = new CVC3::Expr(VC->listExpr(*$3));
-       delete $3;
-     }
-     | PAT_TOK LCURBRACK_TOK an_formulas RCURBRACK_TOK
-     {
-       $$ = new CVC3::Expr(VC->listExpr(*$3));
-       delete $3;
-     }
-
-
-
-quant_vars:
-    quant_var
-    {
-      $$ = new std::vector<CVC3::Expr>;
-      $$->push_back(*$1);
-      delete $1;
-    }
-  | quant_vars quant_var
-    {
-      $1->push_back(*$2);
-      $$ = $1; 
-      delete $2;
-    }
-;
-
-quant_var: 
-    LPAREN_TOK var sort_symb RPAREN_TOK
-    {
-      $$ = new CVC3::Expr(VC->listExpr(*$2, *$3));
-      delete $2;
-      delete $3;
-    }
-;
-
-quant_symb:
-    EXISTS_TOK
-    {
-      $$ = new std::string("_EXISTS");
-    }
-  | FORALL_TOK
-    {
-      $$ = new std::string("_FORALL");
-    }
-;
 
+/*
 connective:
     NOT_TOK
     {