paper-with-me

홈 › Papers

Learning Heuristics for Template-based CEGIS of Loop Invariants with Reinforcement Learning

2021-07-16 · Minchao Wu, Takeshi Tsukada, Hiroshi Unno, Taro Sekiyama, Kohei Suenaga

Loop-invariant synthesis is the basis of program verification. Due to the undecidability of the problem in general, a tool for invariant synthesis necessarily uses heuristics. Despite the common belief that the design of heuristics is vital for the performance of a synthesizer, heuristics are often engineered by their developers based on experience and intuition, sometimes in an \emph{ad-hoc} manner. In this work, we propose an approach to systematically learning heuristics for template-based CounterExample-Guided Inductive Synthesis (CEGIS) with reinforcement learning. As a concrete example, we implement the approach on top of PCSat, which is an invariant synthesizer based on template-based CEGIS. Experiments show that PCSat guided by the heuristics learned by our framework not only outperforms existing state-of-the-art CEGIS-based solvers such as HoICE and the neural solver Code2Inv, but also has slight advantages over non-CEGIS-based solvers such as Eldarica and Spacer in linear Constrained Horn Clause (CHC) solving.

📄 PDF Abstract BibTeX arXiv:2107.09766

Code (0)

등록된 구현이 없습니다.

Tasks

reinforcement-learningReinforcement Learning (RL)

Similar Papers 제목 키워드 기반

Enhancing Automated Loop Invariant Generation for Complex Programs with Large Language Models

2024-12-13 · Ruibang Liu, Guoqiang Li, Minyu Chen, Ling-I Wu 외

Automated program verification has always been an important component of building trustworthy software. While the analysis of real-world programs remains a theoretical challenge, the automation of loop invariant analysis…

Invariant Synthesis for Incomplete Verification Engines

2017-12-15 · Daniel Neider, Pranav Garg, P. Madhusudan, Shambwaditya Saha 외

We propose a framework for synthesizing inductive invariants for incomplete verification engines, which soundly reduce logical problems in undecidable theories to decidable theories. Our framework is based on the counter…

Fossil 2.0: Formal Certificate Synthesis for the Verification and Control of Dynamical Models

2023-11-16 · Alec Edwards, Andrea Peruffo, Alessandro Abate

This paper presents Fossil 2.0, a new major release of a software tool for the synthesis of certificates (e.g., Lyapunov and barrier functions) for dynamical systems modelled as ordinary differential and difference equat…

Learning Loop Invariants for Program Verification

2018-12-01 · NeurIPS 2018 12 · Xujie Si, Hanjun Dai, Mukund Raghothaman, Mayur Naik 외

A fundamental problem in program verification concerns inferring loop invariants. The problem is undecidable and even practical instances are challenging. Inspired by how human experts construct loop invariants, we propo…

Decision MakingHeuristic SearchReinforcement Learning

LLM For Loop Invariant Generation and Fixing: How Far Are We?

2025-11-09 · Mostafijur Rahman Akhond, Saikat Chakraborty, Gias Uddin arxiv

A loop invariant is a property of a loop that remains true before and after each execution of the loop. The identification of loop invariants is a critical step to support automated program safety assessment. Recent adva…