Can large language models reason about program invariants?

K Pei, D Bieber, K Shi, C Sutton… - … Conference on Machine …, 2023 - proceedings.mlr.press
Identifying invariants is an important program analysis task with applications towards
program understanding, bug finding, vulnerability analysis, and formal verification. Existing …

{DistAI}:{Data-Driven} automated invariant learning for distributed protocols

J Yao, R Tao, R Gu, J Nieh, S Jana… - 15th USENIX symposium …, 2021 - usenix.org
Distributed systems are notoriously hard to implement correctly due to non-determinism.
Finding the inductive invariant of the distributed protocol is a critical step in verifying the …

Ranking llm-generated loop invariants for program verification

S Chakraborty, SK Lahiri, S Fakhoury… - arXiv preprint arXiv …, 2023 - arxiv.org
Synthesizing inductive loop invariants is fundamental to automating program verification. In
this work, we observe that Large Language Models (such as gpt-3.5 or gpt-4) are capable of …

Counterexample guided inductive synthesis modulo theories

A Abate, C David, P Kesseli, D Kroening… - … Conference on Computer …, 2018 - Springer
Program synthesis is the mechanised construction of software. One of the main difficulties is
the efficient exploration of the very large solution space, and tools often require a user …

CLN2INV: learning loop invariants with continuous logic networks

G Ryan, J Wong, J Yao, R Gu, S Jana - arXiv preprint arXiv:1909.11542, 2019 - arxiv.org
Program verification offers a framework for ensuring program correctness and therefore
systematically eliminating different classes of bugs. Inferring loop invariants is one of the …

Reconciling enumerative and deductive program synthesis

K Huang, X Qiu, P Shen, Y Wang - Proceedings of the 41st ACM …, 2020 - dl.acm.org
Syntax-guided synthesis (SyGuS) aims to find a program satisfying semantic specification as
well as user-provided structural hypotheses. There are two main synthesis approaches …

Sygus-comp 2016: Results and analysis

R Alur, D Fisman, R Singh, A Solar-Lezama - arXiv preprint arXiv …, 2016 - arxiv.org
Syntax-Guided Synthesis (SyGuS) is the computational problem of finding an
implementation f that meets both a semantic constraint given by a logical formula $\varphi …

Satisfiability and synthesis modulo oracles

E Polgreen, A Reynolds, SA Seshia - … , PA, USA, January 16–18, 2022 …, 2022 - Springer
In classic program synthesis algorithms, such as counterexample-guided inductive synthesis
(CEGIS), the algorithms alternate between a synthesis phase and an oracle (verification) …

Demystifying Template-Based Invariant Generation for Bit-Vector Programs

P Yao, J Ke, J Sun, H Fu, R Wu… - 2023 38th IEEE/ACM …, 2023 - ieeexplore.ieee.org
The template-based approach to invariant generation is a parametric and relatively
complete methodology for inferring loop invariants. The relative completeness ensures the …

Extending enumerative function synthesis via SMT-driven classification

H Barbosa, A Reynolds, D Larraz… - 2019 Formal Methods in …, 2019 - ieeexplore.ieee.org
Many relevant problems in formal methods can be tackled using enumerative syntax-guided
synthesis (SyGuS). Algorithms for enumerative SyGuS range from universally applicable …