Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

A generalized control structure and its formal definition

Published: 01 August 1983 Publication History

Abstract

A new programming language control structure as well as an improved approach to a formal definition of programming languages are presented. The control structure can replace both iteration and conditional structures. Because it is a semantic generalization of those structures, a single statement using the new control structure can implement the functions of loops, conditionals, and also programs that would require several conventional constructs. As a consequence of this increased capability, it is possible to write algorithms that are simpler, more efficient, and more clearly correct than those that can be written with earlier structured-programming control structures. In order to provide a precise definition of the new constructs, a new version of relational semantics, called LD-relations is presented. An algebra of these relations is developed and used to define the meaning of the new constructs. A short discussion of program development and the history of control structures is included.

References

[1]
ACM statement on ADA. Comm. ACM 25, 2 (Feb. 1982),
[2]
de Bruijn, N.G. Private communication.
[3]
Dijkstra, E.W. A Discipline of Programming. Prentice-Hall, Englewood Cliffs, N.J., 1976.
[4]
Forthofer, M.J. Extending PDL to include a search superstructure. Tech. Rept. FSD 81-0010, Federal Systems Div., IBM Corp., Bethesda, Md., Apr. 1981.
[5]
Gries, D. The Science of Programming. Springer-Verlag, New York, N.Y., 1981.
[6]
Linger, R.C., Mills, H.D., and Witt, B.I. Structured Programming Theory and Practice. Addison-Wesley, Reading, Mass., (1979).
[7]
Maddux, R.A. A study of computer program structure. Ph.d. dissertation, Dept. Systems Design, Univ. Waterloo, Canada; 1975.
[8]
Mills, H.D. Functional semantics for sequential programs. Prec. IFIP 1980, North-Holland, Amsterdam.
[9]
Mills, H.D. The new math of computer programming. Comm. ACM 18, 1 (Jan, 1975}, 43-48.
[10]
Parnas, D.L An alternative control structure and its formal definition. IBM Tech. Rept. TR FSD-81-0012, IBM Corp., Bethesda, Md, 1981.
[11]
Stanat, D.F., McAllister, D.F. Discrete Mathematics in Computer Science. Prentice-Hall, Englewood Cliffs, N.J., 1977.

Cited By

View all
  • (2017)Sketching Computation with Stochastic Processing EnginesACM Journal on Emerging Technologies in Computing Systems10.1145/300765213:3(1-19)Online publication date: 14-Apr-2017
  • (2017)VLSI Architectures for the Restricted Boltzmann MachineACM Journal on Emerging Technologies in Computing Systems10.1145/300719313:3(1-19)Online publication date: 12-May-2017
  • (2017)Energy-Efficient and Improved Image Recognition with Conditional Deep LearningACM Journal on Emerging Technologies in Computing Systems10.1145/300719213:3(1-21)Online publication date: 9-Feb-2017
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Communications of the ACM
Communications of the ACM  Volume 26, Issue 8
Aug. 1983
50 pages
ISSN:0001-0782
EISSN:1557-7317
DOI:10.1145/358161
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 August 1983
Published in CACM Volume 26, Issue 8

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)111
  • Downloads (Last 6 weeks)19
Reflects downloads up to 09 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2017)Sketching Computation with Stochastic Processing EnginesACM Journal on Emerging Technologies in Computing Systems10.1145/300765213:3(1-19)Online publication date: 14-Apr-2017
  • (2017)VLSI Architectures for the Restricted Boltzmann MachineACM Journal on Emerging Technologies in Computing Systems10.1145/300719313:3(1-19)Online publication date: 12-May-2017
  • (2017)Energy-Efficient and Improved Image Recognition with Conditional Deep LearningACM Journal on Emerging Technologies in Computing Systems10.1145/300719213:3(1-21)Online publication date: 9-Feb-2017
  • (2017)SPARCNetACM Journal on Emerging Technologies in Computing Systems10.1145/300544813:3(1-32)Online publication date: 12-May-2017
  • (2017)PPUACM Journal on Emerging Technologies in Computing Systems10.1145/299050213:3(1-29)Online publication date: 14-Apr-2017
  • (2017)Defense in Depth Formulation and Usage in Dynamic Access ControlProceedings of the 6th International Conference on Principles of Security and Trust - Volume 1020410.1007/978-3-662-54455-6_12(253-274)Online publication date: 22-Apr-2017
  • (2017)Use of Tabular Expressions for Refinement AutomationModel and Data Engineering10.1007/978-3-319-66854-3_13(167-182)Online publication date: 6-Sep-2017
  • (2015)Nondeterministic semantics of compound diagramsDiscrete and Continuous Dynamical Systems - Series S10.3934/dcdss.2015.8.13578:6(1357-1371)Online publication date: Dec-2015
  • (2015)Stateflow to Tabular ExpressionsProceedings of the 6th International Symposium on Information and Communication Technology10.1145/2833258.2833285(312-319)Online publication date: 3-Dec-2015
  • (2015)Formal verification of function blocks applied to IEC 61131-3Science of Computer Programming10.1016/j.scico.2015.10.005113:P2(149-190)Online publication date: 1-Dec-2015
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media