paper-with-me

Papers

SpecPylot: Python Specification Generation using Large Language Models

2026-04-17 · Ragib Shahariar Ayon, Shibbir Ahmed arxiv

Automatically generating formal specifications could reduce the effort needed to improve program correctness, but in practice, this is still challenging. Many developers avoid writing contracts by hand, which limits the use of automated verification tools. Recent large language models (LLMs) can generate specifications from code, but these specifications often fail in terms of verification. The reason is syntax errors, overly strict constraints, or mismatches with program behavior. We present SpecPylot, a Python tool that synthesizes executable specifications for Python programs as icontract annotations and checks them using crosshair's symbolic execution. The tool relies on LLMs to propose candidate contracts and uses crosshair to validate them. When crosshair finds a concrete counterexample, SpecPylot updates only the generated contracts and leaves the program itself untouched. In addition, the tool can produce coverage-driven pytest stubs and keep detailed execution artifacts that are useful during debugging. Overall, the evaluation indicates that SpecPylot is able to generate crosshair-compatible contracts for most programs, but it also highlights the practical limits introduced by bounded symbolic exploration and differences in LLM behavior.

📄 PDF Abstract BibTeX arXiv:2604.16560

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Effective LLM-Driven Code Generation with Pythoness

2025-01-03 · Kyla H. Levin, Kyle Gwilt, Emery D. Berger, Stephen N. Freund

The advent of large language models (LLMs) has paved the way for a new era of programming tools with both significant capabilities and risks, as the generated code lacks guarantees of correctness and reliability. Develop…

Code Generation

CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generation

2026-04-14 · Zaoyu Chen, Jianbo Dai, Boyu Zhu, Jingdong Wang 외 arxiv

Large language models (LLMs) can generate code from natural language, but the extent to which they capture intended program behavior remains unclear. Executable behavioral specifications, defined via preconditions and po…

Code Generation

DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agents

2025-11-24 · Rupam Patir, Keyan Guo, Suvadra Barua, Abhijeet Pathak 외 arxiv

Large language models (LLMs) and LLM-based coding agents are now used to generate code from natural-language specifications, yet ensuring such code is both functionally correct and secure remains a challenge. We present …

Code Generation

Evaluating LLM-Generated ACSL Annotations for Formal Verification

2026-02-14 · Arshad Beg, Diarmuid O'Donoghue, Rosemary Monahan arxiv

Formal specifications are crucial for building verifiable and dependable software systems, yet generating accurate and verifiable specifications for real-world C programs remains challenging. This paper presents an empir…

STAB: Specification-driven Testing for Algorithmic Bottlenecks

2026-05-27 · Soohan Lim, Joonghyuk Hahn, Hyundong Jin, Yo-Sub Han arxiv

Evaluating the efficiency of algorithmic code requires test cases that expose runtime bottlenecks. Previous methods generate efficiency test cases either by increasing input size or by generating code-specific inputs tha…