theorem
Miri.Concurrency.GlobalStateVerification.single_thread_fence_is_noop
(state : GlobalState)
(threads : ThreadManager)
(ordering : AtomicFenceOrd)
(h : state.multiThreaded = false)
:
When Miri has not enabled multithreaded tracking, its synchronization wrapper skips the fence operation and leaves all clocks and SC state intact.
theorem
Miri.Concurrency.GlobalStateVerification.single_thread_sync_operation_is_skipped
{External Error Value : Type}
(state : GlobalState)
(threads : ThreadManager)
(external : External)
(body : VectorIdx → ThreadClockSet → External → SyncOperationBodyResult External Error Value)
(h : state.multiThreaded = false)
:
The source synchronized-operation hook skips both its callback and clock updates when Miri has not entered multithreaded mode.