A Rely-Guarantee-Based Simulation for Verifying Concurrent Program Transformations

被引:0
|
作者
Liang, Hongjin [1 ]
Feng, Xinyu [1 ]
Fu, Ming [1 ]
机构
[1] Univ Sci & Technol China, Sch Comp Sci & Technol, Hefei 230026, Anhui, Peoples R China
关键词
Concurrency; Program Transformation; Rely-Guarantee Reasoning; Simulation; ABSTRACTION; PARALLEL;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Verifying program transformations usually requires proving that the resulting program (the target) refines or is equivalent to the original one (the source). However, the refinement relation between individual sequential threads cannot be preserved in general with the presence of parallel compositions, due to instruction reordering and the different granularities of atomic operations at the source and the target. On the other hand, the refinement relation defined based on fully abstract semantics of concurrent programs assumes arbitrary parallel environments, which is too strong and cannot be satisfied by many well-known transformations. In this paper, we propose a Rely-Guarantee-based Simulation (RGSim) to verify concurrent program transformations. The relation is parametrized with constraints of the environments that the source and the target programs may compose with. It considers the interference between threads and their environments, thus is less permissive than relations over sequential programs. It is compositional w.r.t. parallel compositions as long as the constraints are satisfied. Also, RGSim does not require semantics preservation under all environments, and can incorporate the assumptions about environments made by specific program transformations in the form of rely/guarantee conditions. We use RGSim to reason about optimizations and prove atomicity of concurrent objects. We also propose a general garbage collector verification framework based on RGSim, and verify the Boehm et al. concurrent mark-sweep GC.
引用
收藏
页码:455 / 468
页数:14
相关论文
共 50 条
  • [41] A framework for assignment motion based program transformations
    不详
    INTERACTING CODE MOTION TRANSFORMATIONS: THEIR IMPACT AND THEIR COMPLEXITY, 1999, 1539 : 153 - 197
  • [42] Rely-guarantee bound analysis of parameterized concurrent shared-memory programsWith an application to proving that non-blocking algorithms are bounded lock-free
    Thomas Pani
    Georg Weissenbacher
    Florian Zuleger
    Formal Methods in System Design, 2021, 57 : 270 - 302
  • [43] Rely-guarantee bound analysis of parameterized concurrent shared-memory programs With an application to proving that non-blocking algorithms are bounded lock-free
    Pani, Thomas
    Weissenbacher, Georg
    Zuleger, Florian
    FORMAL METHODS IN SYSTEM DESIGN, 2021, 57 (02) : 270 - 302
  • [44] The simulation of the welding process based on concurrent engineering
    Wang, S
    Li, XH
    Xiao, YP
    Chen, GH
    PROGRESS OF MACHINING TECHNOLOGY, 2004, : 996 - 1000
  • [45] Exploring and verifying BIM-based energy simulation for building operations
    Li, Hong Xian
    Ma, Zhiliang
    Liu, Hexu
    Wang, Jun
    Al-Hussein, Mohamed
    Mills, Anthony
    ENGINEERING CONSTRUCTION AND ARCHITECTURAL MANAGEMENT, 2020, 27 (08) : 1679 - 1702
  • [46] Simulation Based Verification of Concurrent Processing on Security Devices
    Talamo, Maurizio
    Galinium, Maulahikmah
    Schunck, Christian H.
    Arcieri, Franco
    2013 7TH ANNUAL IEEE INTERNATIONAL SYSTEMS CONFERENCE (SYSCON 2013), 2013, : 82 - 87
  • [47] Simulation of product concurrent development process based on DSM
    College of Mechanical and Electrical Engineering, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China
    Nanjing Hangkong Hangtian Daxue Xuebao, 2007, 1 (88-93):
  • [48] Simulation-based validation of protocols for concurrent systems
    Ravindran, K
    Kwiat, KA
    Ding, G
    GLOBECOM 2004: IEEE GLOBAL TELECOMMUNICATIONS CONFERENCE WORKSHOPS, 2004, : 331 - 340
  • [49] Model and Method for Verifying Asynchronous Program Based on Communication-free Petri Net
    Wu Z.-W.
    Li G.-Q.
    Ruan Jian Xue Bao/Journal of Software, 2023, 34 (08): : 3674 - 3685
  • [50] Survey on Interactive Theorem Proving Based Concurrent Program Verification
    Wang Z.-Y.
    Wu S.-S.
    Cao Q.-X.
    Ruan Jian Xue Bao/Journal of Software, 2024, 35 (09):