English

The Complexity of Coverage

Programming Languages 2008-12-18 v1 Software Engineering

Abstract

We study the problem of generating a test sequence that achieves maximal coverage for a reactive system under test. We formulate the problem as a repeated game between the tester and the system, where the system state space is partitioned according to some coverage criterion and the objective of the tester is to maximize the set of partitions (or coverage goals) visited during the game. We show the complexity of the maximal coverage problem for non-deterministic systems is PSPACE-complete, but is NP-complete for deterministic systems. For the special case of non-deterministic systems with a re-initializing ``reset'' action, which represent running a new test input on a re-initialized system, we show that the complexity is again co-NP-complete. Our proof technique for reset games uses randomized testing strategies that circumvent the exponentially large memory requirement in the deterministic case.

Keywords

Cite

@article{arxiv.0804.4525,
  title  = {The Complexity of Coverage},
  author = {Krishnendu Chatterjee and Luca de Alfaro and Rupak Majumdar},
  journal= {arXiv preprint arXiv:0804.4525},
  year   = {2008}
}

Comments

15 Pages, 1 Figure

R2 v1 2026-06-21T10:35:25.633Z