paper

Ghost Signals: Verifying Termination of Busy-Waiting (Extended Version)

arXiv:2010.11762

Abstract

Programs for multiprocessor machines commonly perform busy waiting for synchronization. We propose the first separation logic for modularly verifying termination of such programs under fair scheduling. Our logic requires the proof author to associate a ghost signal with each busy-waiting loop and allows such loops to iterate while their corresponding signal is not set. The proof author further has to define a well-founded order on signals and to prove that if the looping thread holds an obligation to set a signal , then is ordered above . By using conventional shared state invariants to associate the state of ghost signals with the state of data structures, programs busy-waiting for arbitrary conditions over arbitrary data structures can be verified.

68 pages; 42 figures; Simplified logic by removing permissions and updated soundness proof in appendix. Simplified the logic's presentation. Added case studies to appendix.; This is the extended version of a paper which is to be published at CAV21