| 講演抄録/キーワード |
| 講演名 |
2014-03-12 10:25
コードクローンを用いたコード補完手法の提案 ○石原知也・肥後芳樹・楠本真二(阪大) SS2013-87 |
| 抄録 |
(和) |
ソースコードの実装を効率化する手段の1つにコード補完がある.コード補完は開発者が途中まで実装し
たコードの不足部分を補完する機能であり,近年ではソースコードの再利用支援を目的としたコード補完手法も提案
されている.しかし,既存のコード補完手法は途中まで実装されたソースコードの後に続く部分のみを補完するにと
どまり,開発者が実装途中に書き漏らしたコードを補完することはできない.本研究では,書き漏らしたコードの発生
状況を調べ,書き漏らしコードの補完が有効であるかを調査する.また,書き漏らしコードの補完も実現するために,
コードクローンを用いたコード補完手法を提案して調査に用いる.提案する手法は途中まで実装されたソースコードの
Type-3 コードクローンを見つけることで,そのソースコードの後に続く部分だけでなく書き漏らしたコードを特定し
補完することが可能になる.本論文では,被験者実験を行いコードの書き漏らしについて調査を行った.調査の結果,
多くの被験者の実装において書き漏らしが発生しており,書き漏らしコードの補完は有益であることが確認された. |
| (英) |
Code completion is one of the techniques that raise efficiency of implementation. Code completion
techniques make up for code lacking in half-written code. Recently, some researchers have proposed techniques
using code completion for helping code reuse. However, existing code completion techniques, which complete only
code following the half-written code, cannot complete code in the middle of the half-written code. In this research,
we investigate the situation where developers forget to write some code and examine whether it is useful to complete
the middle code. Also, we propose a new code completion technique with code clone detection techniques in order
to complete the middle code. The proposed technique can complete both the middle code and following code by
detecting Type-3 code clones of the half-written method. In this research, we have conducted an experiment with
subjects to investigate the code that subjects forgot to write. As a result, we have confirmed that most of the
subjects forgot to write some code in their given tasks and that it was useful to complete the middle code. |
| キーワード |
(和) |
コードクローン / コード補完 / ソースコード再利用 / / / / / |
| (英) |
Code Clone / Code Completion / Source Code Reuse / / / / / |
| 文献情報 |
信学技報, vol. 113, no. 489, SS2013-87, pp. 91-96, 2014年3月. |
| 資料番号 |
SS2013-87 |
| 発行日 |
2014-03-04 (SS) |
| ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
| PDFダウンロード |
SS2013-87 |