Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support constant rotating in bit-blast #6953

Closed
QinshiWang opened this issue Oct 18, 2023 · 2 comments
Closed

Support constant rotating in bit-blast #6953

QinshiWang opened this issue Oct 18, 2023 · 2 comments

Comments

@QinshiWang
Copy link

Bit blasting should support functions like rotate_left when the amount of shifting is a constant. The code below is an example.

(declare-fun a () (_ BitVec 32))
(define-fun b () (_ BitVec 32) ((_ rotate_left 7) a))
(assert (= b b))
(apply bit-blast)
@LeventErkok
Copy link

This seems to work:

(declare-fun a () (_ BitVec 32))
(define-fun b () (_ BitVec 32) ((_ rotate_left 7) a))
(assert (= b b))
(apply (then simplify bit-blast))

yielding:

(goals
(goal
  :precision precise :depth 1)
)

NikolajBjorner added a commit that referenced this issue Oct 25, 2023
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
@NikolajBjorner
Copy link
Contributor

added nested simplification for self-contained use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants