期刊论文详细信息
IEEE Access
Accelerating API-Based Program Synthesis via API Usage Pattern Mining
Wei Dong1  Binbin Liu1  Yinzhu Zhang1 
[1] College of Computer Science, National University of Defense Technology, Changsha, China;
关键词: API usage pattern mining;    component-based synthesis;    petri net;    program synthesis;   
DOI  :  10.1109/ACCESS.2019.2950232
来源: DOAJ
【 摘 要 】

Program Synthesis is an exciting topic in software engineering which aims to generate programs satisfying user intent automatically. Although different approaches have been proposed in program synthesis, only small or domain-specific programs can be generated in practice, the main obstacle of which lies in the intractability of program space. With the rapid growth of reusable libraries, component-based synthesis provides a promising way, such as synthesizing Java programs that are only composed of APIs. However, the efficiency of searching for proper solutions for complex tasks is still a challenge. In certain scenarios, some API methods are frequently called together. The usage of these API methods always follows some usage patterns. Incorporating the information about API usage patterns will help to accelerate the speed of program synthesis. However, state-of-the-art synthesis tools do not capture the inherent relationships between API methods. Aiming at this problem, we propose a novel approach to accelerate the speed of API-based program synthesis via API usage pattern mining. It is a general approach that can be applied to any approach of API-based synthesis. We first collect open source projects of high quality from the Internet and use an off-the-shelf API-usage-pattern-mining tool to mine API usage patterns from these code snippets. We use two strategies to incorporate the information about API usage patterns with program synthesis, and either strategy can improve the efficiency of program synthesis. We evaluate our approach on 20 real programming tasks, which shows that our approach can accelerate the speed of program synthesis by 86% compared to the baseline.

【 授权许可】

Unknown   

  文献评价指标  
  下载次数:0次 浏览次数:0次