Automatic Structuring of Programs
- 1 March 1975
- journal article
- Published by IBM in IBM Journal of Research and Development
- Vol. 19 (2) , 181-194
- https://doi.org/10.1147/rd.192.0181
Abstract
A method is described that allows the translation of a traditionally written (unstructured) program into a set of top-down structured, semantically founded, GoTo-free modules. The method reveals noont ly the logic of a given program in a most natural way, but it also reduces code duplication to a minimum. It is further shown how the obtained structured program can be mapped back into a GOTO program in such a way that all GOTOS are backwards branches and their number is minimal. The connection between recursively and iteratively structured programs is demonstrated using the WHILE, DO FOREVER, and multilevel EXIT statements. Extensions of the method show the structuring of source programs containingb lock structures and subroutines.Keywords
This publication has 0 references indexed in Scilit: