

















Abstract:Determining whether a program terminates is a central problem in computer science. Turing's Halting Problem established termination as undecidable, showing that no algorithm can universally determine termination for all programs and inputs. Hence, verification tools approximate termination, sometimes failing to prove or disprove; these tools rely on problem specific architectures, and are usually tied to particular programming languages. Recent advances in LLMs raise a natural question: To what extent can they reason about program termination? We evaluate frontier LLMs on a diverse set of C programs from the International Competition on Software Verification (SV Comp) 2025. Our results show that GPT-5 and Claude Sonnet 4.5 achieve scores comparable to top ranked verification tools (with test time scaling). However, while models often correctly infer whether programs terminate, they frequently fail to construct a witness as formal proof, revealing a gap between semantic recognition and symbolic proof generation. Performance further degrades as code length increases. To analyze this gap, we introduce a divergence precondition formulation that characterizes non termination conditions as logical constraints. We hope these findings motivate future research on real-world termination benchmarks, neuro-symbolic approaches that combine LLMs with symbolic verification methods, and, more broadly LLM reasoning on other undecidable problems.
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Programming Languages (cs.PL) |
| Cite as: | arXiv:2601.18987 [cs.CL] |
| (or arXiv:2601.18987v5 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2601.18987 arXiv-issued DOI via DataCite |
From: Oren Sultan [view email]
[v1]
Mon, 26 Jan 2026 21:44:12 UTC (726 KB)
[v2]
Wed, 28 Jan 2026 13:02:15 UTC (726 KB)
[v3]
Thu, 29 Jan 2026 04:56:58 UTC (726 KB)
[v4]
Sat, 28 Mar 2026 10:34:08 UTC (765 KB)
[v5]
Tue, 26 May 2026 08:18:34 UTC (755 KB)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。