diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-05-06 21:11:43 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-05-06 21:11:43 +0000 |
commit | d292e8c233305c402da65a1cf97668881f7b099c (patch) | |
tree | 995ba2c65c61c0e3a7038d1eeae95c8b9efea599 /src/parser/smt2/Smt2.g | |
parent | f4643b0e2f5ca233dcfeb91fbb424b8caec836e6 (diff) |
Adding --strict-parsing option
Diffstat (limited to 'src/parser/smt2/Smt2.g')
-rw-r--r-- | src/parser/smt2/Smt2.g | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g index fd5e334ed..bcab39183 100644 --- a/src/parser/smt2/Smt2.g +++ b/src/parser/smt2/Smt2.g @@ -208,7 +208,9 @@ term[CVC4::Expr& expr] } : /* a built-in operator application */ LPAREN_TOK builtinOp[kind] termList[args,expr] RPAREN_TOK - { if((kind == CVC4::kind::AND || kind == CVC4::kind::OR) && args.size() == 1) { + { if( !PARSER_STATE->strictModeEnabled() && + (kind == CVC4::kind::AND || kind == CVC4::kind::OR) && + args.size() == 1) { /* Unary AND/OR can be replaced with the argument. It just so happens expr should already by the only argument. */ Assert( expr == args[0] ); |