expr = MK_CONST( AntlrInput::tokenToRational($RATIONAL_TOK) ); }
| n = BITVECTOR_BV_CONST '[' size = NUMERAL_TOK ']'
{ expr = MK_CONST( AntlrInput::tokenToBitvector($n, $size) ); }
+ | n = BITVECTOR1_BV_CONST
+ { unsigned int bit = AntlrInput::tokenText($n)[3] - '0';
+ expr = MK_CONST( BitVector(1, bit) );
+ }
// NOTE: Theory constants go here
/* TODO: quantifiers, arithmetic constants */
: 'bv' DIGIT+
;
+/**
+ * Matches a bit-vector constant of the form bit(0|1)
+ */
+BITVECTOR1_BV_CONST
+ : 'bit0' | 'bit1'
+ ;
+
/**
* Matches an identifier from the input. An identifier is a sequence of letters,