paperbot · PL 论文追踪

全部论文 待读 收藏

UCT: A Versatile Code Translation Framework Based on a Unified Intermediate Representation

UCT:基于统一中间表示的多用途代码翻译框架
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026引用 0 inbox
Wangcai Li, Dongyan Wang, Zehong Yu, Yifan Cheng, Ning Ge, Chunming Hu, Zhuo Su
crossref: 2026-10-09

AI 速览

一句话:提出统一中间表示 CIR,使同一模型一次翻译即可支撑仿真、测试、验证与部署等多种下游任务。

模型驱动设计中,同一模型常需支持仿真、测试、验证与部署等多种下游任务,但现有工具往往为不同任务分别搭建翻译流程,造成模型重复解析、语义重建冗余以及工具链复用受限。本文提出 UCT,一个基于统一中间表示(CIR)的多用途代码翻译框架。UCT 将模型一次性翻译为 CIR,并在其中保留可执行语义、结构信息、调度关系以及模型与代码之间的映射,随后通过统一的插桩机制与后端翻译生成面向具体任务的定制代码。作者实现了 UCT 并在 Simulink 基准模型上开展评估,结果表明 UCT 能为仿真、测试、验证和部署生成可用的定制代码;其生成的二进制产物还带来额外收益,模型测试覆盖率平均提升 85.9%,相比 Simulink Rapid Accelerator 仿真平均加速 19.8 倍。

问题
模型驱动设计需要同一模型支持仿真、测试、验证、部署等多种下游任务,但现有工具为各任务分别构建翻译流程,导致模型重复解析、语义重建冗余且跨工具链复用困难。
方法
提出统一中间表示 CIR:将模型一次性翻译为 CIR,在其中保留可执行语义、结构信息、调度关系与模型-代码映射,再经由统一的插桩与后端翻译生成任务特定代码。
评估
在 Simulink 基准模型上实现并评估,验证其能为仿真、测试、验证与部署生成可用定制代码;生成的二进制产物使模型测试覆盖率平均提升 85.9%,仿真相对 Simulink Rapid Accelerator 平均加速 19.8 倍。
原文摘要(Abstract)

Model-driven design often requires the same model to support multiple downstream tasks, such as simulation, testing, verification, and deployment. However, existing tools usually build separate translation workflows for different tasks, causing repeated model parsing, redundant semantic reconstruction, and limited reuse across toolchains. In this paper, we present UCT, a versatile code translation framework based on a unified intermediate representation (CIR). UCT translates models into CIR once, preserves executable semantics, structural information, scheduling relations, and model-code mappings, and then generates task-specific code through unified instrumentation and backend translation. We implemented UCT and evaluated it on Simulink benchmark models. The results show that UCT can generate usable customized code for simulation, testing, verification, and deployment. The generated binary artifacts also provide additional benefits, improving model testing coverage by 85.9% on average and accelerating simulation by 19.8× on average over Simulink Rapid Accelerator. The video is presented at https://youtu.be/CCu5iO853p4. The implementation is available at https://github.com/CodeGen123/UCT.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot12310,
  title = {UCT: A Versatile Code Translation Framework Based on a Unified Intermediate Representation},
  author = {Wangcai Li and Dongyan Wang and Zehong Yu and Yifan Cheng and Ning Ge and Chunming Hu and Zhuo Su},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3834636}
}