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

Parser rejects variables with prefix "bv" #25

Open
wintered opened this issue May 17, 2021 · 0 comments · Fixed by #26
Open

Parser rejects variables with prefix "bv" #25

wintered opened this issue May 17, 2021 · 0 comments · Fixed by #26
Labels
bug Something isn't working minor
Milestone

Comments

@wintered
Copy link
Collaborator

Commit: d8174eb

The parser currently rejects formulas such as the one below.

(declare-fun bv () (_ BitVec 10))                                               
(declare-fun a () Bool)                                                         
(assert (not (and (= ((_ extract 5 3) (_ bv96 8)) ((_ extract 4 2) (concat (_ bv121 7) 
((_ extract 0 0) bv)))) (= (concat (_ bv1 1) (ite a (_ bv0 1) (_ bv1 1))) ((_ extract 1 0) 
(ite a (_ bv6 3) (_ bv3 3)))))))
(check-sat)

Reason being the declared variable "bv" which seems to conflict with rules for bitvector constants such as "(_ bv0 1)". When there are no variables with prefix "bv", then parsing succeeds.

@wintered wintered added minor bug Something isn't working and removed minor labels May 17, 2021
wintered added a commit that referenced this issue May 18, 2021
@wintered wintered added this to the release 0.3.0 milestone May 18, 2021
@wintered wintered reopened this Jul 7, 2021
@wintered wintered removed this from the release 0.3.0 milestone Jul 28, 2021
@wintered wintered added this to the release 0.4.0 milestone Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant