SEDCoT: Enhancing LLM-Based COBOL Code Translation via Symbolic Execution and Delta Debugging
Phillip Entin, Wenchao Gu, Alexander Knapp, Chunyang Chen
Key points
From the paper's conclusion- SEDCoT first leverages LLMs for initial translation, then combines symbolic execution with LLM guidance to generate test suites and iteratively repair semantic discrepancies.
Abstract
COBOL remains critical across banking, insurance, and government infrastructure. However, maintenance is increasingly challenging due to outdated technologies, sparse documentation, and developer retirement, necessitating code translation into modern languages like C. Traditional rule-based transcompilers yield outputs that are difficult to read and maintain, while general-purpose large language models (LLMs) achieve suboptimal correctness because COBOL is a low-resource language with distinct logic patterns. To bridge this gap, we propose SEDCoT, a novel COBOL-to-C translation framework. SEDCoT first leverages LLMs for initial translation, then combines symbolic execution with LLM guidance to generate test suites and iteratively repair semantic discrepancies. Finally, it integrates delta debugging to minimize failing tests into succinct counterexamples, accelerating automated code repair. Evaluating SEDCoT on a public COBOL-to-C dataset demonstrates that it outperforms state-of-the-art baselines by at least 12% while producing translations with substantially higher readability than rule-based alternatives.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CodeTransBenchmark: evaluating LLM-based code translation and repair across programming languagesEmpirical Software Engineering · 2026
- A Survey of Code-to-Code Translation: From Statistical Rule-Based Systems to LLM AgentsAlgorithms · 2026
- IRONPROOF: COBOL-to-Python Transpilation with SMT-Based Equivalence CheckingarXiv · 2026
- TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution AlignmentProceedings of the ACM on software engineering. · 2026
- Certifying Repeatable Entry-Replay Witnesses for COBOL-to-Java MigrationarXiv · 2026
- Code–Test Co-translation: Towards Practical and Effective Program Migration in the WildProceedings of the ACM on Programming Languages · 2026