arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1803.03164cs.LO
收藏

关于分离逻辑(扩展版)中指针运算的复杂性

On the Complexity of Pointer Arithmetic in Separation Logic (an extended version)

James Brotherston, Max Kanovich

摘要:

我们研究了在分离逻辑中增加指针运算的复杂性后果。具体来说,我们研究扩展的点到片段的符号堆分离逻辑与各种形式的Presburger算术约束。最重要的是,我们发现,即使在最小的情况下,当我们只允许简单的“差异约束”的合取,(x ′ \leq x+k)其中k是整数,多项式时间可判定性已经是不可能的:可满足性成为NP完全,无量词蕴涵成为CoNP完全蕴涵,量化蕴涵成为P2完全蕴涵(P2是多项式时间层次中的第二类)事实上,我们证明了上界是相同的,P2,即使对于全指针算术,但具有固定的指针偏移量,其中我们允许初等公式的任何布尔组合(x '= x+ k 0),(x' \leq x+ k 0)和(x'<x+ k 0),并且,除了指向公式之外,我们允许长度由k 0限定的数组的空间公式和长度由k 0限定的列表等,其中k 0是固定整数。然而,如果我们允许一种更有表现力的指针算术形式-即任意指针和上的基本公式的任意布尔组合-那么对于可满足性和无量化器蕴涵来说,复杂度的增加相对温和:它们仍然分别是NP-完全和coNP-完全的,并且对于量化蕴涵来说,复杂度似乎急剧增加。

英文摘要:

We investigate the complexity consequences of adding pointer arithmetic to separation logic. Specifically, we study extensions of the points-to fragment of symbolic-heap separation logic with various forms of Presburger arithmetic constraints. Most significantly, we find that, even in the minimal case when we allow only conjunctions of simple "difference constraints" (x'\leq x+k) where k is an integer, polynomial-time decidability is already impossible: satisfiability becomes NP-complete, while quantifier-free entailment becomes coNP-complete and quantified entailment becomes P2-complete (P2 is the second class in the polynomial-time hierarchy) In fact we prove that the upper bound is the same, P2, even for the full pointer arithmetic but with a fixed pointer offset, where we allow any Boolean combinations of the elementary formulas (x'=x+k0), (x'\leq x+k0), and (x'<x+k0), and, in addition to the points-to formulas, we allow spatial formulas of the arrays the length of which is bounded by k0 and lists which length is bounded by k0, etc, where k0 is a fixed integer. However, if we allow a significantly more expressive form of pointer arithmetic - namely arbitrary Boolean combinations of elementary formulas over arbitrary pointer sums - then the complexity increase is relatively modest for satisfiability and quantifier-free entailment: they are still NP-complete and coNP-complete respectively, and the complexity appears to increase drastically for quantified entailments.

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

↑