From f57cffc90547ea1c7c42d7b5a7d894c4e13eef94 Mon Sep 17 00:00:00 2001 From: Andres Notzli Date: Wed, 30 Nov 2016 10:29:27 -0800 Subject: Fix parsing of BVROTR by CVC parser This commit fixes Bugzilla bug 766 as proposed by jacobly.alt@gmail.com. --- src/parser/cvc/Cvc.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parser/cvc/Cvc.g b/src/parser/cvc/Cvc.g index d443dc2bd..1b1137a9d 100644 --- a/src/parser/cvc/Cvc.g +++ b/src/parser/cvc/Cvc.g @@ -1945,7 +1945,7 @@ bvTerm[CVC4::Expr& f] { f = MK_EXPR(MK_CONST(BitVectorRepeat(k)), f); } /* BV rotate right */ | BVROTR_TOK LPAREN formula[f] COMMA k=numeral RPAREN - { f = MK_EXPR(MK_CONST(BitVectorSignExtend(k)), f); } + { f = MK_EXPR(MK_CONST(BitVectorRotateRight(k)), f); } /* BV rotate left */ | BVROTL_TOK LPAREN formula[f] COMMA k=numeral RPAREN { f = MK_EXPR(MK_CONST(BitVectorRotateLeft(k)), f); } -- cgit v1.2.3