Improving Validity of LLM-Synthesised Test Suits for Compiler Fuzzing

Modern compilers represent complex software systems where traditional testingapproaches struggle to adapt to evolving software semantics and programmingparadigms. The emergence of Large Language Models offered potential for diversetest generation without requiring software rewrites for different languages andframeworks, but their practical application has been limited by low validity rates,wasting computational resources and restricting testing depth.In this thesis, I present a feedback-driven repair framework that addresses validityproblems in LLM-based compiler testing by combining automated error correctionwith coverage-guided programme transformation. My approach constructs a re-pair pipeline that utilises compiler diagnostics and sanitizer outputs to guide localLLMs in correcting static and dynamic errors, transforming invalid programmesinto high-quality seeds. The framework incorporates a semantic change scoreformulation that quantifies programme transformations and enables systematicguidance towards coverage objectives. However, balancing repair effectivenesswith semantic preservation while maintaining programme interestingness presentsa significant challenge.I describe novel coverage-guided automated programme repair (CG-APR) tech-niques where invalid programmes are automatically transformed using structuredprompting and iterative refinement to target untested compiler components. Therepair process uses semantic change analysis based on programme structure andbehavioural differences.I evaluated ReFuzzer on C++ programmes from black-box, grey-box, and white-box fuzzers targeting LLVM/Clang. The results demonstrate validity rates of 96–97% (improving from a 47–49% baseline) and significant coverage improvementsin optimisation passes, with absolute gains of up to +21.2% in inlining and +17.0%in dead code elimination.

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-09-29
DOI
https://doi.org/10.5281/zenodo.17230069
Primary Topic
Malaria Research and Control
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Improving Validity of LLM-Synthesised Test Suits for Compiler Fuzzing

Zenodo (CERN European Organization for Nuclear Research)
Malaria Research and Control
article

Improving Validity of LLM-Synthesised Test Suits for Compiler Fuzzing

article en

Abstract

Modern compilers represent complex software systems where traditional testingapproaches struggle to adapt to evolving software semantics and programmingparadigms. The emergence of Large Language Models offered potential for diversetest generation without requiring software rewrites for different languages andframeworks, but their practical application has been limited by low validity rates,wasting computational resources and restricting testing depth.In this thesis, I present a feedback-driven repair framework that addresses validityproblems in LLM-based compiler testing by combining automated error correctionwith coverage-guided programme transformation. My approach constructs a re-pair pipeline that utilises compiler diagnostics and sanitizer outputs to guide localLLMs in correcting static and dynamic errors, transforming invalid programmesinto high-quality seeds. The framework incorporates a semantic change scoreformulation that quantifies programme transformations and enables systematicguidance towards coverage objectives. However, balancing repair effectivenesswith semantic preservation while maintaining programme interestingness presentsa significant challenge.I describe novel coverage-guided automated programme repair (CG-APR) tech-niques where invalid programmes are automatically transformed using structuredprompting and iterative refinement to target untested compiler components. Therepair process uses semantic change analysis based on programme structure andbehavioural differences.I evaluated ReFuzzer on C++ programmes from black-box, grey-box, and white-box fuzzers targeting LLVM/Clang. The results demonstrate validity rates of 96–97% (improving from a 47–49% baseline) and significant coverage improvementsin optimisation passes, with absolute gains of up to +21.2% in inlining and +17.0%in dead code elimination.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 37%
Malaria Research and Control
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.