检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:姜智文 任怡[1] 杨立明 管剑波[1] 李宝[1] 谭郁松[1] JIANG Zhiwen;REN Yi;YANG Liming;GUAN Jianbo;LI Bao;TAN Yusong(College of Computer,National University of Defense Techology,Changsha 410073,China)
机构地区:[1]国防科技大学计算机学院,湖南长沙410073
出 处:《郑州大学学报(理学版)》2024年第2期18-25,共8页Journal of Zhengzhou University:Natural Science Edition
基 金:国家自然科学基金项目(U19A2060,61872444)。
摘 要:随着开源软件的广泛使用,代码溯源成为管理软件源代码、降低潜在风险的重要技术手段。基于代码克隆检测的大规模代码溯源分析,从其检测结果中鉴别代码克隆对之间的继承关系,对代码来源追踪、组件依赖关系分析、软件脆弱性分析以及代码缺陷修复等具有重要意义。目前,已有方法在原始代码片段存在微小修改的情况下,会产生许多误判,并且检测克隆对的效率也有待提高。针对上述问题,提出了代码溯源中克隆代码继承关系的判定方法CloneIRD,包括一个基于自研快速分布式克隆检测工具FastDCF的代码溯源分析框架,以及该框架的核心算法——基于代码演化信息的克隆代码继承关系判定算法EIHR。为验证框架和算法的有效性,首先设计并实现了CloneIRD方法,并在Linux内核V4.9和V4.12的开源代码上进行了实验。实验结果表明,CloneIRD方法能够有效判定代码溯源结果中克隆对的继承关系,且基于FastDCF的溯源分析框架能够胜任大规模代码的溯源分析任务。With the widespread of open source software,code traceability has become an important technical to manage code and reduce potential risks.In large-scale code source traceability analysis based on code clone detection,identifying the inheritance relationship between code clone pairs from the detection results was of great significance for code source tracking,component dependency analysis,software vulnerability analysis,and code defect repair.The current method produced many misjudgments when the original code fragments had some minor modifications,and the efficiency of detecting clone pairs also needed to be improved.In response to the above problems,a method for determining the inheritance relationship of cloned code in code traceability,CloneIRD,was proposed,including a code traceability analysis framework based on the self-developed fast distributed clone detection tool FastDCF,and the core algorithm of the framework,a clone code inheritance relationship judgment algorithm based on code evolution information EIHR.In order to verify the effectiveness of the framework and algorithm,the CloneIRD method was first designed and implemented,and experiments were carried out on the open source code of Linux kernel V4.9 and V4.12.The experimental results showed that the CloneIRD method could effectively determine the inheritance relationship of clone pairs in the code traceability results,and the traceability analysis framework based on FastDCF was capable of large-scale code traceability analysis tasks.
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.171