• DocumentCode
    2035603
  • Title

    Summary of dynamically discovering likely program invariants

  • Author

    Ernst, Michael D.

  • Author_Institution
    Lab. for Comput. Sci., MIT, Cambridge, MA, USA
  • fYear
    2001
  • fDate
    2001
  • Firstpage
    540
  • Lastpage
    544
  • Abstract
    The dissertation dynamically discovering likely program invariants introduces dynamic detection of program invariants, presents techniques for detecting such invariants from traces, assesses the techniques´ efficacy, and points the way for future research. Invariants are valuable in many aspects of program development, including design, coding, verification, testing, optimization, and maintenance. They also enhance programmers´ understanding of data structures, algorithms, and program operation. Unfortunately, explicit invariants are usually absent from programs, depriving programmers and automated tools of their benefits. The dissertation shows how invariants can be dynamically detected from program traces that capture variable values at program points of interest. The user runs the target program over a test suite to create the traces, and an invariant detector determines which properties and relationships hold over both explicit variables and other expressions. Properties that hold over the traces and also satisfy other tests, such as being statistically justified, not being over unrelated variables, and not being implied by other reported invariants, are reported as likely invariants. Like other dynamic techniques such as testing, the quality of the output depends in part on the comprehensiveness of the test suite. If the test suite is inadequate, then the output indicates how, permitting its improvement. Dynamic analysis complements static techniques, which can be made sound but for which certain program constructs remain beyond the state of the art. Experiments demonstrate a number of positive qualities of dynamic invariant detection and of a prototype implementation, Daikon. Invariant detection is accurate-it rediscovers formal specifications-and useful-it assists programmers in programming tasks. It runs quickly and produces output of modest size. Test suites found in practice tend to be adequate for dynamic invariant detection
  • Keywords
    data structures; program testing; program verification; software maintenance; Daikon; data structures; dynamically discovering likely program invariants; program invariants; software coding; software maintenance; software testing; software verification; Computer science; Data structures; Design optimization; Detectors; Formal specifications; Instruments; Laboratories; Programming profession; Prototypes; Testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Maintenance, 2001. Proceedings. IEEE International Conference on
  • Conference_Location
    Florence
  • ISSN
    1063-6773
  • Print_ISBN
    0-7695-1189-9
  • Type

    conf

  • DOI
    10.1109/ICSM.2001.972767
  • Filename
    972767