Overcoming Memory Weakness with Unified Fairness

Parosh Aziz Abdulla,Mohamed Faouzi Atig,Adwait Godbole,Shankaranarayanan Krishna,Mihir Vahanwala
2023-05-28
Abstract:We consider the verification of liveness properties for concurrent programs running on weak memory models. To that end, we identify notions of fairness that preclude demonic non-determinism, are motivated by practical observations, and are amenable to algorithmic techniques. We provide both logical and stochastic definitions of our fairness notions and prove that they are equivalent in the context of liveness verification. In particular, we show that our fairness allows us to reduce the liveness problem (repeated control state reachability) to the problem of simple control state reachability. We show that this is a general phenomenon by developing a uniform framework which serves as the formal foundation of our fairness definition and can be instantiated to a wide landscape of memory models. These models include SC, TSO, PSO, (Strong/Weak) Release-Acquire, Strong Coherence, FIFO-consistency, and RMO.
Programming Languages,Logic in Computer Science
What problem does this paper attempt to address?