Effective abstractions for verification under relaxed memory models

被引:7
|
作者
Dan, Andrei [1 ]
Meshman, Yuri [2 ]
Vechev, Martin [1 ]
Yahav, Eran [2 ]
机构
[1] Swiss Fed Inst Technol, Zurich, Switzerland
[2] Technion, Haifa, Israel
关键词
Abstract interpretation; Relaxed memory models; EFFICIENT; PROGRAMS;
D O I
10.1016/j.cl.2016.02.003
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a new abstract interpretation based approach for automatically verifying concurrent programs running on relaxed memory models. Our approach is based on three key insights: (i) Although the behaviors of relaxed memory models (e.g., TSO and PSO) are naturally captured by store buffers, directly using such encodings substantially decreases the accuracy of program analysis due to shift operations on buffer contents. The scalability and accuracy of program analysis can be greatly improved by eliminating the expensive shifting of store buffer contents, and we present a new abstraction of the memory model that accomplishes this goal. (ii) The precision of the analysis can be further improved by an encoding of store buffer sizes using leveraged knowledge of the abstract interpretation domain. (iii) A novel source-to-source transformation that realizes the above two techniques makes it possible to use of state-of-the-art analyzers directly under sequential consistency (SC): given a program P and a relaxed memory model M, it produces a new program PM where the behaviors of P running on M are over-approximated by the behavior of PM running on SC. We implemented our approach and evaluated it on a set of finite and infinite-state concurrent algorithms under two memory models: Intel's x86 TSO and PSO. Experimental results indicate that our technique achieves better precision and efficiency than prior work: we can automatically verify algorithms with fewer fences, faster and with lower memory consumption. (C) 2016 Elsevier Ltd. All rights reserved.
引用
收藏
页码:62 / 76
页数:15
相关论文
共 50 条
  • [41] Assertional Reasoning about Data Races in Relaxed Memory Models
    Sanders, Beverly A.
    Kim, KyungHee
    [J]. PPOPP'08: PROCEEDINGS OF THE 2008 ACM SIGPLAN SYMPOSIUM ON PRINCIPLES AND PRACTICE OF PARALLEL PROGRAMMING, 2008, : 267 - 268
  • [42] Sound and Complete Monitoring of Sequential Consistency for Relaxed Memory Models
    Burnim, Jabob
    Sen, Koushik
    Stergiou, Christos
    [J]. TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, 2011, 6605 : 11 - 25
  • [43] Keys in formal verification: Abstractions for progress
    Pnueli, A
    [J]. ENGINEERING THEORIES OF SOFTWARE INTENSIVE SYSTEMS, 2005, 195 : 177 - 213
  • [44] Verification of Nonconflict of Supervisors Using Abstractions
    Pena, Patricia N.
    Cury, Jose E. R.
    Lafortune, Stephane
    [J]. IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 2009, 54 (12) : 2803 - 2815
  • [45] Verification of hybrid systems using abstractions
    Puri, A
    Varaiya, P
    [J]. HYBRID SYSTEMS II, 1995, 999 : 359 - 369
  • [46] Mathematical Models as Abstractions
    Zamecnik, Lukas
    [J]. ORGANON F, 2018, 25 (02) : 244 - 264
  • [47] An Operational Approach to Library Abstraction under Relaxed Memory Concurrency
    Singh, Abhishek Kr
    Lahav, Ori
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (POPL): : 1542 - 1572
  • [48] In search of effective design abstractions
    Robert France
    Bernhard Rumpe
    [J]. Software & Systems Modeling, 2004, 3 (1) : 1 - 3
  • [49] Verification of Concurrent Programs on Weak Memory Models
    Travkin, Oleg
    Wehrheim, Heike
    [J]. THEORETICAL ASPECTS OF COMPUTING - ICTAC 2016, 2016, 9965 : 3 - 24
  • [50] CheckFence: Checking consistency of concurrent data types on relaxed memory models
    Burckhardt, Sebastian
    Alur, Rajeev
    Martin, Milo M. K.
    [J]. ACM SIGPLAN NOTICES, 2007, 42 (06) : 12 - 21