---
title: "为反编译代码生成有意义的变量名：一种机器翻译方法"
url: https://awesomerea.org/zh/papers/paper-meaningful-variable-names-for-decompiled-code/
updated: 2026-11-10
type: paper
---

# 为反编译代码生成有意义的变量名：一种机器翻译方法

> 将反编译输出视为源代码的含噪版本，利用统计机器翻译为局部变量生成自然的名称，并评估原始变量名的恢复效果。

- 作者：Alan Jaffe; Jeremy Lacomis; Edward J. Schwartz; Claire Le Goues; Bogdan Vasilescu
- 原标题：Meaningful variable names for decompiled code: A Machine Translation Approach
- 发表载体：ICPC '18
- 发表状态：会议论文
- 出版／提交日期：2018 年 5 月 28 日
- 日期依据：DOI 的 Crossref 记录中的发表日期。
- DOI：10.1145/3196321.3196330
- 来源复核于：2026-11-09
- 收录于：2026-11-10
- 原始论文：<https://doi.org/10.1145/3196321.3196330>
- PDF：<https://dl.acm.org/doi/pdf/10.1145/3196321.3196330>
- BibTeX：<https://awesomerea.org/papers/citations/paper-meaningful-variable-names-for-decompiled-code.bib>
- 目录页面：<https://awesomerea.org/zh/papers/paper-meaningful-variable-names-for-decompiled-code/>
- 记录 JSON：<https://awesomerea.org/papers/paper-meaningful-variable-names-for-decompiled-code/record.json>
- 英文版：[English](https://awesomerea.org/papers/paper-meaningful-variable-names-for-decompiled-code/index.md)

## 研究范围与局限

研究聚焦于反编译 C 代码中的局部变量名。模型使用由 GitHub C 源代码生成的平行语料，以及基于未修改的 C 代码训练的语言模型。

## 与本合集的关联

它重建编译过程中丢失的信息；在保守假设下，原始变量名的恢复率最高为 16.2%。

## 发表与复核说明

发表场所和日期来自该 DOI 的 Crossref 记录。

## BibTeX

```bibtex
@inproceedings{paper-meaningful-variable-names-for-decompiled-code,
  title = {{Meaningful variable names for decompiled code: A Machine Translation Approach}},
  author = {{Alan Jaffe} and {Jeremy Lacomis} and {Edward J. Schwartz} and {Claire Le Goues} and {Bogdan Vasilescu}},
  year = {2018},
  url = {https://doi.org/10.1145/3196321.3196330},
  booktitle = {ICPC '18},
  doi = {10.1145/3196321.3196330},
  month = may
}
```

## 一手来源

1. <https://doi.org/10.1145/3196321.3196330>
2. <https://api.crossref.org/works/10.1145/3196321.3196330>

## 关于此条目

已依据论文及一手来源复核。请通过原始论文或 BibTeX 引用原作者。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
