保持語(yǔ)義不變的C克隆代碼預(yù)處理方法
本文選題:自適應(yīng)K-最近鄰聚類 + 克隆代碼。 參考:《電子科技大學(xué)學(xué)報(bào)》2017年06期
【摘要】:克隆代碼檢測(cè)工具的輸出結(jié)果由于存在克隆檢測(cè)不一致性缺陷的誤檢和檢測(cè)出的克隆代碼不能直接用于重構(gòu)的問(wèn)題,需要對(duì)檢測(cè)工具的輸出結(jié)果進(jìn)行預(yù)處理。為了解決該問(wèn)題,提出一種新的克隆代碼預(yù)處理方法。首先,將自適應(yīng)K-最近鄰聚類方法與程序依賴圖相結(jié)合,用于降低克隆不一致性相關(guān)缺陷檢測(cè)的誤檢。然后,使用基于代價(jià)-收益分析的評(píng)估方法,在消除缺陷后的克隆代碼中識(shí)別可重構(gòu)的克隆代碼。實(shí)驗(yàn)結(jié)果表明,該預(yù)處理方法,不僅降低了克隆不一致性相關(guān)缺陷檢測(cè)工具產(chǎn)生的誤檢,提高了可重構(gòu)克隆代碼的數(shù)量,而且將克隆代碼檢測(cè)與克隆代碼重構(gòu)兩個(gè)過(guò)程連接為一個(gè)有機(jī)的整體,有利于提高軟件的質(zhì)量,降低軟件維護(hù)的成本。
[Abstract]:The output result of the clone code detection tool needs to be preprocessed because of the false detection of the inconsistency of the clone detection and the problem that the detected clone code can not be directly used for reconstruction. In order to solve this problem, a new preprocessing method of clone code is proposed. Firstly, the adaptive K-nearest neighbor clustering method is combined with the program dependency graph to reduce the false detection of clonal inconsistency related defects. Then, the cost-benefit analysis is used to identify the reconfigurable clone code in the cloned code after eliminating the defect. The experimental results show that the proposed preprocessing method not only reduces the false detection generated by the defect detection tools associated with clone inconsistency, but also increases the number of reconfigurable clone codes. Moreover, the two processes of clone code detection and clone code reconstruction are connected into an organic whole, which is helpful to improve the quality of software and reduce the cost of software maintenance.
【作者單位】: 中國(guó)科學(xué)院軟件研究所;哈爾濱師范大學(xué)計(jì)算機(jī)科學(xué)與信息工程學(xué)院;
【基金】:黑龍江省自然科學(xué)基金(F2016030)
【分類號(hào)】:TP311.1
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 記只述;;Jini推動(dòng)個(gè)人計(jì)算新革命[J];四川通信技術(shù);1999年03期
2 任剛;;基于集團(tuán)企業(yè)信息分類及代碼管理系統(tǒng)設(shè)計(jì)[J];信息安全與技術(shù);2012年05期
3 黃莉;;第三方JavaScript代碼沙盒技術(shù)研究[J];寶雞文理學(xué)院學(xué)報(bào)(自然科學(xué)版);2013年04期
4 谷哾;錢江;應(yīng)明峰;;基于證據(jù)的代碼訪問(wèn)控制機(jī)制研究[J];計(jì)算機(jī)工程;2007年13期
5 GI Selner;RB Taylor;王祝文;;GSDRAW/GSMAP的操作[J];華東地質(zhì)學(xué)院學(xué)報(bào);1991年03期
6 王肅清;;材料代碼在產(chǎn)品設(shè)計(jì)中的應(yīng)用[J];鐵道技術(shù)監(jiān)督;2006年05期
7 應(yīng)時(shí),吳霞,陳小萍,吳閩泉;代碼組件重用支撐環(huán)境CCRSE的設(shè)計(jì)策略[J];武漢大學(xué)學(xué)報(bào)(理學(xué)版);2001年01期
8 楊杰;;VSTO——.NET平臺(tái)下嶄新的MS Office開發(fā)技術(shù)[J];黑龍江科技信息;2008年02期
9 楊琦 ,李英杰;編程疑難問(wèn)題解答[J];電腦編程技巧與維護(hù);2005年07期
10 王江民,丁建平,嚴(yán)紹文;變形病毒的發(fā)展趨勢(shì)及其抗病毒工具[J];電腦;1994年01期
,本文編號(hào):1843042
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/1843042.html