基于模板的循环不变量CEGIS学习启发式强化学习
Learning Heuristics for Template-based CEGIS of Loop Invariants with Reinforcement Learning
摘要:
循环不变综合是程序验证的基础。由于一般问题的不可判定性,用于不变量合成的工具必须使用启发式算法。尽管人们普遍认为合成器的设计对合成器的性能至关重要,但合成器通常是由开发人员根据经验和直觉设计的,有时是以\emph{ad-hoc}的方式。在这项工作中,我们提出了一种方法来系统地学习基于模板的反例引导归纳合成(CEGIS)与强化学习的算法。作为一个具体的例子,我们实现的方法上PCSat,这是一个不变的合成器基于模板的CEGIS。实验表明,PCSat指导下学习我们的框架,不仅优于现有的最先进的CEGIS为基础的求解器,如HoICE和神经求解器Code2Inv,但也有轻微的优势,在线性约束霍恩子句(CHC)求解非CEGIS为基础的求解器,如Eldarica和Spacer。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。