DocumentCode :
748971
Title :
Control Computations and the Design of Loop Control Structures
Author :
Pratt, Terrence W.
Author_Institution :
Department of Applied Mathematics and Computer Science, University of Virginia
Issue :
2
fYear :
1978
fDate :
3/1/1978 12:00:00 AM
Firstpage :
81
Lastpage :
89
Abstract :
The control computation for a loop in a program is that part of the program concerned with the initialization, incrementation, and testing of the variables that determine the flow of control into, through, and out of the loop. The elements of loop control computations are idenified and their role in structuring our understanding of loops is analyzed. It is argued, through examples drawn from a Pascal compiler, that the intelligibility of a loop is closely tied to the accessibility and intelligibility of the loop control computation. It is further argued, from an analysis of all the loops in this compiler, that most loop control computations fail in a few standard patterns, mostly concerned with the sequential processing of elements of data structures. In light of these results, common loop control statements are critiqued. It appears that better loop control structures than the while, repeat-until, and similar statement structures are possible and desirable, and some proposals for better structures are given.
Keywords :
Control computation; control structures; progm design; programing languages; proofs of programs; Centralized control; Computer science; Data structures; Failure analysis; Lighting control; Mathematics; Pattern analysis; Proposals; Testing; Control computation; control structures; progm design; programing languages; proofs of programs;
fLanguage :
English
Journal_Title :
Software Engineering, IEEE Transactions on
Publisher :
ieee
ISSN :
0098-5589
Type :
jour
DOI :
10.1109/TSE.1978.231478
Filename :
1702501
Link To Document :
بازگشت