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

SMV: do not allow defining identifiers that are already declared #982

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

kroening
Copy link
Member

@kroening kroening commented Feb 9, 2025

VAR x : ... followed by DEFINE x := ... must be errored.

@kroening kroening added the SMV label Feb 9, 2025
@kroening kroening force-pushed the define2 branch 2 times, most recently from 8ccf38c to a5020d7 Compare February 9, 2025 09:21
@kroening kroening marked this pull request as ready for review February 9, 2025 09:21
VAR x : ... followed by DEFINE x := ... must be errored.
Comment on lines +1 to +8
KNOWNBUG
assign1.smv

^file .* line 6: variable `x' already assigned.*$
^EXIT=1$
^SIGNAL=0$
--
--
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems there is one test that now works while the others are all KNOWNBUG: do those need further work?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will need more work.

@kroening kroening merged commit 8b88a47 into main Feb 10, 2025
9 checks passed
@kroening kroening deleted the define2 branch February 10, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants