Application of the goal invariant to the structuring of programs

  • Authors:
  • Janusz W. Laski

  • Affiliations:
  • Oakland University, Rochester, Michigan

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1982

Quantified Score

Hi-index 0.00

Visualization

Abstract

Functional rather than structural approach to conversion of a two-exit loop into a while loop is presented. The functions computed by the corresponding exits are formally specified and their union is analyzed to reveal the cause of its loop nonrealizability. The latter is removed by either redefining the domain/range of the constituent functions or by inclusion of the loop postludes into the loop specification. None of these methods changes the functionality of the original program because no new variables are introduced.