首页> 外文会议>International Conference on Data and Software Engineering >Case study on semantic clone detection based on code behavior
【24h】

Case study on semantic clone detection based on code behavior

机译:基于代码行为的语义克隆检测案例研究

获取原文
获取外文期刊封面目录资料

摘要

The activities of copy and paste fragments of code from a source code into the other source code, with or without modification, are known as the code cloning. The process is often done by software developers because it's easier than generate code manually. In the other hand, this behavior leads to the increasing of effort to maintenance the code. Research on detecting the presence of cloning has been done. Detection of cloned semantically is a detection method that still needs a deepening. One of the detection methods of semantic cloning is based on the behavior of the code. The code behavior detected by looking at input, output and the effects of the method. Methods with the same input, output and effect will show that the function of the method is the same. However, the detection method based on input, output and effect could not be used in a void method and method without parameters. There is no explanations about input, output and effect in that kind of methods. In this case, the solution is needed to find the input, output and the effects of the method. This research is a concern on how to find an input, output and effect in void and non-parameterized method. Detection of input, output and effects done using PDG (Program Dependence Graph). The result is used to reconstruct void and non-parameterizes method. Trial is performed on each method (without exception) using random input data to get the behavior methods. Trial is done using small size source code from jDraw. From the result of the trial process, can be concluded that semantic clone detection using the methods behavior approach is sound very promising. This method can also detect type 1, type 2 and type 3 clone beside the semantic clone itself with an accuracy about 89%.
机译:将代码片段从源代码复制并粘贴到其他源代码中的活动(经过修改或未经修改)被称为代码克隆。该过程通常由软件开发人员完成,因为它比手动生成代码更容易。另一方面,此行为导致维护代码的工作量增加。已经完成了检测克隆存在的研究。语义上克隆的检测是一种仍需深化的检测方法。语义克隆的一种检测方法是基于代码的行为。通过查看输入,输出和方法的效果来检测代码行为。具有相同输入,输出和效果的方法将显示该方法的功能相同。但是,基于输入,输出和效果的检测方法不能用于无效方法和没有参数的方法中。在这种方法中,没有关于输入,输出和效果的解释。在这种情况下,需要找到解决方案来找到方法的输入,输出和效果。这项研究是关于如何在无效和非参数化方法中寻找输入,输出和效果的关注。使用PDG(程序依赖图)检测输入,输出和效果。结果用于重构无效和非参数化方法。使用随机输入数据对每种方法(无例外)执行试验,以获取行为方法。试用是使用jDraw中的小尺寸源代码完成的。从试验过程的结果可以得出结论,使用行为方法进行语义克隆检测听起来非常有前途。此方法还可以检测语义克隆本身旁边的类型1,类型2和类型3克隆,准确度约为89%。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号