diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2017-04-28 15:52:17 -0500 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2017-04-28 15:52:17 -0500 |
commit | 3ad71136637d0a07b2f24bd83cb9284d312f385d (patch) | |
tree | 4af5a7b6b5336bfcb3533d1289c940f4e68f7cbc /src/parser/smt2/Smt2.g | |
parent | 4a4b05fa4bc52a53a33b8eaa542c3a5e1d603b94 (diff) |
Minor fixes
Diffstat (limited to 'src/parser/smt2/Smt2.g')
-rw-r--r-- | src/parser/smt2/Smt2.g | 2 |
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(); } |