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] Implicit overflow when parsing !smt.bv type? #8062

Open
maerhart opened this issue Jan 10, 2025 · 0 comments
Open

[SMT] Implicit overflow when parsing !smt.bv type? #8062

maerhart opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working SMT

Comments

@maerhart
Copy link
Member

When providing the following as input to circt-opt

hw.module @ImplicitOverflow() {
  %0 = smt.bv.constant #smt.bv<1> : !smt.bv<18446744073709551615>
}

it outputs

hw.module @ImplicitOverflow() {
  %c1_bv4294967295 = smt.bv.constant #smt.bv<1> : !smt.bv<4294967295>
  hw.output
}

Using !smt.bv<18446744073709551616> as input expectedly triggers an error that the integer is too large.
Seems like we store it in some 32 bit integer at some point?

@maerhart maerhart added the SMT label Jan 10, 2025
@maerhart maerhart added the bug Something isn't working label Jan 10, 2025
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

No branches or pull requests

1 participant