The trouble with for-loop invariants
暂无分享,去创建一个
In this paper we discuss some of the problems in constructing and utilizing loop invariants for For-loops. Another kind of assertion, the loop post-invariant, is offered as an alternative to the loop invariant in designing, documenting and proving the correctness of For-loops.
[1] D. Evelyn,et al. Proving Programs Correct , 1979 .
[2] William J. Collins. Intermediate Pascal Programming: A Case Study Approach , 1985 .
[3] David Gries,et al. The Science of Programming , 1981, Text and Monographs in Computer Science.
[4] Norman E. Gibbs,et al. Principles of data structures and algorithms with Pascal , 1987 .