( 'extract' n1=INTEGER_LITERAL n2=INTEGER_LITERAL
{ op = MK_CONST(BitVectorExtract(AntlrInput::tokenToUnsigned($n1),
AntlrInput::tokenToUnsigned($n2))); }
- | ('repeat' INTEGER_LITERAL)=>'repeat' n=INTEGER_LITERAL
+ | 'repeat' n=INTEGER_LITERAL
{ op = MK_CONST(BitVectorRepeat(AntlrInput::tokenToUnsigned($n))); }
| 'zero_extend' n=INTEGER_LITERAL
{ op = MK_CONST(BitVectorZeroExtend(AntlrInput::tokenToUnsigned($n))); }
--- /dev/null
+(set-info :smt-lib-version 2.0)
+(set-info :status sat)
+(set-logic QF_BV)
+(declare-fun v0 () (_ BitVec 1))
+(declare-fun v1 () (_ BitVec 10))
+(assert (= v1 ((_ repeat 10) v0)))
+(check-sat)