projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c94c9
)
Fix in SMT2 parser for parametric datatypes
author
Andrew Reynolds
<andrew.j.reynolds@gmail.com>
Sun, 16 Jun 2013 02:00:39 +0000
(21:00 -0500)
committer
Andrew Reynolds
<andrew.j.reynolds@gmail.com>
Sun, 16 Jun 2013 02:00:49 +0000
(21:00 -0500)
src/parser/smt2/Smt2.g
patch
|
blob
|
history
diff --git
a/src/parser/smt2/Smt2.g
b/src/parser/smt2/Smt2.g
index 5abaa01638c1e3e1436f71089da363bf083dc7ac..373f5b3a42383db5b8b94b37a4d4fac89dc6845d 100644
(file)
--- a/
src/parser/smt2/Smt2.g
+++ b/
src/parser/smt2/Smt2.g
@@
-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.");