arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.04092cs.PL
收藏

可解多项式理想:用于程序分析的理想反射

Solvable Polynomial Ideals: The Ideal Reflection for Program Analysis

John Cyphert, Zachary Kincaid

AI总结:

本文提出理想反射方法,将任意循环抽象为可解多项式映射模型,从而把既有多项式不变量生成技术扩展到含嵌套、分支和非结构化控制流的一般程序,并通过基准实验验证其非线性验证潜力。

摘要:

本文提出了一种程序分析方法,用于生成涉及多项式算术的程序摘要。我们的方法建立在先前使用可解多项式映射来概括循环的技术之上。这些技术能够为受限类别的程序生成所有多项式不变量,但无法应用于该类别之外的程序——例如,具有嵌套循环、条件分支、非结构化控制流等的程序。目前缺乏将这些先前方法应用于一般程序情形的途径。本文弥合了这一差距。我们的方法不再限制所能处理的程序种类,而是将每个循环抽象为一个可用先前技术求解的模型,从而将关于可解多项式映射的先前工作用于一般程序。尽管没有任何方法能够为任意程序生成所有多项式不变量,但我们的方法通过一个单调性结果确立了其价值。我们已经实现了这些技术,并在来自文献的一组基准测试套件上对其进行了测试。实验表明,我们的技术在需要非线性推理的具有挑战性的验证任务上展现出良好前景。

英文摘要:

This paper presents a program analysis method that generates program summaries involving polynomial arithmetic. Our approach builds on prior techniques that use solvable polynomial maps for summarizing loops. These techniques are able to generate all polynomial invariants for a restricted class of programs, but cannot be applied to programs outside of this class -- for instance, programs with nested loops, conditional branching, unstructured control flow, etc. There currently lacks approaches to apply these prior methods to the case of general programs. This paper bridges that gap. Instead of restricting the kinds of programs we can handle, our method abstracts every loop into a model that can be solved with prior techniques, bringing to bear prior work on solvable polynomial maps to general programs. While no method can generate all polynomial invariants for arbitrary programs, our method establishes its merit through a monotonicty result. We have implemented our techniques, and tested them on a suite of benchmarks from the literature. Our experiments indicate our techniques show promise on challenging verification tasks requiring non-linear reasoning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑