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

Do not allow to collect globals with duplicate identifiers in map #615

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

stilscher
Copy link
Member

@stilscher stilscher commented Feb 28, 2022

The general comparison for the incremental analysis (used for both, the cfg and ast comparison) assumes that globals have a unique identifier. But it is not warned if this is not the case. Instead, the incremental analysis run will often fail later on in UpdateCil.ml because List.iter2 expects lists of the same length. This happened for example in goblint/bench#16.
This PR only inserts a warning when globals with duplicate identifiers are found to make it easier for now to detect this problem. One could of course also think further about how to make the comparison robust against globals with the same name.

@stilscher stilscher marked this pull request as ready for review March 15, 2022 11:47
@stilscher stilscher merged commit 39d7288 into master Mar 15, 2022
@stilscher stilscher deleted the incremental/warn-about-duplicate-globals branch March 15, 2022 14:54
@sim642 sim642 added this to the v2.0.0 milestone Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugging Abstract debugging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants