楠本研究室

業績一覧

ホーム業績一覧

On the Naturalness of Auto-generated Code —Can We Identify Auto-Generated Code Automatically?—

On the Naturalness of Auto-generated Code —Can We Identify Auto-Generated Code Automatically?—
26th IEEE/ACM International Conference on Program Comprehension (ICPC2018), pp.340-343 (2018)
概要: Recently, a variety of studies have been conducted on source code analysis. If auto-generated code is included in the target source code, it is usually removed in a preprocessing phase because the presence of auto-generated code may have negative effects on source code analysis. A straightforward way to remove autogenerated code is searching special comments that are included in the files of auto-generated code. However, it becomes impossible to identify auto-generated code with the way if such special comments have disappeared for some reasons. It is obvious that it takes too much effort to see source files one by one manually. In this paper, we propose a new technique to identify auto-generated code by using the naturalness of auto-generated code.We used a golden set that includes thousands of hand-made source files and source files generated by four kinds of compiler-compilers. Through the evaluation with the dataset, we confirmed that our technique was able to identify auto-generated code with over 99% precision and recall for all the cases. タグ: auto-generated, automatically?—, code, identify, naturalness, we, —can
@inproceedings{MasayukiDoi2018,
  author = {Masayuki Doi and Yoshiki Higo and Ryo Arima and Kento Shimonaka and Shinji Kusumoto},
  title = {On the Naturalness of Auto-generated Code —Can We Identify Auto-Generated Code Automatically?—},
  booktitle = {26th IEEE/ACM International Conference on Program Comprehension (ICPC2018)},
  pages = {340--343},
  year = {2018},
  month = {may}
}