arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.11673cs.PL
收藏

超越结构化编程

Beyond Structured Programming

M. H. van Emden

摘要:

一个结构化程序的正确性,充其量也只是貌似合理。虽然这是一个进步相比,什么来之前,它低于验证的正确性。为了验证一个结构化的程序根据霍尔的方法之一是面临的问题,找到断言,以适应现有的代码。1971年,Dijkstra宣称这种验证模式太难了,无法实际使用,他建议证明和代码一起成长。一个方法这样做是独立出版的雷诺兹在1978年和范埃姆登在1979年。后者被进一步发展,以获得矩阵码的形式。这种形式的代码不仅避免了将断言适配到现有代码的需要,而且有助于发现从固定前提条件到达给定后置条件的算法。本文提出了一种键盘编辑版本的矩阵代码,使用E. W。迪杰斯特拉的谨慎命令作为起点。结果是用Floyd的方法而不是Hoare的方法作为出发点得到的。

英文摘要:

The correctness of a structured program is, at best, plausible. Though this is a step forward compared to what came before, it falls short of verified correctness. To verify a structured program according to Hoare's method one is faced with the problem of finding assertions to fit existing code. In 1971 this mode of verification was declared by Dijkstra as too hard to be of practical use---he advised that proof and code were to grow together. A method for doing this was independently published by Reynolds in 1978 and by van Emden in 1979. The latter was further developed to attain the form of matrix code. This form of code not only obviates the need of fitting assertions to existing code, but helps in discovering an algorithm that reaches a given postcondition from a fixed precondition. In this paper a keyboard-editable version of matrix code is presented that uses E.W. Dijkstra's guarded commands as starting point. The result is reached by using Floyd's method rather than Hoare's as starting point.

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

↑