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

run foo for n does not set bitwidth #138

Closed
edmcman opened this issue Nov 25, 2020 · 2 comments
Closed

run foo for n does not set bitwidth #138

edmcman opened this issue Nov 25, 2020 · 2 comments

Comments

@edmcman
Copy link

edmcman commented Nov 25, 2020

I was very confused by the fact that this model did not find any instances:

sig Dummy {}

pred example { #Dummy = 8 }
run example for 10 //but 5 int

The problem is that run example for N does not increase the bitwidth, so N > 7 is useless without increasing the bitwidth. Perhaps a warning should be issued, or the bitwidth should automatically be increased?

@grayswandyr
Copy link
Contributor

IMO, we should issue a warning for every command featuring integers that does not set the bitwidth explictly.

@grayswandyr
Copy link
Contributor

Tracked in #30 .

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

No branches or pull requests

3 participants