Lightweight Nontermination Inference with CHCs

Bishoksan Kafle, Graeme Gange, Peter Schachte, Harald Søndergaard, Peter J. Stuckey

Abstract

Non-termination is an unwanted program property (considered a bug) for some software systems, and a safety property for other systems. In either case, automated discovery of preconditions for non-termination is of interest. We introduce NtHorn, a fast lightweight non-termination analyser, able to deduce non-trivial sufficient conditions for non-termination. Using Constrained Horn Clauses (CHCs) as a vehicle, we show how established techniques for CHC program transformation and abstract interpretation can be exploited for the purpose of non-termination analysis. NtHorn is comparable in power to the state-of-the-art non-termination analysis tools, as measured on standard competition benchmark suites (consisting of integer manipulating programs), while typically solving problems an order of magnitude faster.
BibTeX
@inproceedings{kafle2021lightweight,
  author = {Bishoksan Kafle and Graeme Gange and Peter Schachte and Harald Søndergaard and Peter J. Stuckey},
  title = {{Lightweight Nontermination Inference with CHCs}},
  booktitle = {SEFM},
  year = {2021},
  doi = {10.1007/978-3-030-92124-8\_22},
}

Loading related content...

Figure