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 条
  • [11] View-Based Owicki-Gries Reasoning for Persistent x86-TSO
    Bila, Eleni Vafeiadi
    Dongol, Brijesh
    Lahav, Ori
    Raad, Azalea
    Wickerson, John
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, ESOP 2022, 2022, 13240 : 234 - 261
  • [12] On Verifying Causal Consistency
    Bouajjani, Ahmed
    Enea, Constantin
    Guerraoui, Rachid
    Hamza, Jad
    [J]. ACM SIGPLAN NOTICES, 2017, 52 (01) : 626 - 638
  • [13] A CALCULUS OF DURATIONS
    CHAOCHEN, Z
    HOARE, CAR
    RAVN, AP
    [J]. INFORMATION PROCESSING LETTERS, 1991, 40 (05) : 269 - 276
  • [14] Compositional Reasoning for Non-multicopy Atomic Architectures
    Coughlin, Nicholas
    Winter, Kirsten
    Smith, Graeme
    [J]. FORMAL ASPECTS OF COMPUTING, 2023, 35 (02)
  • [15] Rely/Guarantee Reasoning for Multicopy Atomic Weak Memory Models
    Coughlin, Nicholas
    Winter, Kirsten
    Smith, Graeme
    [J]. FORMAL METHODS, FM 2021, 2021, 13047 : 292 - 310
  • [16] Dalvandi S., 2020, LIPIcs, DOI [DOI 10.4230/LIPICS.ECOOP.2020, 10.4230/LIPIcs.ECOOP.2020.11, DOI 10.4230/LIPICS.ECOOP.2020.11]
  • [17] Integrating Owicki-Gries for C11-Style Memory Models into Isabelle/HOL
    Dalvandi, Sadegh
    Dongol, Brijesh
    Doherty, Simon
    Wehrheim, Heike
    [J]. JOURNAL OF AUTOMATED REASONING, 2022, 66 (01) : 141 - 171
  • [18] de Leon H.P., 2018, FMCAD, P1, DOI DOI 10.23919/FMCAD.2018.8603021
  • [19] Views: Compositional Reasoning for Concurrent Programs
    Dinsdale-Young, Thomas
    Birkedal, Lars
    Gardner, Philippa
    Parkinson, Matthew
    Yang, Hongseok
    [J]. ACM SIGPLAN NOTICES, 2013, 48 (01) : 287 - 299
  • [20] Unifying Operational Weak Memory Verification: An Axiomatic Approach
    Doherty, Simon
    Dalvandi, Sadegh
    Dongol, Brijesh
    Wehrheim, Heike
    [J]. ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2022, 23 (04)