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

减少面向验证的命令式语言中的注释数量

Reducing the Number of Annotations in a Verification-oriented Imperative Language

Guido de Caso, Diego Garbervetsky, Daniel Gorín

摘要:

软件自动验证是一个非常活跃的研究领域,在理论和实践方面都取得了巨大的进展。最近,大量的研究工作已经投入到将这些技术应用于主流程序设计语言之上。这些语言通常提供强大的功能,如反射,别名和多态性,这对从业者来说很方便,但相比之下,使验证成为一个真正的挑战。在这项工作中,我们提出了害虫,一个简单的实验,while风格,多过程,命令式程序设计语言的设想与验证作为其主要目标之一。这种语言迫使开发人员同时考虑实现算法所需的语句和证明其正确性所需的断言。为了帮助程序员,我们提出了几种技术,以减少成功验证他们的程序所需的注释的数量和复杂性。特别是,我们表明,高层次的迭代结构可以减轻需要提供复杂的循环注释。

英文摘要:

Automated software verification is a very active field of research which has made enormous progress both in theoretical and practical aspects. Recently, an important amount of research effort has been put into applying these techniques on top of mainstream programming languages. These languages typically provide powerful features such as reflection, aliasing and polymorphism which are handy for practitioners but, in contrast, make verification a real challenge. In this work we present Pest, a simple experimental, while-style, multiprocedural, imperative programming language which was conceived with verifiability as one of its main goals. This language forces developers to concurrently think about both the statements needed to implement an algorithm and the assertions required to prove its correctness. In order to aid programmers, we propose several techniques to reduce the number and complexity of annotations required to successfully verify their programs. In particular, we show that high-level iteration constructs may alleviate the need for providing complex loop annotations.

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

↑