You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the from_ptr methods a safety condition is that the *const T is alive for the entire lifetime 'a of the returned reference. Is that something currently expressible with kani, or would a different tool be necessary here?
carolynzech
changed the title
Challenge 7: Safety of Methods for Atomic Types and ReentrantLock
Challenge 7: Safety of Methods for Atomic Types & Atomic Intrinsics
Dec 2, 2024
But maybe I'm missing something. A few things in the challenge confused me:
The challenge asks to "verify" the intrinsics. What do you mean by that?
The challenge asks to verify that atomic_store does not panic. But this seems to contradict the statement at the top that "The goal of this challenge is to verify that these methods are safe. [1]", where [1] says that "safe" means absence of UB. Panicking is not UB. VeriFast does not verify absence of panics, and adding a precondition to AtomicBool::store would run counter to the goal of verifying semantic well-typedness, i.e. safety in the presence of arbitrary non-unsafe client code.
Link to PR: #82
The text was updated successfully, but these errors were encountered: