Evidence-Driven LLM Agent for C-to-Synthesizable-C Conversion and Verification

Zhe Zhao, Hongbing Lang, Zhihan Xiao, Luke Ztz Hu, John Imoleayo Adebisi +1 more
6/25/2026
cs.ARcs.AI

No confident code implementation found for this paper.

Abstract

Software-compilable C programs routinely fail to complete the four-stage pipeline of a high-level synthesis (HLS) toolchain -- compilation, C simulation (CSim), synthesis, and C/RTL co-simulation (CoSim) -- because HLS accepts only a synthesizable subset of C (HLS-C). Yet most existing large language model (LLM) systems built for HLS code repair only cover the early pipeline stages and feed raw tool logs directly to the model, yielding brittle and hard-to-reproduce fixes.

Show full abstract

We formulate C-to-HLS-C conversion as a closed-loop generation-verification-diagnosis-repair problem on an HLS tool (Xilinx Vitis), contributing three components: an end-to-end workflow of cooperating agents closed by the four-stage verifier under strict evidence isolation; a Progressive Mismatch Localization Chain (PMLC) that localizes CSim/CoSim mismatches through log normalization, AST backward slicing, and dual-trace instrumentation; and a typed-query, two-stage evidence RAG backed by a self-evolving, family-routed repair-card pool. Experimental results show that the proposed workflow substantially outperforms all comparable state-of-the-art models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2026evidencedriven,
  title  = {Evidence-Driven LLM Agent for C-to-Synthesizable-C Conversion and Verification},
  author = {Zhe Zhao and Hongbing Lang and Zhihan Xiao and Luke Ztz Hu and John Imoleayo Adebisi and Songping Mai},
  year   = {2026},
  eprint = {2606.28409},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.28409v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.28409.svg)](https://codeofpaper.com/paper/2606.28409)

Discussion