講演抄録/キーワード |
講演名 |
2012-07-28 10:40
プログラム構造の簡略化によるメトリクス計測方法の改善 ○佐々木 唯・石原知也・堀田圭佑・畑 秀明・肥後芳樹・井垣 宏・楠本真二(阪大) SS2012-24 KBSE2012-26 |
抄録 |
(和) |
ソフトウェア保守の分野において,サイクロマチック数は代表的な複雑度メトリクスとして良く用いられている.しかし,サイクロマチック数はソースコード中の分岐の数を表しているだけで内容は考慮していないため,サイクロマチック数が大きいからといって人が複雑だとみなすとは限らない.例えば,ソースコード中にif文が繰り返し記述されている場合サイクロマチック数は増大するが,これらが単純な記述の繰り返しであれば,保守に影響を及ぼす複雑なソースコードであるとは考えにくい.本稿では,人が複雑だとみなすソースコードを識別するために,ソースコード中の繰り返し部分を簡略化してメトリクスを計測する手法を提案する.提案手法の有用性を確認するために,オープンソース・ソフトウェアに対してメトリクスを計測し,手法適用の有無による比較を行った.その結果,提案手法を適用して計測したメトリクスは,人間の主観による複雑度の評価に近いことが確認できた. |
(英) |
Cyclomatic complexity is used as a representative complexity metric in software maintenance. However, it does not always represent cognitive complexity. It is because cyclomatic complexity does not consider the contents of the branch but only count the number of paths in the source code. For example, repeated if-statements produce a high cyclomatic complexity value. Such structures are repetitions of simple instructions, which are not complicated and do not have a negative impact on software maintenance. In this paper, we propose a method to identify cognitive complexity by simplifying such repeated structures. We conducted a case study with open source software systems to reveal the usefulness of the proposed method, and then we confirmed that the metrics values with the proposed method had stronger correlation with human consideration. |
キーワード |
(和) |
実証的研究 / 複雑度メトリクス / メトリクス計測 / / / / / |
(英) |
Empirical Study / Complexity Metrics / Metrics Measurement / / / / / |
文献情報 |
信学技報, vol. 112, no. 164, SS2012-24, pp. 85-90, 2012年7月. |
資料番号 |
SS2012-24 |
発行日 |
2012-07-20 (SS, KBSE) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
SS2012-24 KBSE2012-26 |