Interval constraint-based mutation testing of numerical specifications
Clothilde Jeangoudoux, Eva Darulova, Christoph Quirin Lauter
Abstract
Mutation testing is an established approach for checking whether code satisfies a code-independent functional specification, and for evaluating whether a test set is adequate. Current mutation testing approaches, however, do not account for accuracy requirements that appear with numerical specifications implemented in floatingpoint arithmetic code, but which are a frequent part of safety-critical software. We present Magneto, an instantiation of mutation testing that fully automatically generates a test set from a real-valued specification. The generated tests check numerical code for accuracy, robustness and functional behavior bugs. Our technique is based on formulating test case and oracle generation as a constraint satisfaction problem over interval domains, which soundly bounds errors, but is nonetheless efficient. We evaluate Magneto on a standard floating-point benchmark set and find that it outperforms a random testing baseline for producing useful adequate test sets. CCS CONCEPTS • Software and its engineering → Software testing and debugging; • Mathematics of computing → Interval arithmetic; • Theory of computation → Constraint and logic programming.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on1
Related papers
- QSF: Multi-objective Optimization Based Efficient Solving for Floating-Point ConstraintsXu Yang, Zhenbang Chen, Wei Dong, Ji WangFSE 2025
- Fuzzing for CPS Mutation TestingJaekwon Lee, Enrico Viganò, Oscar Cornejo, Fabrizio Pastore et al.ASE 2023 · 4 citations
- Systematic Assessment of Fuzzers using Mutation AnalysisPhilipp Görz, Björn Mathis, Keno Hassler, Emre Güler et al.USENIX Security 2023
- Mantra: Mutation Testing of Hardware Design Code Based on Real BugsJiang Wu, Yan Lei, Zhuo Zhang, Xiankai Meng et al.DAC 2023 · 7 citations
- One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic ValidationYongheng Chen, Rui Zhong, Hong Hu, Hangfan Zhang et al.S&P 2021 · 70 citations
