NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Mutation-Analysis Coverage for Constrained Random Verification

Tao Xie, Wolfgang Mueller, Florian LetombeIFIP 2010 · OpenAlex

Abstract

Hardware verification remains a critical bottleneck in modern design cycles. This paper presents an innovative approach that combines Constrained Random Verification (CRV) with Mutation Analysis (MA) to enhance verification efficiency. By utilizing a probabilistic cost model and a dynamic feedback loop, the proposed system steers random test generators toward input ranges most likely to detect injected faults (mutants). Experimental results on a floating-point unit demonstrate that this method achieves higher coverage with significantly less computational effort compared to traditional uniform random distributions and manual test benches.

Introduction

In the current landscape of hardware design, ensuring that a chip functions exactly as intended is a massive undertaking, often consuming up to 70% of the development cycle. Engineers typically rely on Constrained Random Verification (CRV) to generate test inputs within specific bounds. However, determining the adequacy of these tests is challenging. Traditional metrics like code coverage are often too shallow to guarantee functional correctness.

Mutation Analysis (MA) offers a more rigorous alternative by intentionally injecting small errors (mutants) into the design to see if existing tests can "kill" them. While MA is considered a "gold standard" for measuring test adequacy, its high computational cost—requiring thousands of simulations—has limited its practical application. This research addresses this cost problem by integrating MA directly into the verification loop to guide simulation effort.

Proposed Methodology

The core of the proposed solution is an automated flow that integrates test generation, simulation, and mutation analysis into a closed-loop system.

The proposed automated flow integrating CRV and Mutation Analysis.

The methodology introduces three key innovations:

  1. Two-Phase Filtering: To reduce overhead, the system uses "Weak Mutation" as a preliminary gate. It first checks if a mutation causes a local change in behavior. If no local change occurs, the expensive full simulation (Strong MA) is skipped.
  2. Probabilistic Cost Model: A mathematical model estimates the simulation effort required to kill mutants under specific probability distributions, accounting for both the activation of the bug and its propagation to the final output.
  3. Dynamic Distribution Adjustment: This steering mechanism segments the input domain into ranges. By monitoring which ranges successfully kill mutants, the system dynamically increases the probability of selecting those ranges in future cycles, effectively focusing resources on "hard-to-kill" areas.

Experimental Setup

The approach was evaluated using a VHDL implementation of an IEEE binary double-precision floating-point arithmetic unit (FPU) sourced from OpenCores.org. This design represents a complex data-path circuit with various operational modes and exception handling requirements.

Block diagram of the IEEE floating-point unit used for evaluation.

The evaluation involved a pool of 2,257 non-equivalent mutants across 2,492 lines of code. The self-tuning heuristic was compared against a fixed uniform random distribution and a manually crafted original test bench.

Results and Discussion

The experimental results highlight a clear advantage for the dynamic feedback approach. The heuristic killed 1,679 mutants, significantly outperforming the uniform random approach (~1,300 mutants) and even the manually written test bench (1,440 mutants).

Beyond coverage, the efficiency gains were substantial. The heuristic achieved its superior results in approximately 78,000 simulations over 75 hours. In contrast, the uniform distribution required over 90,000 simulations and more than 85 hours to achieve lower coverage. This demonstrates that treating mutation coverage as a real-time compass rather than just a final grade can significantly optimize the verification process.

Conclusion and Future Work

By integrating Mutation Analysis into the CRV loop, this research provides a practical path toward more rigorous hardware verification. The system effectively avoids wasting time on "easy" input ranges and focuses on the segments that uncover subtle bugs.

Future work will explore applying this methodology to control-oriented circuits, such as microprocessors, which may present different challenges. Additionally, the authors suggest integrating deterministic test generation (such as symbolic execution) to target the final "stubborn" mutants that remain after the random heuristic has reached its limit.

Summary updated

BibTeX
@inproceedings{xie2010efficient,
  author = {Tao Xie and Wolfgang Mueller and Florian Letombe},
  title = {{Efficient Mutation-Analysis Coverage for Constrained Random Verification}},
  booktitle = {IFIP},
  year = {2010},
  doi = {10.1007/978-3-642-15234-4\_12},
}
Figure