Blogs (1) >>
ICSE 2019
Sat 25 - Fri 31 May 2019 Montreal, QC, Canada
Fri 31 May 2019 14:00 - 14:20 at Duluth - API Analysis Chair(s): Sam Malek

Misuses of library APIs are pervasive and often lead to software bugs. Various static analysis tools have been proposed to detect API misuses. They often involve mining frequent patterns from a large number of correct API usage examples, which can be hard to obtain in practice. They also suffer from low precision due to an over-simplified assumption that a deviation from frequent usage patterns indicates a misuse. We make two observations on the detection of API misuses. First, API misuses can be represented as mutants of the corresponding correct usages. Second, whether a mutant will introduce a misuse can be validated via executing it against a test suite and analyzing the execution information. Based on these observations, we propose MutApi, the first approach to discovering API misuse patterns vis mutation analysis. To effectively mimic API misuses based on correct usages, we first design eight novel mutation operators according to the common characteristics of API misuses. MutApi generates mutants by applying these operators on client projects and collects mutant-killing tests as well as the concerned stack traces. Misuse patterns are discovered from the killed mutants that are prioritized according to their likelihood of causing API misuses based on the collected information. We applied MutApi on 73 popular Java APIs and 16 client projects for mutation analysis. The results show that MutApi can discover substantial API misuse patterns with a high precision of 0.78. It also achieves a recall of 0.49 on the MuBench benchmark, which significantly outperforms the state-of-the-art techniques.

Fri 31 May

icse-2019-Paper-Presentations
14:00 - 15:30: Papers - API Analysis at Duluth
Chair(s): Sam MalekUniversity of California, Irvine
icse-2019-Technical-Papers14:00 - 14:20
Talk
Ming WenThe Hong Kong University of Science and Technology, Yepang LiuSouthern University of Science and Technology, Rongxin WuDepartment of Computer Science and Engineering, The Hong Kong University of Science and Technology, Xuan XieSchool of Data and Computer Science, Sun Yat-sen University, Guangzhou, China, Shing-Chi CheungDepartment of Computer Science and Engineering, The Hong Kong University of Science and Technology, Zhendong SuETH Zurich
icse-2019-Demonstrations14:20 - 14:40
Demonstration
Zuxing GuSchool of Software, Tsinghua University, Jiecheng WuTsinghua University, Li ChiTsinghua University, Min ZhouTsinghua University, Yu Jiang, Ming GuTsinghua University, Jiaguang Sun
Pre-print
icse-2019-Technical-Papers14:40 - 15:00
Talk
Lili WeiThe Hong Kong University of Science and Technology, Yepang LiuSouthern University of Science and Technology, Shing-Chi CheungDepartment of Computer Science and Engineering, The Hong Kong University of Science and Technology
Pre-print
icse-2019-Technical-Papers15:00 - 15:20
Talk
Shiyou HuangTexas A&M University, Jianmei GuoAlibaba Group, Sanhong LiAlibaba Inc., Xiang LiAlibaba, Yumin QiAlibaba, Kingsum Chow, Jeff HuangTexas A&M University
icse-2019-Paper-Presentations15:20 - 15:30
Talk