arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.04406cs.PLcs.LO
收藏

一种用于弱记忆模型程序验证的广谱语言

A wide-spectrum language for verification of programs on weak memory models

Robert J. Colvin, Graeme Smith

摘要:

现代处理器部署了各种弱内存模型,出于效率原因,这些模型可能(看起来)以不同于程序文本指定的顺序执行指令。指令重新排序的后果可能是复杂和微妙的,并且可能影响确保正确性。以前的工作弱内存模型的语义集中在汇编级程序的行为。在本文中,我们利用这项工作,提取一些一般原则的指令重新排序,并将这些原则应用到一个广谱的语言,包括抽象数据类型,以及低级别的汇编代码。其目标是支持推理的实现数据结构的现代处理器相对于一个抽象的规范。具体来说,我们定义了一个操作语义,从中我们得出的程序细化的一些属性,并在重写引擎Maude作为一个模型检查工具的语义编码。该工具是用来验证语义对一组石蕊测试(小汇编程序)的行为在硬件上运行,也模型检查实现的数据结构从文献对他们的抽象规范。

英文摘要:

Modern processors deploy a variety of weak memory models, which for efficiency reasons may (appear to) execute instructions in an order different to that specified by the program text. The consequences of instruction reordering can be complex and subtle, and can impact on ensuring correctness. Previous work on the semantics of weak memory models has focussed on the behaviour of assembler-level programs. In this paper we utilise that work to extract some general principles underlying instruction reordering, and apply those principles to a wide-spectrum language encompassing abstract data types as well as low-level assembler code. The goal is to support reasoning about implementations of data structures for modern processors with respect to an abstract specification. Specifically, we define an operational semantics, from which we derive some properties of program refinement, and encode the semantics in the rewriting engine Maude as a model-checking tool. The tool is used to validate the semantics against the behaviour of a set of litmus tests (small assembler programs) run on hardware, and also to model check implementations of data structures from the literature against their abstract specifications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑