-
Notifications
You must be signed in to change notification settings - Fork 19
[checked-c-convert] Porting Tool Updates #638
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
Comments
Comment from @Machiry: This will fix a few regressions caused by the recent commits. We also fix the resolution of function types by following the function subtyping rules as discussed here: https://gist.github.com/Machiry/962bf8c24117bc5f56a31598e6782100 |
Comment from @Machiry:
We do not have a specific design document for this pull request. But, we tried to faithfully implement the highlevel idea as described in the paper (Section 5.3 of https://www.microsoft.com/en-us/research/uploads/prod/2019/05/checkedc-post2019.pdf) If you see the Section 5.3 of the paper, there depending on how a parameter to a function is used by the callers and used inside the callee, we use However, our old implementation had inconsistencies in inferring checked types of the function parameters and returns. Specifically, when a function do not have a corresponding declaration e.g., We changed this so that irrespective of whether a function has a explicit declaration or not we always maintain two sets of constraint variables for parameters and returns. Function SubtypingWe introduced the support for
Agree. I converted the tests to lit and added them to CheckedCRewriter directory.
Sorry, I wasn't aware of this. I fixed them.
Actually current implementation is faster. This is mainly because of a single line change (Thanks to @rchyena) in
to
Numbers for Icecast :New
Old
In general the current version of the tool is sufficiently fast, for |
Comment from @Machiry:
✅ Fixed.
✅ Fixed.
✅ Fixed. I used a spell checker this time :)
✅ Fixed. I used a format checker this time.
📚 Created one. |
This issue was copied from checkedc/checkedc-clang#642
This PR adds several new features to checked-c-convert, including NT_array detection.
The text was updated successfully, but these errors were encountered: