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

[SMT] Parse SMT bitvector width as signed #8042

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TaoBi22
Copy link
Contributor

@TaoBi22 TaoBi22 commented Jan 8, 2025

Fixes an issue where SMT bitvector widths being parsed as unsigned meant that e.g. !smt.bv<-1> would wrap around and be interpreted as a 18446744073709551615-wide bitvector. The downside of this fix is that the error messages for bitvectors that are too wide become a little less clear (see the updated test) - does this still look like an ok fix to you @maerhart? Let me know if I should also drop the code that's emitting that error in the RepeatOp verifier, don't think it can be triggered after this but I may have missed a case.

@TaoBi22 TaoBi22 added bug Something isn't working SMT labels Jan 8, 2025
@TaoBi22 TaoBi22 requested a review from maerhart as a code owner January 8, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SMT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant