# Mull it over: mutation testing based on LLVM

**Authors:** Alex Denisov, Stanislav Pankevich

arXiv: 1908.01540 · 2019-08-06

## TL;DR

Mull is an open-source mutation testing tool based on LLVM IR that offers language independence and efficient mutation processing through JIT compilation, enabling faster testing for compiled languages.

## Contribution

Mull introduces a novel LLVM IR-based mutation testing approach that supports multiple languages and improves efficiency with selective recompilation.

## Key findings

- Mull successfully tested on real-world projects like OpenSSL and LLVM.
- Mull achieves faster mutation testing due to IR-level modifications.
- Supports multiple programming languages compiling to LLVM IR.

## Abstract

This paper describes Mull, an open-source tool for mutation testing based on the LLVM framework. Mull works with LLVM IR, a low-level intermediate representation, to perform mutations, and uses LLVM JIT for just-in-time compilation. This design choice enables the following two capabilities of Mull: language independence and fine-grained control over compilation and execution of a tested program and its mutations. Mull can work with code written in any programming language that supports compilation to LLVM IR, such as C, C++, Rust, or Swift. Direct manipulation of LLVM IR allows Mull to do less work to generate mutations: only modified fragments of IR code are recompiled, and this results in faster processing of mutated programs. To our knowledge, no existing mutation testing tool provides these capabilities for compiled programming languages. We describe the algorithm and implementation details of Mull, highlight current limitations of Mull, and present the results of our evaluation of Mull on real-world projects such as RODOS, OpenSSL, LLVM.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1908.01540/full.md

## References

19 references — full list in the complete paper: https://tomesphere.com/paper/1908.01540/full.md

---
Source: https://tomesphere.com/paper/1908.01540