-
Notifications
You must be signed in to change notification settings - Fork 48
Challenge 7: Safety of Methods for Atomic Types & Atomic Intrinsics #83
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
For the |
ReentrantLock
@suaviloquence That's correct, Kani doesn't track reference lifetimes, so a different tool would be necessary. |
I have made a start of attacking this challenge with VeriFast. So far, I have written (safety) specs for But maybe I'm missing something. A few things in the challenge confused me:
|
@carolynzech Could I perhaps get some feedback as to whether I’m on the right track? Good news: the refinement checker will allow me to deal with the macro problem. The verified version will have the macros expanded. This will be tedious work but not complex. |
On a not so related note, I was thinking that static analysis could be useful on the client side in terms of checking that atomics are used properly and don't cause undefined behaviour, but that is a whole other issue (not unrelated with the paper that my collaborators and I just got into TOPLAS for presentation at PLDI 2025). We should talk about that sometime. |
@btj I opened #357 to address your feedback about the challenge; feel free to suggest changes if you'd like. As for feedback on your proofs so far, @remi-delmas-3000 said he'd take a look. |
@patricklam Yes, sounds interesting! We're chatting about that bit in #357 re: verifying the absence of data races, so feel free to comment there if you have further thoughts. |
Link to PR: #82
The text was updated successfully, but these errors were encountered: