Ghost Signals: Verifying Termination of Busy Waiting [chapter]

Tobias Reinhard, Bart Jacobs
2021 Lecture Notes in Computer Science  
AbstractPrograms 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 $$s$$ s is not set. The proof author further has to define a well-founded order on signals and to prove that if the looping thread
more » ... olds an obligation to set a signal $$s'$$ s ′ , then $$s'$$ s ′ is ordered above $$s$$ s . 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.
doi:10.1007/978-3-030-81688-9_2 fatcat:3b5gs66utjhvpnxrwcpqxhdylm