講演抄録/キーワード |
講演名 |
2009-11-27 13:00
ソフトウェアバグと変数名の関係の分析 ○山本博之・亀井靖高・柗本真佑・門田暁人・松本健一(奈良先端大) KBSE2009-42 |
抄録 |
(和) |
あるソフトウェアにおける,特定の変数名がバグと関わりがあることが分かれば,モジュールに含まれる変数名からバグの有無を予測し,テスト工程を効率化することができる.そこで,本稿ではモジュールに含まれる変数名に着目し,あるソフトウェアにおけるモジュール中の変数名とバグの関係を明らかにすることを目的とする.そのために,2つの仮説(H1)変数名とバグには関係がある,仮説(H2)変数名とバグの関係は次のバージョンでも保たれる,について分析を行う.この2つの仮説を検証するために,変数名ごとのバグ密度を算出し,変数名によるバグ密度の違いを確認し,バグ密度のバージョン間における相関関係の分析を行った.Eclipse3.0およびEclipse3.1を対象として分析した結果,変数名ごとのバグ密度は,バージョン間で相関係数0.621と,やや強い相関が見られた.結果は,バグ密度の高いモジュールに含まれる変数名が,次のバージョンのあるモジュールに含まれていたとすると,そのモジュールはバグを含む可能性が高いことを示唆している. |
(英) |
Variable names used in each software module could be used as indicators of software bugs in the module because (1) names are given by a programmer who is responsible of the module and some programmers tend to produce more bugs than others, and (2) names are usually related to some functions in a program and some functions are more difficult to implement (without injecting bugs) than others.So far, the relationship between variable names and software bugs have not investigated.In this paper, by analyzing Eclipse 3.0 and 3.1 projects, we experimentally validate two hypotheses; (H1) there is a relationship between variable names and software bugs, (H2) this relationship is preserved through different versions of a software product.In the experiment, for each variable name, we calculated the average bug density of modules in which the name appeared.The result supported both H1 and H2, and the coefficient of correlation of bug density (bound to each name) between Eclipse 3.0 and 3.1 was 0.621.This suggests that focusing on variable names related to high bug density in the previous version can help in identifying high risk modules of an ongoing project. |
キーワード |
(和) |
変数名 / 変数名とバグの関係 / バグ密度 / / / / / |
(英) |
variable name / relationship between software bug and variable name / bug density / / / / / |
文献情報 |
信学技報, vol. 109, no. 307, KBSE2009-42, pp. 67-71, 2009年11月. |
資料番号 |
KBSE2009-42 |
発行日 |
2009-11-19 (KBSE) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
KBSE2009-42 |