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

Fix infinite loop on stub resolution and improve error handling #2227

Merged
merged 4 commits into from
Feb 28, 2023

Conversation

celinval
Copy link
Contributor

@celinval celinval commented Feb 22, 2023

Description of changes:

Refactor the name resolution code to take into consideration loops added by loops in globs. Since I had to do some refactoring, I also ensured we now the reason why the resolution failed and print it as part of the error.

Resolved issues:

Resolves #2013 and resolves #2201

Related RFC:

Call-outs:

Testing:

  • How is this change tested? New tests

  • Is this a refactor change? Kinda

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@celinval celinval requested a review from a team as a code owner February 22, 2023 22:07
celinval and others added 3 commits February 27, 2023 13:06
Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com>
@celinval celinval merged commit 07a48e6 into model-checking:main Feb 28, 2023
celinval added a commit to celinval/kani-dev that referenced this pull request Mar 1, 2023
I just noticed a regression on
model-checking#2227 where I incorrectly
updated a test that should've caught this regression. Thus, fix the
issue and revert the changes to the test.
celinval added a commit to celinval/kani-dev that referenced this pull request Mar 1, 2023
I just noticed a regression on
model-checking#2227 where I incorrectly
updated a test that should've caught this regression. Thus, fix the
issue and revert the changes to the test.
celinval added a commit that referenced this pull request Mar 1, 2023
I just noticed a regression on #2227 where I incorrectly updated a test that should've caught this regression. Thus, fix the issue and revert the changes to the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Name resolution falls into a cycle on local modules Improve stub resolution error
2 participants