skip to main content
article
Free Access

Orthogonal Latin squares: an application of experiment design to compiler testing

Published:01 October 1985Publication History
Skip Abstract Section

Abstract

Orthogonal Latin squares—a new method for testing compilers—yields the informational equivalent of exhaustive testing at a fraction of the cost. The method has been used successfully in designing some of the tests in the Ada Compiler Validation Capability (ACVC) test suite.

References

  1. 1 Bose. R.C. and Shrikhande. S.S. On the construction of sets of mu. tually orthogonal Latin squares and the falsity of a conjecture of Euler. Trans. Am. Math. Sm. 95 (1960). 191-209.Google ScholarGoogle Scholar
  2. 2 Bose. R.C., Parker. E.T., and Shrikhande, S.S. Further results on the construction of mutually orthogonal Latin squares and the falsity of Euler's conjecture. Can. 1, Math. 12 (June 1960). 189-203.Google ScholarGoogle Scholar
  3. 3 Diamond, W.J. Practical Experimenf Designs for Engineers and Scientists. Lifetime Learning Publications, Belmont, Calif., 1981.Google ScholarGoogle Scholar
  4. 4 Fischer, R.A.. and Yates. F. Statistical Tables for Biological. Agricultural, and Medical Research. 2nd ed. Oliver and Boyd. London, 1943.Google ScholarGoogle Scholar
  5. 5 Hall, M., Ir. Combinatorial Theory. Blaisdell Publishing Co. Waltham. Mass. 1967.Google ScholarGoogle Scholar
  6. 6 MacNeish, H.F. Euler squares. Ann. Math. 23, 3 (Mar. 1922). 22%X17.Google ScholarGoogle ScholarCross RefCross Ref
  7. 7 Parker. E. Construction of scnne sets of mutually orthogonal Latin squares. Proc. Am. Math. SK. IO, 6 (Dec. 1959). 946-949.Google ScholarGoogle ScholarCross RefCross Ref
  8. 8 Winer, B.J. Statistical Principles in Experimental Design. 2nd ed. McGraw-Hill. New York. 1971.Google ScholarGoogle Scholar

Index Terms

  1. Orthogonal Latin squares: an application of experiment design to compiler testing

            Recommendations

            Reviews

            Bruce Melvin Skwiersky

            The author describes an approach to the generation of test cases which allows reasonable confidence in test results without necessitating exhaustive testing of all combinations of test factors and values. The paper is oriented to the type of tests which the author has been designing for the ADA Compiler Validation Capability (ACVC) test suite. The approach centers on the creation of square arrays (Latin squares and Greco-Latin squares) of test factors and values which can be expanded into source or source pseudocode test cases. A latin square is a square array of n letters each repeated n times and arranged so that each letter occurs just once in every row and column. Latin squares form the basis for an important type of experimental design. Two examples underlie much of the discussion in the paper. One, a crop treatment application experiment, illustrates experiment design using a Latin square. The other example is a stripped down version of the tests used in the ACVC test suite. It illustrates the combining of orthogonal Latin squares into a Greco-Latin square of 16 test cases combinations. In cases where Latin squares are appropriate, they produce results which are more reliable than would result from randomly chosen test cases. The trick is to find area of applicability. The technique requires that the “index-factors” (i.e., row and column labels) be independent of the “contents factors” (i.e., the contents of the matrix entries). Further, the number of index factors and contents factors must be such that they can be assigned to rows, columns, and contents so that the “squareness” can be preserved. For tests concerning compiler data types applied to index factors as neutral as character sets, the Latin square/Greco-Latin square technique is very powerful. It is a useful extension and partial formalization of the tricks or habits (e.g, end-point testing) which those involved in testing use to restrict the effort and cost of constructing and executing tests. The paper is written clearly at a level providing value to the student and expert alike. Ignorance of the origins of Latin and Greco-Latin squares in experiment design theory is no handicap to appreciating the suggestions made by the author. The only weakness of the paper is that, after the introductory comments, the author does not explicitly point out the limitations in the applicability of the technique.

            Access critical reviews of Computing literature here

            Become a reviewer for Computing Reviews.

            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 Communications of the ACM
              Communications of the ACM  Volume 28, Issue 10
              Oct. 1985
              64 pages
              ISSN:0001-0782
              EISSN:1557-7317
              DOI:10.1145/4372
              Issue’s Table of Contents

              Copyright © 1985 ACM

              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: 1 October 1985

              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