检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]电子工程学院博士生队,安徽合肥230037 [2]电子工程学院网络系,安徽合肥230037
出 处:《系统工程与电子技术》2017年第9期2157-2164,共8页Systems Engineering and Electronics
基 金:国家自然科学基金(61472357;61602491)资助课题
摘 要:软件开发中,因代码复用导致复用缺陷的现象时常发生,针对此提出一种基于代码复用检测的缺陷发现方法。首先通过代码比对或补丁还原的方式定位缺陷相关的代码,将缺陷代码和待测代码以函数为单位进行划分,提取并量化各函数的度量特征、结构特征和文本特征,采用递进式相似函数逐轮筛选的方式,确定可能存在复用缺陷的函数,并基于模型检测和数据流分析技术对疑似缺陷进一步判断。实验选取典型开源项目进行测试,发现了多处潜在的复用缺陷,结果证明了所提方法的有效性,同时发现每个缺陷平均要对2~5个可能的复用点进行判断。In software development,clone flaw phenomena caused by code clone occur at intervals.A method based on code clone detection was proposed to detect the clone flaws.The code area related to the flaw was located by code comparison or patch restoration.The flaw code and testing code were divided into functions as the analysis unit.By selecting and quantifying the metric feature,structure feature and text feature for every function,functions those may have clone flaws were identified using the progressive similar function filtration way.These suspected flaws were ensured using model checking and data-flow analysis.In the experiment with several typical open source projects,a number of clone flaws were detected.The results validate the effectiveness of the proposed method.Furthermore,a conclusion was drawn that when finding a flaw,averaging 2-5clone points should be checked.
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.205