Termination analysis without the tears
Termination analysis without the tears
复制标题
不流泪的终结分析
DOI:
10.1145/3453483.3454110
复制
发表时间:
2021
期刊:
影响因子:
--
通讯作者:
Kincaid, Zachary
中科院分区:
文献类型:
--
作者:
Zhu, Shaowei;Kincaid, Zachary
Determining whether a given program terminates is the quintessential undecidable problem. Algorithms for termination analysis may be classified into two groups: (1) algorithms with strong behavioral guarantees that work in limited circumstances (e.g., complete synthesis of linear ranking functions for polyhedral loops), and (2) algorithms that are widely applicable, but have weak behavioral guarantees (e.g., Terminator). This paper investigates the space in between:how can we design practical termination analyzers with useful behavioral guarantees?This paper presents a termination analysis that is bothcompositional(the result of analyzing a composite program is a function of the analysis results of its components) andmonotone(“more information into the analysis yields more information out”). The paper has two key contributions. The first is an extension of Tarjan’s method for solving path problems in graphs to solveinfinitepath problems. This provides a foundation upon which to build compositional termination analyses. The second is a collection of monotone conditional termination analyses based on this framework. We demonstrate that our tool ComPACT (Compositional and Predictable Analysis for Conditional Termination) is competitive with state-of-the-art termination tools while providing stronger behavioral guarantees.