Static verification is a powerful method for enhancing software quality, but it demands significant human labor and resources. This is particularly true of static verifiers that reason about heap manipulating programs using an ownership logic. LLMs have shown promise in a number of software engineering activities, including code generation, test generation, proof generation for theorem provers, and specification generation for static verifiers. However, prior work has not explored how well LLMs can perform specification generation for specifications based in an ownership logic, such as separation logic. To address this gap, this paper explores OpenAI's GPT-4o model's effectiveness in generating specifications on C programs that are verifiable with VeriFast, a separation logic based static verifier. Our experiment employs three different types of user inputs as well as basic and Chain-of-Thought (CoT) prompting to assess GPT's capabilities. Our results indicate that the specifications generated by GPT-4o preserve functional behavior, but struggle to be verifiable. When the specifications are verifiable they contain redundancies. Future directions are discussed to improve the performance.
Toward Secure and Reliable PDDL Formalization of Large Language Models with Planner-in-the-Loop Feedback
State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences(多模态人工智能系统国家重点实验室,自动化研究所,中国科学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);School of Industry-education Integration, University of Chinese Academy of Sciences(中国科学院大学产教融合学院)
From Informal to Formal -- Incorporating and Evaluating LLMs on Natural Language Requirements to Verifiable Formal Proofs
The Hong Kong University of Science and Technology(香港科学与技术大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);Guangzhou Institute of Technology, Xidian University(西安电子科技大学广州研究院);Chongqing University(重庆大学);ICTT and ISN Laboratory, Xidian University(西安电子科技大学ICTT和ISN实验室)
VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generation
School of Mathematical Sciences, Shanghai Jiao Tong University(上海交通大学数学科学学院);School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳)科学与工程学院);School of Mathematics, Jilin University(吉林大学数学学院);School of Mathematical Sciences, Tongji University(同济大学数学科学学院);Zhiyuan College, Shanghai Jiao Tong University(上海交通大学紫阳学院);School of Future Technology, South China University of Technology(华南理工大学未来技术学院);Institute of Natural Sciences, Shanghai Jiao Tong University(上海交通大学自然科学研究院);MOE-LSC, CMA-Shanghai, Shanghai Jiao Tong University(上海交通大学MOE-LSC、CMA-上海)
SA-Bench: Evaluating Semantic Alignment in LLM-Based Paper Reproduction
Beihang University(北京航空航天大学);Shanghai Jiao Tong University(上海交通大学);Minzu University of China(中央民族大学);Peking University(北京大学);Zhongguancun Academy(中关村科学院)
FASTRIC: Prompt Specification Language for Verifiable LLM Interactions
Department of Civil and Environmental Engineering(土木与环境工程系);California Institute for Telecommunications and Information Technology(电信与信息科技学院);Institute of Transportation Studies(交通研究学院);University of California, Irvine, CA 92697-3600(加州大学伊维德分校)