To use or not to use the goto statement: Programming styles viewed from Hoare Logic

作者: Hidetaka Kondoh , Kokichi Futatsugi

DOI: 10.1016/J.SCICO.2005.05.003

关键词:

摘要: There has been a vast amount of debate on the goto issue: i.e., issue whether to use or not statement initiated by Dijkstra in his famous Letter Editor CACM and proposal 'Structured Programming'. However, except for goto-less programming style Mills based theoretical results expressibility control flow diagrams, there have hardly any scientific accounts this from Dijkstra's own viewpoint correctness programs. In work, we reconsider seemingly old-tired Hoare Logic, most well-known framework proof We show that, two cases, with-goto styles are more suitable proving Logic than corresponding without-goto ones; that is, each requires complicated assertions proof-outline one. The first case is escaping nested loops second expressing state transitions through finite machine model. Hence, both can be justified Logic.

参考文章(71)
James A. Whittaker, Shirley A. Becker, Cleanroom Software Engineering Practices ,(1996)
Harlan D. Mills, Princples of Computer Programming Allyn & Bacon, Inc.. ,(1987)
David Gries, On Structured Programming Springer, New York, NY. pp. 70- 74 ,(1978) , 10.1007/978-1-4612-6315-9_7
Carmen J. Trammell, Jesse H. Poore, Cleanroom Software Engineering: A Reader ,(1996)
K Mani Chandy, None, Current Trends in Programming Methodology: Software Specification and Design Prentice Hall Professional Technical Reference. ,(1977)
Bertrand Meyer, Object-oriented software construction (2nd ed.) Prentice-Hall, Inc.. ,(1997)
J. N. Buxton, Software engineering techniques Nato Science Committee. ,(1970)
Victor R. Basili, F. Terry Baker, Tutorial on structured programming, integrated practices IEEE Computer Society Press. ,(1981)