| INTS_DIV_TOK { $kind = CVC4::kind::INTS_DIVISION; }
| INTS_MOD_TOK { $kind = CVC4::kind::INTS_MODULUS; }
| ABS_TOK { $kind = CVC4::kind::ABS; }
- | IS_INT_TOK { $kind = CVC4::kind::IS_INTEGER; }
- | TO_INT_TOK { $kind = CVC4::kind::TO_INTEGER; }
- | TO_REAL_TOK { $kind = CVC4::kind::TO_REAL; }
| BV2NAT_TOK { $kind = CVC4::kind::BITVECTOR_TO_NAT;
if(PARSER_STATE->strictModeEnabled()) {
GREATER_THAN_TOK : '>';
GREATER_THAN_EQUAL_TOK : '>=';
IMPLIES_TOK : '=>';
-IS_INT_TOK : 'is_int';
LESS_THAN_TOK : '<';
LESS_THAN_EQUAL_TOK : '<=';
MINUS_TOK : '-';
//POUND_TOK : '#';
STAR_TOK : '*';
// TILDE_TOK : '~';
-TO_INT_TOK : 'to_int';
-TO_REAL_TOK : 'to_real';
XOR_TOK : 'xor';
+
INTS_DIV_TOK : 'div';
INTS_MOD_TOK : 'mod';
ABS_TOK : 'abs';
case THEORY_REALS_INTS:
defineType("Real", getExprManager()->realType());
Parser::addOperator(kind::DIVISION);
- Parser::addOperator(kind::TO_INTEGER);
- Parser::addOperator(kind::IS_INTEGER);
- Parser::addOperator(kind::TO_REAL);
+ addOperator(kind::TO_INTEGER, "to_int");
+ addOperator(kind::IS_INTEGER, "is_int");
+ addOperator(kind::TO_REAL, "to_real");
// falling through on purpose, to add Ints part of Reals_Ints
case THEORY_INTS:
defineType("Int", getExprManager()->integerType());