PROGRAMMING LANGUAGE CONSTRUCTS FOR WHICH IT IS IMPOSSIBLE TO OBTAIN GOOD HOARE AXIOM SYSTEMS

被引:70
作者
CLARKE, EM [1 ]
机构
[1] DUKE UNIV,DURHAM,NC 27706
关键词
coroutlnes; Hoare axioms; procedure parameters; relative completeness; soundness;
D O I
10.1145/322108.322121
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Hoare axiom systems for establishing partial correctness of programs may fail to be complete because of (a) incompleteness of the assertion language relative to the underlying interpretation or (b) inability of the assertion language to express the mvanants of loops Cook has shown that if there IS a complete proof system for the assertion language (l e all true formulas of the assertion language) and if the assertion language satisfies a natural expresstbthty condition then a sound and complete axiom system for a large subset of Algol may be devised We exhibit programming language constructs for which it ms impossible to obtain sound and complete sets of Hoare axioms even in this special sense of Cook's These constructs include (0 recursive procedures with procedure parameters in a programming language which uses static scope of ldenufiers and (u) coroutmes in a language which allows parameterless recurslve procedures Modifications of these constructs for which sound and complete systems of axioms may be obtained are also discussed. © 1979, ACM. All rights reserved.
引用
收藏
页码:129 / 147
页数:19
相关论文
共 18 条
[1]  
CLARKE EM, 1976, 76287 CORN U COMPTR
[2]  
CLARKE EM, 1976, CS197615 DUK U COMPT
[3]  
Clint M., 1973, Acta Informatica, V2, P50, DOI 10.1007/BF00571463
[4]  
COOK SA, 1975, 79 U TOR COMPTR SCI
[5]  
DEBAKKER JW, 1973, COMPLETENESS INDUCTI
[6]  
DONAHUE J, 3 APPROACHES RELIABL
[7]  
DONAHUE J, 1974, CSRG45 U TOR COMPTR
[8]  
GORELICK GA, 1975, 75 U TOR COMPTR SCI
[9]  
Hoare C. A. R., 1974, Acta Informatica, V3, P135, DOI 10.1007/BF00264034
[10]  
HOARE C A R, 1969, COMMUN ACM, V12, P322