-
Notifications
You must be signed in to change notification settings - Fork 356
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
Inconsistent inferred annotated file generation during WPI iterations causing non-termination #6570
Comments
Here is a minimized test case:
Running Here's the important part of the stack trace (note that I've removed the bodies of the
The issue is that javac tree for the original source file has two "compilation units": the class itself and then a single semicolon. The JavaParser tree for the There are two possible fixes, and I'm not sure which is better. @smillst and @mernst I'd appreciate your input on which of these you think we should pursue:
The trade-offs between the two approaches that I see are:
|
If this is a JavaParser issue, then I don't want to go anywhere near it. I think that approach 1 is acceptable. This will probably be a relatively rare occurrence. |
@kelloggm I ran on the original project
|
@iamsanjaymalakar I can't reproduce the problem that you're reporting on master. In particular, I just ran your |
@kelloggm I just rechecked the commit of my I'll run on the |
Description
We are experiencing a non-termination issue where the Checker Framework inconsistently generates output files during Whole Program Inference (WPI). Specifically, the framework alternates between generating annotated files in one iteration and generating no files in the subsequent iteration. This pattern affects the 'build/whole-program-inference' directory, where output files are expected in each iteration but are absent in even-numbered iterations.
This is causing non-termination in the WPI script.
Diff between two iterations:
Test Project
benmouh_repro.zip
Steps to Reproduce
wpi.sh
and one folder containing the project's source code.build/whole-program-inference
directory after each iteration.wpi-iterations
directory. You can also check the inference results for each iteration there.The text was updated successfully, but these errors were encountered: