Fix in SMT2 parser for parametric datatypes
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Sun, 16 Jun 2013 02:00:39 +0000 (21:00 -0500)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Sun, 16 Jun 2013 02:00:49 +0000 (21:00 -0500)
src/parser/smt2/Smt2.g

index 5abaa01638c1e3e1436f71089da363bf083dc7ac..373f5b3a42383db5b8b94b37a4d4fac89dc6845d 100644 (file)
@@ -801,7 +801,7 @@ term[CVC4::Expr& expr, CVC4::Expr& expr2]
         v.push_back(MK_EXPR( CVC4::kind::APPLY_TYPE_ASCRIPTION,
                              MK_CONST(AscriptionType(dtc.getSpecializedConstructorType(type))), f.getOperator() ));
         v.insert(v.end(), f.begin(), f.end());
-        f = MK_EXPR(CVC4::kind::APPLY_CONSTRUCTOR, v);
+        expr = MK_EXPR(CVC4::kind::APPLY_CONSTRUCTOR, v);
       } else {
         if(f.getType() != type) {
           PARSER_STATE->parseError("Type ascription not satisfied.");