The Ohio State University
SpecTackle: Inferring Partial Specifications Through Constraint-Based Dynamic Analysis
Abstract
dc:description<p>Formal specifications are widely recognized as beneficial, and in some niches, formal methods have been gaining ground. Unfortunately, many legacy systems have no formal specification -- this is the ``legacy code problem''. Many such systems could benefit from additional specifications -- such specifications can serve as useful documentation, acting as educational tools for new users and aides to maintaining system integrity as the system is modified over its lifecycle. Even though training for and acceptance of formal methods is increasing, the sheer amount of unspecified legacy code is daunting. Clearly any assistance, automated or semi-automated, would be of considerable value.</p><p>Along a different route, automated testing and related techniques such as test-driven development are now recognized as a good practice in industry, and many systems have robust test suites for exercising a majority of their code base. Dynamic analysis systems such as Daikon and DIDUCE can take advantage of such test suites to infer specifications for systems under analysis, but they show sensitivity to the values of test inputs, possibly inferring incorrect invariants based on those values. </p><p>One possible mitigation approach is to allow hand-written specifications, thereby overriding incorrect or extraneous inference, but the above systems do not support such a technique. The work reported in this thesis is based on the idea that, by starting with a body of pre-specified core methods (rather than relying on statistical confidence metrics as with systems such as Daikon), an automated system may be able to arrive at better specifications. How can we build upon such a foundation?</p><p>Interestingly, similar questions have been raised in type research. Rubydust approaches the issue of inferring static types for the dynamically typed Ruby language. Utilizing observations recorded during test runs, it employs a constraint-based dynamic analysis approach that builds upon given specifications of core Ruby libraries to infer static type specifications for classes built upon that foundation. Could a similar dynamic, constraint-based technique based on suitable information recorded during test runs be applied to other classes of specifications, in particular, behavioral specs?</p><p>It is this question that motivated the development of SpecTackle, a technique for automatically inferring partial specifications through constraint-based dynamic analysis (i.e., a technique for helping programmers tackle writing specs). Although the approach handles only a small subset of Java, the results reported in this thesis show that it promises to be more effective than statistical techniques such as Daikon because it does not have a similar sensitivity to test-input values.</p>
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Computer Science and Engineering
- Grantor dc:publisher
- The Ohio State University
- Year dc:date
- 2012
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Wedig, Sean A.
- Advisor dc:contributor.advisor
-
- Soundarajan, Neelam
Subjects
dc:subject × 6Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=osu1345515046