skip to main content
article
Open Access

Generalizing specifications for uniformly implemented loops

Published:02 January 1985Publication History
Skip Abstract Section

Abstract

The problem of generalizing functional specifications for while loops is considered. This problem occurs frequently when trying to verify that an initialized loop satisfies some functional specification, i.e., produces outputs which are some function of the program inputs.

The notion of a valid generalization of a loop specification is defined. A particularly simple valid generalization, a base generalization, is discussed. A property of many commonly occurring while loops, that of being uniformly implemented, is defined. A technique is presented which exploits this property in order to systematically achieve a valid generalization of the loop specification. Two classes of uniformly implemented loops that are particularly susceptible to this form of analysis are defined and discussed. The use of the proposed technique is illustrated with a number of applications. Finally, an implication of the concept of uniform loop implementation for the validation of the obtained generalization is explained.

References

  1. 1 BASILI, V.R., AND NOONAN, R.E. A comparison of the axiomatic and functional models of structured programming. IEEE Trans. Softw. Eng. SE-6 (Sept. 1980), 454-465.Google ScholarGoogle Scholar
  2. 2 BASU, S. A note on synthesis of inductive assertions. IEEE Trans. Softw. Eng. SE-6 (Jan. 1980), 32-39.Google ScholarGoogle Scholar
  3. 3 BASU, S.K., AND MISRA, J. Proving loop programs. IEEE Trans. Softw. Eng. SE-1 (March 1975), 76-86.Google ScholarGoogle Scholar
  4. 4 BASU, S.K., AND MISRA, J. Some classes of naturally provable programs. In Proceedings of the 2nd International Conference on Software Engineering (San Francisco, Oct. 13-15). IEEE, New York, 1976, pp. 400-406. Google ScholarGoogle Scholar
  5. 5 DUNLOP, D., AND BASILI, V.R. A comparative analysis of functional correctness. Comput. Surv. 14, 2 (June 1982), 229-244. Google ScholarGoogle Scholar
  6. 6 GRIES, D. Is sometime ever better than alway? ACM Trans. Program. Lang. Syst. I (Oct. 1979), 258-265. Google ScholarGoogle Scholar
  7. 7 HOARE, C.A.R. An axiomatic basis for computer programming. Commun. ACM 12 (Oct. 1969), 576-583. Google ScholarGoogle Scholar
  8. 8 MILLS, H.D. Mathematical foundations for structured programming. Rept. FSC 72-6012, IBM Federal Systems Division, Bethesda, MD, 1972.Google ScholarGoogle Scholar
  9. 9 MILLS, H.D. The new math of computer programming. Commun. ACM 18 (Jan. 1975), 43-48. Google ScholarGoogle Scholar
  10. 10 MISRA, J. Some aspects of the verification of loop computations. IEEE Trans. Softw. Eng. SE- 4 (Nov. 1978), 478-486.Google ScholarGoogle Scholar
  11. 11 MISRA, J. Systematic verification of simple loops. Tech. Rep. TR-97, University of Texas, Austin, Tex., March 1979.Google ScholarGoogle Scholar
  12. 12 MORRIS, J.H., AND WEGBREIT, B. Subgoal induction. Commun. ACM 20 (April 1977), 209-222. Google ScholarGoogle Scholar
  13. 13 WEBREIT, B. Complexity of synthesizing inductive assertions. J. ACM 24 (July 1977), 504-512. Google ScholarGoogle Scholar

Index Terms

  1. Generalizing specifications for uniformly implemented loops

                          Recommendations

                          Comments

                          Login options

                          Check if you have access through your login credentials or your institution to get full access on this article.

                          Sign in

                          Full Access

                          • Published in

                            cover image ACM Transactions on Programming Languages and Systems
                            ACM Transactions on Programming Languages and Systems  Volume 7, Issue 1
                            Jan. 1985
                            181 pages
                            ISSN:0164-0925
                            EISSN:1558-4593
                            DOI:10.1145/2363
                            Issue’s Table of Contents

                            Copyright © 1985 ACM

                            Publisher

                            Association for Computing Machinery

                            New York, NY, United States

                            Publication History

                            • Published: 2 January 1985
                            Published in toplas Volume 7, Issue 1

                            Permissions

                            Request permissions about this article.

                            Request Permissions

                            Check for updates

                            Qualifiers

                            • article

                          PDF Format

                          View or Download as a PDF file.

                          PDF

                          eReader

                          View online with eReader.

                          eReader