Rely-Guarantee Reasoning for Causally Consistent Shared Memory

被引:2
作者
Lahav, Ori [1 ]
Dongol, Brijesh [2 ]
Wehrheim, Heike [3 ]
机构
[1] Tel Aviv Univ, Tel Aviv, Israel
[2] Univ Surrey, Guildford, Surrey, England
[3] Carl von Ossietzky Univ Oldenburg, Oldenburg, Germany
来源
COMPUTER AIDED VERIFICATION, CAV 2023, PT I | 2023年 / 13964卷
基金
欧洲研究理事会; 以色列科学基金会; 英国工程与自然科学研究理事会;
关键词
RELY/GUARANTEE;
D O I
10.1007/978-3-031-37706-8_11
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Rely-guarantee (RG) is a highly influential compositional proof technique for concurrent programs, which was originally developed assuming a sequentially consistent shared memory. In this paper, we first generalize RG to make it parametric with respect to the underlying memory model by introducing an RG framework that is applicable to any model axiomatically characterized by Hoare triples. Second, we instantiate this framework for reasoning about concurrent programs under causally consistent memory, which is formulated using a recently proposed potential-based operational semantics, thereby providing the first reasoning technique for such semantics. The proposed program logic, which we call Piccolo, employs a novel assertion language allowing one to specify ordered sequences of states that each thread may reach. We employ Piccolo for multiple litmus tests, as well as for an adaptation of Peterson's algorithm for mutual exclusion to causally consistent memory.
引用
收藏
页码:206 / 229
页数:24
相关论文
共 48 条
  • [1] Abdulla P.A., 2016, CONCUR. LIPIcs, V59, DOI [10.4230/LIPIcs.CONCUR.2016.5, DOI 10.4230/LIPICS.CONCUR.2016.5]
  • [2] Verifying Reachability for TSO Programs with Dynamic Thread Creation
    Abdulla, Parosh Aziz
    Atig, Mohamed Faouzi
    Bouajjani, Ahmed
    Kumar, K. Narayan
    Saivasan, Prakash
    [J]. NETWORKED SYSTEMS, NETYS 2022, 2022, 13464 : 283 - 300
  • [3] Deciding Reachability under Persistent x86-TSO
    Abdulla, Parosh Aziz
    Atig, Mohamed Faouzi
    Bouajjani, Ahmed
    Kumar, K. Narayan
    Saivasan, Prakash
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5 (POPL):
  • [4] Verification of Programs under the Release-Acquire Semantics
    Abdulla, Parosh Aziz
    Arora, Jatin
    Atig, Mohamed Faouzi
    Krishna, Shankaranarayanan
    [J]. PROCEEDINGS OF THE 40TH ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION (PLDI '19), 2019, : 1117 - 1132
  • [5] A LOAD-BUFFER SEMANTICS FOR TOTAL STORE ORDERING
    Abdulla, Parosh Aziz
    Atig, Mohamed Faouzi
    Bouajjani, Ahmed
    Tuan Phong Ngo
    [J]. LOGICAL METHODS IN COMPUTER SCIENCE, 2018, 14 (01)
  • [6] AHAMAD M, 1995, DISTRIB COMPUT, V9, P37, DOI 10.1007/BF01784241
  • [7] Ogre and Pythia: An Invariance Proof Method for Weak Consistency Models
    Alglave, Jade
    Cousot, Patrick
    [J]. ACM SIGPLAN NOTICES, 2017, 52 (01) : 3 - 18
  • [8] Herding Cats: Modelling, Simulation, Testing, and Data Mining for Weak Memory
    Alglave, Jade
    Maranget, Luc
    Tautschnig, Michael
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2014, 36 (02):
  • [9] Apt Krzysztof R., 2009, Verification of Sequential and Concurrent Programs, DOI [DOI 10.1007/978-1-84882-745-5, 10.1007/978-1-84882-745-5]
  • [10] ROBUSTNESS AGAINST TRANSACTIONAL CAUSAL CONSISTENCY
    Beillahi, Sidi Mohamed
    Bouajjani, Ahmed
    Enea, Constantin
    [J]. LOGICAL METHODS IN COMPUTER SCIENCE, 2021, 17 (01) : 12:1 - 12:42