Compositional reasoning for non-multicopy atomic architectures

Author:

Coughlin Nicholas1,Winter Kirsten1,Smith Graeme1

Affiliation:

1. Defence Science and Technology Group, Australia; School of ITEE, The University of Queensland, Australia

Abstract

Rely/guarantee reasoning provides a compositional approach to reasoning about concurrent programs. However, such reasoning traditionally assumes a sequentially consistent memory model and hence is unsound on modern hardware in the presence of data races. In this paper, we present a rely/guarantee-based approach for non-multicopy atomic weak memory models, i.e., where a thread’s stores are not simultaneously propagated to all other threads and hence are not observable by other threads at the same time. Such memory models include those of the earlier versions of the ARM processor as well as the POWER processor. This paper builds on our approach to compositional reasoning for multicopy atomic architectures, i.e., where a thread’s stores are simultaneously propagated to all other threads. In that context, an operational semantics can be based on thread-local instruction reordering. We exploit this to provide an efficient compositional proof technique in which weak memory behaviour can be shown to preserve rely/guarantee reasoning on a sequentially consistent memory model. To achieve this, we introduce a side-condition, reordering interference freedom on each thread, reducing the complexity of weak memory to checks over pairs of reorderable instructions. In this paper we extend our approach to non-multicopy atomic weak memory models. We utilise the idea of reordering interference freedom between parallel components. This by itself would break compositionality but serves as a vehicle to derive a refined compatibility check between rely and guarantee conditions which takes into account the effects of propagations of stores that are only partial, i.e., not covering all threads. All aspects of our approach have been encoded and proved sound in Isabelle/HOL.

Publisher

Association for Computing Machinery (ACM)

Subject

Theoretical Computer Science,Software

Reference47 articles.

1. Parosh Aziz Abdulla , Mohamed Faouzi Atig , Ahmed Bouajjani , and Tuan Phong Ngo . 2017 . Context-Bounded Analysis for POWER. In Tools and Algorithms for the Construction and Analysis of Systems - 23rd International Conference , TACAS 2017 (Lecture Notes in Computer Science), Axel Legay and Tiziana Margaria (Eds.), Vol.  10206 . 56–74. DOI: https://doi.org/10.1007/978-3-662-54580-5_4 10.1007/978-3-662-54580-5_4 Parosh Aziz Abdulla, Mohamed Faouzi Atig, Ahmed Bouajjani, and Tuan Phong Ngo. 2017. Context-Bounded Analysis for POWER. In Tools and Algorithms for the Construction and Analysis of Systems - 23rd International Conference, TACAS 2017 (Lecture Notes in Computer Science), Axel Legay and Tiziana Margaria (Eds.), Vol.  10206. 56–74. DOI: https://doi.org/10.1007/978-3-662-54580-5_4

2. Parosh Aziz Abdulla , Mohamed Faouzi Atig , Bengt Jonsson , Magnus Lång , Tuan Phong Ngo , and Konstantinos Sagonas . 2019 . Optimal stateless model checking for reads-from equivalence under sequential consistency . Proc. ACM Program. Lang. 3, OOPSLA (2019), 150:1–150:29. DOI: https://doi.org/10.1145/3360576 10.1145/3360576 Parosh Aziz Abdulla, Mohamed Faouzi Atig, Bengt Jonsson, Magnus Lång, Tuan Phong Ngo, and Konstantinos Sagonas. 2019. Optimal stateless model checking for reads-from equivalence under sequential consistency. Proc. ACM Program. Lang. 3, OOPSLA (2019), 150:1–150:29. DOI: https://doi.org/10.1145/3360576

3. Herding Cats

4. Michael Barnett , Bor- Yuh Evan Chang , Robert DeLine , Bart Jacobs , and K. Rustan  M. Leino . 2005 . Boogie: A Modular Reusable Verifier for Object-Oriented Programs. In Formal Methods for Components and Objects , 4th International Symposium, FMCO 2005 (Lecture Notes in Computer Science), Frank S. de Boer, Marcello M. Bonsangue, Susanne Graf, and Willem P. de Roever (Eds.), Vol.  4111 . Springer, 364–387. DOI: https://doi.org/10.1007/1 1804192_17 10.1007/11804192_17 Michael Barnett, Bor-Yuh Evan Chang, Robert DeLine, Bart Jacobs, and K. Rustan M. Leino. 2005. Boogie: A Modular Reusable Verifier for Object-Oriented Programs. In Formal Methods for Components and Objects, 4th International Symposium, FMCO 2005 (Lecture Notes in Computer Science), Frank S. de Boer, Marcello M. Bonsangue, Susanne Graf, and Willem P. de Roever (Eds.), Vol.  4111. Springer, 364–387. DOI: https://doi.org/10.1007/11804192_17

5. Library abstraction for C/C++ concurrency

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3