• DocumentCode
    1851554
  • Title

    Automatic Generation of Object Usage Specifications from Large Method Traces

  • Author

    Pradel, Michael ; Gross, Thomas R.

  • Author_Institution
    Dept. of Comput. Sci., ETH Zurich, Zurich, Switzerland
  • fYear
    2009
  • fDate
    16-20 Nov. 2009
  • Firstpage
    371
  • Lastpage
    382
  • Abstract
    Formal specifications are used to identify programming errors, verify the correctness of programs, and as documentation. Unfortunately, producing them is error-prone and time-consuming, so they are rarely used in practice. Inferring specifications from a running application is a promising solution. However, to be practical, such an approach requires special techniques to treat large amounts of runtime data. We present a scalable dynamic analysis that infers specifications of correct method call sequences on multiple related objects. It preprocesses method traces to identify small sets of related objects and method calls which can be analyzed separately. We implemented our approach and applied the analysis to eleven real-world applications and more than 240 million runtime events. The experiments show the scalability of our approach. Moreover, the generated specifications describe correct and typical behavior, and match existing API usage documentation.
  • Keywords
    application program interfaces; formal specification; object-oriented methods; program diagnostics; program verification; API usage documentation; correct method call sequences; formal specifications; large method traces; object-oriented applications; program correctness verification; programming errors; scalable dynamic analysis; Collaboration; Computer errors; Computer science; Documentation; Formal specifications; Java; Laboratories; Law; Legal factors; Runtime; Specification inference; dynamic analysis; formal specifications; temporal properties;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Automated Software Engineering, 2009. ASE '09. 24th IEEE/ACM International Conference on
  • Conference_Location
    Auckland
  • ISSN
    1938-4300
  • Print_ISBN
    978-1-4244-5259-0
  • Electronic_ISBN
    1938-4300
  • Type

    conf

  • DOI
    10.1109/ASE.2009.60
  • Filename
    5431756