講演名 2009-11-27
ソフトウェアバグと変数名の関係の分析(ソフトウェア解析)
山本 博之, 亀井 靖高, 松本 真佑, 門田 暁人, 松本 健一,
PDFダウンロードページ PDFダウンロードページへ
抄録(和) あるソフトウェアにおける,特定の変数名がバグと関わりがあることが分かれば,モジュールに含まれる変数名からバグの有無を予測し,テスト工程を効率化することができる.そこで,本稿ではモジュールに含まれる変数名に着目し,あるソフトウェアにおけるモジュール中の変数名とバグの関係を明らかにすることを目的とする.そのために,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
資料番号 KBSE2009-42
発行日

研究会情報
研究会 KBSE
開催期間 2009/11/19(から1日開催)
開催地(和)
開催地(英)
テーマ(和)
テーマ(英)
委員長氏名(和)
委員長氏名(英)
副委員長氏名(和)
副委員長氏名(英)
幹事氏名(和)
幹事氏名(英)
幹事補佐氏名(和)
幹事補佐氏名(英)

講演論文情報詳細
申込み研究会 Knowledge-Based Software Engineering (KBSE)
本文の言語 JPN
タイトル(和) ソフトウェアバグと変数名の関係の分析(ソフトウェア解析)
サブタイトル(和)
タイトル(英) An analysis of relationship between software bug and variable name
サブタイトル(和)
キーワード(1)(和/英) 変数名 / variable name
キーワード(2)(和/英) 変数名とバグの関係 / relationship between software bug and variable name
キーワード(3)(和/英) バグ密度 / bug density
第 1 著者 氏名(和/英) 山本 博之 / Hiroyuki YAMAMOTO
第 1 著者 所属(和/英) 奈良先端科学技術大学院大学情報科学研究科
Graduate School of Information Science, Nara Institute of Science and Technology
第 2 著者 氏名(和/英) 亀井 靖高 / Yasutaka KAMEI
第 2 著者 所属(和/英) 奈良先端科学技術大学院大学情報科学研究科
Graduate School of Information Science, Nara Institute of Science and Technology
第 3 著者 氏名(和/英) 松本 真佑 / Shinsuke MATSUMOTO
第 3 著者 所属(和/英) 奈良先端科学技術大学院大学情報科学研究科
Graduate School of Information Science, Nara Institute of Science and Technology
第 4 著者 氏名(和/英) 門田 暁人 / Akito MONDEN
第 4 著者 所属(和/英) 奈良先端科学技術大学院大学情報科学研究科
Graduate School of Information Science, Nara Institute of Science and Technology
第 5 著者 氏名(和/英) 松本 健一 / Ken-ichi MATSUMOTO
第 5 著者 所属(和/英) 奈良先端科学技術大学院大学情報科学研究科
Graduate School of Information Science, Nara Institute of Science and Technology
発表年月日 2009-11-27
資料番号 KBSE2009-42
巻番号(vol) vol.109
号番号(no) 307
ページ範囲 pp.-
ページ数 5
発行日