计算机科学与探索
計算機科學與探索
계산궤과학여탐색
JOURNAL OF FRONTIERS OF COMPUTER SCIENCE & TECHNOLOGY
2014年
8期
956-965
,共10页
马皖王莹%陈林%陈芝菲%王子元
馬皖王瑩%陳林%陳芝菲%王子元
마환왕형%진림%진지비%왕자원
复杂网络%高危缺陷%缺陷评估%介数%PageRank
複雜網絡%高危缺陷%缺陷評估%介數%PageRank
복잡망락%고위결함%결함평고%개수%PageRank
complex network%severe defects%defects evaluation%betweenness centrality%PageRank
为了评估软件缺陷的风险,提出了一种基于复杂网络分析的软件缺陷评估方法。该方法首先用一个网络模型表达程序实体之间的关系,将源代码中的方法抽象为节点,方法间的调用关系抽象为有向边,以此构造程序源代码网络;然后分别用介数算法和PageRank算法计算造成软件缺陷的方法节点在源代码全局网络中的地位,由此评估缺陷的风险高低。实验结果表明,该方法在评估内部高危缺陷时有较好的效果,有助于提高软件开发维护人员对一些隐蔽高危缺陷的关注度,进而为后续修复缺陷与软件演化提供有益的线索。
為瞭評估軟件缺陷的風險,提齣瞭一種基于複雜網絡分析的軟件缺陷評估方法。該方法首先用一箇網絡模型錶達程序實體之間的關繫,將源代碼中的方法抽象為節點,方法間的調用關繫抽象為有嚮邊,以此構造程序源代碼網絡;然後分彆用介數算法和PageRank算法計算造成軟件缺陷的方法節點在源代碼全跼網絡中的地位,由此評估缺陷的風險高低。實驗結果錶明,該方法在評估內部高危缺陷時有較好的效果,有助于提高軟件開髮維護人員對一些隱蔽高危缺陷的關註度,進而為後續脩複缺陷與軟件縯化提供有益的線索。
위료평고연건결함적풍험,제출료일충기우복잡망락분석적연건결함평고방법。해방법수선용일개망락모형표체정서실체지간적관계,장원대마중적방법추상위절점,방법간적조용관계추상위유향변,이차구조정서원대마망락;연후분별용개수산법화PageRank산법계산조성연건결함적방법절점재원대마전국망락중적지위,유차평고결함적풍험고저。실험결과표명,해방법재평고내부고위결함시유교호적효과,유조우제고연건개발유호인원대일사은폐고위결함적관주도,진이위후속수복결함여연건연화제공유익적선색。
In order to evaluate the risk of software defects, this paper proposes an approach for defects evaluation based on complex network analysis. In this approach, a network model is used to express the relationship between entities, and the methods in source code and the call relations between them are extracted as nodes and directed edges respectively to construct the source code network. Then the importance of root cause nodes with respect to the whole network is computed by the betweenness centrality and PageRank, which is used to assess the severity of defects. The experimental results show that the approach has a good performance in evaluating inside software severe defects, which can help maintainers pay more attention to implicit severe defects and provide helpful reference to the pro-gram repair, thus supporting software evolution.