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
来源
POPL 12: PROCEEDINGS OF THE 39TH ANNUAL ACM SIGPLAN-SIGACT SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES | 2012年
关键词
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 条
[21]   Geant4 based Monte Carlo simulation for verifying the modified sum-peak method [J].
Aso, Tsukasa ;
Ogata, Yoshimune ;
Makino, Ryuta .
APPLIED RADIATION AND ISOTOPES, 2018, 134 :147-150
[22]   A simulation-based framework for concurrent safety and productivity improvement in construction projects [J].
Baniassadi, Farshid ;
Alvanchi, Amin ;
Mostafavi, Ali .
ENGINEERING CONSTRUCTION AND ARCHITECTURAL MANAGEMENT, 2018, 25 (11) :1501-1515
[23]   Relational Semantics for Effect-Based Program Transformations: Higher-Order Store [J].
Benton, Nick ;
Kennedy, Andrew ;
Beringer, Lennart ;
Hofmann, Martin .
PPDP'09: PROCEEDINGS OF THE 11TH INTERNATIONAL ACM SIGPLAN SYMPOSIUM ON PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING, 2009, :301-311
[24]   Research on Electric Braking Simulation Program of Rail Transit Based on MATLAB Simulation Technology [J].
Jia, Yajuan ;
Wang, Juanjuan ;
Shang, Lisha .
PROCEEDINGS OF 2020 IEEE INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND INFORMATION SYSTEMS (ICAIIS), 2020, :494-499
[25]   Educational Simulation Program Based on Korean Triage and Acuity Scale [J].
Jang, Jae-Hyuk ;
Kim, Sang Suk ;
Kim, Sunghee .
INTERNATIONAL JOURNAL OF ENVIRONMENTAL RESEARCH AND PUBLIC HEALTH, 2020, 17 (23) :1-11
[26]   Targeting Simulation-Based Assessment for the Pediatric Milestones: A Survey of Simulation Experts and Program Directors [J].
Mallory, Leah A. ;
Calaman, Sharon ;
White, Marjorie Lee ;
Doughty, Cara ;
Mangold, Karen ;
Lopreiato, Joseph ;
Auerbach, Marc ;
Chang, Todd P. .
ACADEMIC PEDIATRICS, 2016, 16 (03) :290-297
[27]   Simulation of Print-Scan Transformations for Face Images based on Conditional Adversarial Networks [J].
Mitkovski, A. ;
Merkle, J. ;
Rathgeb, C. ;
Tams, B. ;
Bernardo, K. ;
Haryanto, N. E. ;
Busch, C. .
2020 INTERNATIONAL CONFERENCE OF THE BIOMETRICS SPECIAL INTEREST GROUP (BIOSIG), 2020, P-306
[28]   A novel simulation of AC magnetic contactor based on electromagnetic transients program [J].
Kanokbannakorn, Weerawoot ;
Saengsuwan, Trin ;
Sirisukprasert, Siriroj .
IEEJ TRANSACTIONS ON ELECTRICAL AND ELECTRONIC ENGINEERING, 2014, 9 (02) :144-150
[29]   A hardware-in-the-loop simulation program for ground-based radar [J].
Lam, Eric P. ;
Black, Dennis W. ;
Ebisu, Jason S. ;
Magallon, Julianna .
MODELING AND SIMULATION FOR DEFENSE SYSTEMS AND APPLICATIONS VI, 2011, 8060
[30]   Evaluation of a Simulation-based Program for Medic Cognitive Skills Training [J].
Lai, Fuji ;
Entin, Eileen B. ;
Brunye, Tad ;
Sidman, Jason ;
Entin, Elliot E. .
MEDICINE MEETS VIRTUAL REALITY 15: IN VIVO, IN VITRO, IN SILICO: DESIGNING THE NEXT IN MEDICINE, 2007, 125 :259-+