有限树宽、多重上下文无关文法和向下闭包
Bounded treewidth, multiple context-free grammars, and downward closures
AI总结:
本文揭示了有限树宽系统与多重上下文无关语言之间的联系,并提供了一种计算其向下闭包的最优算法。
摘要:
多栈自动机(MPDA)的可达性问题在递归程序的静态分析中有许多应用。例如,多线程递归程序共享内存的安全性验证。由于这些问题是不可判定的,文献中包含了许多可判定(且高效的)MPDA的近似解。一个统一的框架捕捉了许多这些近似解,即有限树宽(tw):对每个MPDA的执行,我们关联一个图;然后考虑所有具有树宽至多k(某个常数)的图的子集。实际上,限制树宽是一种通用方法,用于获得具有可判定可达性的系统类别,甚至超越MPDA的近似解。由此得到的系统也称为MSO可定义的有限树宽系统。虽然有限树宽是可达性和类似分析的强大工具,但这些系统的词语言(即对应执行的动作序列)仍然远未被理解。对于有限特殊树宽(或“有限-stw”)的轻微限制(即等同于MPDA上的有限树宽,并且包含文献中所有研究的有限树宽系统),本文揭示了与多重上下文无关语言(MCFL)之间的联系。我们证明MSO可定义的有限-stw系统的词语言正好是MCFL。我们利用这一联系,为MSO可定义的有限-stw系统提供了一种计算向下闭包(dcl)的最优算法。计算dcl是一个 notoriously 难的问题,具有许多在复杂系统验证中的应用:例如,我们展示在具有动态生成MSO可定义的有限-stw过程的程序中,安全验证的复杂度与具有顺序递归过程的程序相同。
英文摘要:
The reachability problem in multi-pushdown automata (MPDA) has many applications in static analysis of recursive programs. An example is safety verification of multi-threaded recursive programs with shared memory. Since these problems are undecidable, the literature contains many decidable (and efficient) underapproximations of MPDA. A uniform framework that captures many of these underapproximations is that of bounded treewidth (tw): To each execution of the MPDA, we associate a graph; then we consider the subset of all graphs that have a wt at most $k$, for some constant $k$. In fact, bounding tw is a generic approach to obtain classes of systems with decidable reachability, even beyond MPDA underapproximations. The resulting systems are also called MSO-definable bounded-tw systems. While bounded tw is a powerful tool for reachability and similar types of analysis, the word languages (i.e. action sequences corresponding to executions) of these systems remain far from understood. For the slight restriction of bounded special tw, or "bounded-stw" (which is equivalent to bounded tw on MPDA, and even includes all bounded-tw systems studied in the literature), this work reveals a connection with multiple context-free languages (MCFL), a concept from computational linguistics. We show that the word languages of MSO-definable bounded-stw systems are exactly the MCFL. We exploit this connection to provide an optimal algorithm for computing downward closures (dcl) for MSO-definable bounded-stw systems. Computing dcl is a notoriously difficult task that has many applications in the verification of complex systems: As an example application, we show that in programs with dynamic spawning of MSO-definable bounded-stw processes, safety verification has the same complexity as in the case of processes with sequential recursive processes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。