Skip to content
Book Open access

Compilomorphic Fuzzing: Turning a Compiler Against Itself

Jul 2026 · SIGSOFT FSE Companion · pp. 1267-1271 · 0 citations · 24 references
Computer Science

TL;DR

Compilomorphic fuzzing is introduced, a new validation approach that turns a compiler into its own test oracle via structure-preserving transformations over programs and structured inputs, establishing a practical, model-free foundation for validating compilers in critical DSL domains.

Abstract

Compilers for structured data pipelines, often specified using domain-specific languages such as P4, are notoriously difficult to validate. We introduce compilomorphic fuzzing, a new validation approach that turns a compiler into its own test oracle via structure-preserving transformations over programs and structured inputs. The core idea is to generate pairs of semantically equivalent but structurally distinct inputs (e.g., packets) and programs (e.g., pipeline specifications), and then assert that the compiler's observable behaviour remains invariant. Any deviation exposes a deep semantic bug. We present the formal basis for this approach, compilomorphism, and a prototype fuzzing framework that operationalises it, establishing a practical, model-free foundation for validating compilers in critical DSL domains.

Read PDF

Similar papers

Preprint Aug 2026

Generics-Aware Fuzz Target Generation for Rust Libraries via Structured API Analysis

Fuzzing Rust library APIs requires constructing well-typed, compilable call sequences that satisfy ownership rules, generic parameters, and trait bounds; existing tools ignore these constraints or use shallow heuristics, yielding low coverage. We present GRAFT, which extracts structured API information from Rust docume...

Yiming Chen, Kaiwen Zhang, Guanjun Liu et al. · 0 citations
Jul 2026

Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code

It is shown that generative compilation reduces non-compiling outputs and improves functional correctness, relative to standard post-generation feedback, by detecting a broad range of errors close to their source and early during generation, thereby reducing errors cascades and enabling focused diagnostics.

Niels Mündler-Sasahara, Hristo Venev, Dawn Song et al. · 0 citations

Lazarus: Where Compilers Meet Education

This paper presents both the source language, and its register-based virtual machine, while discussing an often neglected feature in compiler design: the incremental parser.

R. Gonçalves, P. Henriques, J. Ramalho et al. · 0 citations
Preprint Aug 2026

The Polyglot's Dilemma: Conformance Testing a Dozen Specs in as Many Languages

MongoDB maintains client libraries in a dozen programming languages, used by tens of thousands of organizations and millions of developers. Most are implemented natively rather than as wrappers around a shared core. Ensuring consistent behavior across these libraries, comprising millions of lines of code, is hard but e...

A. J. J. Davis, Jeremy Mikola, Jeff Yemin · 0 citations
Jul 2026

Metamorphic Testing of Transpilers via Mutation Consistency of Programs

The proposed metamorphic testing technique can effectively reveal faults that would remain undetected with pure fuzzing, and is introduced as a novel metamorphic testing technique tailored to transpilers.

Enea Raffaele Ilario Papaleo, Luca Guglielmo, G. Denaro · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.