Discrete Controller Synthesis (DCS) is a powerful formal method for automatically generating specifications of discrete event systems. However, its practical adoption is often hindered by the highly specialized nature of formal models written in languages such as FSP and FLTL. In practice, syntax errors in modeling frequently become an important bottleneck for developers-not only disrupting the workflow and reducing productivity, but also diverting attention from higher-level semantic design. To this end, this paper presents an automated approach that leverages Large Language Models (LLMs) to repair syntax errors in DCS models using a well-designed, knowledge-informed prompting strategy. Specifically, the prompting is derived from a systematic empirical study of common error patterns, identified through expert interviews and student workshops. It equips the LLM with DCS-specific domain knowledge, including formal grammar rules and illustrative examples, to guide accurate corrections. To evaluate our method, we constructed a new benchmark by systematically injecting realistic syntax errors into validated DCS models. The quantitative evaluation demonstrates the high effectiveness of the proposed approach in terms of repair accuracy and its practical utility regarding time, achieving a speedup of 3.46 times compared to human developers. The experimental replication suite, including the benchmark and prompts, is available at https://github.com/Uuusay1432/DCSModelRepair.git
SPVR: syntax-to-prompt vulnerability repair based on large language models
Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Hong Kong University of Science and Technology(香港科技大学);The Chinese University of Hong Kong(香港中文大学);Chinese Academy of Sciences(中国科学院)
SYNFIX: Automatically Fixing Syntax Errors using Compiler Diagnostics
University of California, Davis(加州大学戴维斯分校)
初级程序员要与现代程序设计语言(如Java)的复杂语法作斗争,并犯下许多语法错误。来自编译器和IDE的诊断语法错误消息有时很有用,但通常这些消息都是晦涩难懂的。在处理语法错误时,自动修复建议可以帮助学生,节省教师的时间。学生错误和修复的大样本现在可用,提供了数据驱动的机器学习方法来帮助学生修复语法错误的可能性。目前的机器学习方法在修复较短程序中的语法错误方面做得很好,但即使对于较长的程序也不起作用。我们介绍了SYNFIX,一种基于机器学习的工具,通过学习使用编译器诊断,采用一个非常大的神经模型,利用无监督的预训练,并依赖于多标签分类而不是自回归合成来生成(修复)输出,从而大大提高了最新技术水平。我们详细描述了SYNFIX的体系结构,并提供了详细的评估。我们已经将SYNFIX构建为Visual Studio Code的免费开源版本;我们免费提供所有源代码和模型。
SmartHomeSecure: Automated Detection and Repair of Smart Home Configuration Errors Using Large Language Models
Myers-Lawson School of Construction, Virginia Polytechnic Institute and State University(Myers-Lawson工程学院,弗吉尼亚理工学院和州立大学);School of Technology, Eastern Illinois University(技术学院,东伊利诺伊大学)
Tea: Program Repair Using Neural Network Based on Program Information Attention Matrix
Microsoft Asia-Pacific Technology Company Ltd.(微软亚太科技有限公司);University of Chinese Academy of Sciences(中国科学院大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所)
Diagnosing and Resolving Android Applications Building Issues: An Empirical Study
University of Cincinnati(辛辛那提大学);California State University, Long Beach(加州州立大学长滩分校);University of Central Missouri(中密苏里大学);The University of Arizona(亚利桑那大学)
Form, Not Content? A Preregistered, Placebo-Controlled Evaluation of Learned Error-Conditioned Self-Repair Through Prompts and Weights in Frozen Small Code Models
PythaLab, Yıldız Technical University, Istanbul, Turkey(PythaLab,Yıldız技术大学,伊斯坦布尔,土耳其)