跳到主要导航 跳到搜索 跳到主要内容

Modelling and Verifying Programs Under the Total Store Order Memory Model in an Algebraic Semantics Style

  • Lili Xiao
  • , Huibiao Zhu*
  • , Jonathan P. Bowen
  • , Sini Chen
  • *此作品的通讯作者
  • Donghua University
  • London South Bank University
  • Southwest University
  • East China Normal University

科研成果: 书/报告/会议事项章节章节同行评审

摘要

Modelling and verification of multi-threaded programs are difficult since one must consider all the ways that instructions in different threads can be interleaved. Modern hardware architectures and mainstream programming languages employ relaxed memory models for efficiency purposes, and the additional interleavings from them make the modelling and verification more complex. Total Store Order (TSO) is a widely used relaxed memory model in SPARC implementations and x86 architecture. In this paper, we are committed to proposing a lightweight method for formally modelling and verifying programs under the TSO memory model. Above all, we apply Unifying Theories of Programming (UTP) to investigate a set of algebraic laws, which can dynamically generate configuration sequences of programs under TSO. At the meantime, the information of each configuration is recorded. During this process, we define three properties (including Write-Read Reordering, Read-after-Write Elimination and Barrier) related to the unique features of TSO, and check whether the properties are satisfied. The algebraic laws are implemented in the rewriting engine Maude, and the verification is also conducted in Maude. The verification results show that the properties are all in line with our expectations.

源语言英语
主期刊名Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
出版商Springer Science and Business Media Deutschland GmbH
206-225
页数20
DOI
出版状态已出版 - 2024

出版系列

姓名Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
LNCS 14781
ISSN(印刷版)0302-9743
ISSN(电子版)1611-3349

指纹

探究 'Modelling and Verifying Programs Under the Total Store Order Memory Model in an Algebraic Semantics Style' 的科研主题。它们共同构成独一无二的指纹。

引用此