过程间双变量Herbrand等式
Inter-procedural Two-Variable Herbrand Equalities
摘要:
我们证明,所有有效的Herbrand等式可以在程序间推断的所有分配,其右手边取决于最多一个变量的程序被考虑在内。分析是基于程序摘要,代表最弱的前置条件,许多通用的后置条件与模板变量。为了达到有效的表示所有发生的最弱的先决条件,我们表明,几乎所有的值可能在运行时计算,它们可以被唯一分解成树模式和地面术语。此外,我们引入了一个近似的概念包容,这是有效的决定,并确保有限的合取等式可能不会无限增长。基于这些技术结果,我们实现了一个有效的不动点迭代来推断所有的程序间有效的Herbrand等式。最后,我们表明,一个不变的候选人与一个常数的变量,可以在多项式时间验证。
英文摘要:
We prove that all valid Herbrand equalities can be inter-procedurally inferred for programs where all assignments whose right-hand sides depend on at most one variable are taken into account. The analysis is based on procedure summaries representing the weakest pre-conditions for finitely many generic post-conditions with template variables. In order to arrive at effective representations for all occurring weakest pre-conditions, we show for almost all values possibly computed at run-time, that they can be uniquely factorized into tree patterns and a ground term. Moreover, we introduce an approximate notion of subsumption which is effectively decidable and ensures that finite conjunctions of equalities may not grow infinitely. Based on these technical results, we realize an effective fixpoint iteration to infer all inter-procedurally valid Herbrand equalities for these programs. Finally we show that an invariant candidate with a constant number of variables, can be verified in polynomial time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。