summaryrefslogtreecommitdiff
path: root/src/parser/smt2/Smt2.g
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2017-04-28 15:52:17 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2017-04-28 15:52:17 -0500
commit3ad71136637d0a07b2f24bd83cb9284d312f385d (patch)
tree4af5a7b6b5336bfcb3533d1289c940f4e68f7cbc /src/parser/smt2/Smt2.g
parent4a4b05fa4bc52a53a33b8eaa542c3a5e1d603b94 (diff)
Minor fixes
Diffstat (limited to 'src/parser/smt2/Smt2.g')
-rw-r--r--src/parser/smt2/Smt2.g2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g
index d73a60ed1..a49190825 100644
--- a/src/parser/smt2/Smt2.g
+++ b/src/parser/smt2/Smt2.g
@@ -2538,7 +2538,7 @@ indexedFunctionName[CVC4::Expr& op, CVC4::Kind& kind]
| FP_TO_SBV_TOK m=INTEGER_LITERAL
{ op = MK_CONST(FloatingPointToSBV(AntlrInput::tokenToUnsigned($m))); }
| TESTER_TOK term[expr, expr2] {
- if( expr.getKind()==kind::APPLY_CONSTRUCTOR ){
+ if( expr.getKind()==kind::APPLY_CONSTRUCTOR && expr.getNumChildren()==0 ){
//for nullary constructors, must get the operator
expr = expr.getOperator();
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback