首页> 外文会议>International Conference on Fundamental Approaches to Soft ware Engineering >Mining API Error-Handling Specifications from Source Code
【24h】

Mining API Error-Handling Specifications from Source Code

机译:挖掘API错误处理源代码的规格

获取原文

摘要

API error-handling specifications are often not documented, necessitating automated specification mining. Automated mining of error-handling specifications is challenging for procedural languages such as C, which lack explicit exception-handling mechanisms. Due to the lack of explicit exception handling, error-handling code is often scattered across different procedures and files making it difficult to mine error-handling specifications through manual inspection of source code. In this paper, we present a novel framework for mining API error-handling specifications automatically from API client code, without any user input. In our framework, we adapt a trace generation technique to distinguish and generate static traces representing different API run-time behaviors. We apply data mining techniques on the static traces to mine specifications that define correct handling of API errors. We then use the mined specifications to detect API error-handling violations. Our framework mines 62 error-handling specifications and detects 264 real error-handling defects from the analyzed open source packages.
机译:API错误处理规范通常没有记录,需要自动化规范挖掘。用于误差处理规范的自动化挖掘对于C缺乏明确的异常处理机制,对程序语言具有挑战性。由于缺乏明确的异常处理,错误处理代码通常分散在不同的过程和文件中,使得通过手动检查源代码难以挖掘错误处理规范。在本文中,我们介绍了一种从API客户端代码自动挖掘API错误处理规范的新框架,而无需任何用户输入。在我们的框架中,我们适应跟踪生成技术,以区分和生成表示不同API运行时行为的静态迹线。我们在静态跟踪上应用数据挖掘技术,以挖掘定义正确处理API误差的规范。然后,我们使用挖掘规范来检测API错误处理违规。我们的框架矿井62次错误处理规范,并检测分析的开源包中的264个真正的错误处理缺陷。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号