Towards Combining Usage Mining and Implementation Analysis to Infer API Preconditions
The preconditions of an API method are constraints on the states of its
receiver object and arguments intended by the library designer(s) to
correctly invoke it in the client code. There have been two main kinds of
approaches for automatically inferring API preconditions. The first kind of
approaches mines the frequently checked conditions guarding the API usages in
the client code and generalize them into preconditions. The second kind of
approaches analyzes the implementation of the API to compute preconditions.
In this paper, we report an observation that the usage-based approach often
produces preconditions stronger than those intended while the implementation-based
produces weaker ones. Our finding calls for a new direction of
integrating those kinds of precondition inference approaches and refinement
solutions to reduce the differences between sets of inferred preconditions.
Fri 9 NovDisplayed time zone: Guadalajara, Mexico City, Monterrey change
10:30 - 12:00 | |||
10:30 30mTalk | Towards Combining Usage Mining and Implementation Analysis to Infer API Preconditions WASPI Hoan Anh Nguyen Iowa State University, USA, Tien N. Nguyen University of Texas at Dallas, Hridesh Rajan Iowa State University, Robert Dyer Bowling Green State University | ||
11:00 30mTalk | Contract Discovery from Black-Box Components WASPI Vaibhav Sharma University of Minnesota, Taejoon Byun University of Minnesota, Stephen McCamant University of Minnesota, Sanjai Rayadurgam University of Minnesota, Mats P. E. Heimdahl University of Minnesota, USA | ||
11:30 30mTalk | Automated Generation of Creative Software Requirements: A Data-Driven Approach WASPI |