...
【24h】

Mining balanced API protocols

机译:采矿平衡API协议

获取原文
获取原文并翻译 | 示例

摘要

API protocols can be used in many aspects of software engineering, such as software testing, program validation, software documentation, etc. Mining API protocols based on probabilistic models is proved to be an effective approach to achieve protocols automatically. However, it always achieves unbalanced protocols, that is, protocols described using probabilistic models have unexpected extremely high and low probabilities. In this paper, we discuss the unbalanced probability problem and propose to address it by preprocessing method call sequences used for training. Our method first finds tandem arrays in method call sequences based on the suffix tree. Then, it substitutes each tandem array with a tandem repeat. Since repeated sub method call sequences are eliminated, balanced API protocols may be achieved. In order to investigate the feasibility and effectiveness of our approach, we implemented it in our previous prototype tool ISpecMiner and used the tool to perform a comparison test based on several real-world applications. Experimental results show that our approach can achieve more balanced API protocols than existing approaches, which is essential for mining valid and precise API protocols.
机译:API协议可用于软件工程的许多方面,例如软件测试,程序验证,软件文档等。基于概率模型的挖掘API协议被证明是自动实现协议的有效方法。然而,它始终实现了不平衡的协议,即使用概率模型描述的协议具有意想不到的极高和低概率。在本文中,我们讨论了不平衡的概率问题,并通过预处理方法呼叫序列来解决它来解决它。我们的方法首先在方法调用序列中找到串联阵列,基于后缀树。然后,它用串联重复替换每个串联阵列。由于消除了重复的子方法呼叫序列,因此可以实现平衡API协议。为了调查我们方法的可行性和有效性,我们在以前的原型工具Ispecminer中实现了它,并使用该工具基于几个真实应用程序进行比较测试。实验结果表明,我们的方法可以实现比现有方法更具平衡的API协议,这对于采矿有效和精确的API协议至关重要。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号