针对模式正则语言的预测监控
Predictive Monitoring against Pattern Regular Languages
AI总结:
本文提出针对模式正则语言的预测运行时监控方法,通过常空间流线性时间算法高效检测并发软件中的规范违规。
摘要:
在本文中,我们关注动态分析并发软件以符合高级时间规范的问题。现有的针对此类规范的运行时监控技术主要针对顺序软件,且在并发存在时表现不足——违规可能仅在复杂的线程交错中被观察到,需要多次重新运行底层软件。为此,我们研究了预测运行时监控问题,灵感来源于最近广泛研究的预测数据竞争检测问题。预测运行时监控问题询问,给定一个执行σ,是否可以被合理地重新排列以暴露规范的违规。在本文中,我们关注由正则语言给出的规范。我们的重新排列概念是迹等价,即一个执行被认为是另一个的重新排列,如果可以通过连续交换相邻的独立操作得到。我们首先证明预测问题具有超线性的下界O(n^α),其中n是执行中的事件数,α是描述交换程度的参数。因此,即使在这一设置下,预测运行时监控也难以高效解决。为此,我们识别出一种正则语言的子类,称为模式语言(及其扩展广义模式语言)。模式语言可以自然地表达某些数量的(标记)事件的特定顺序,并受到流行的经验假设“小错误深度”假设的启发。更重要的是,我们证明对于模式(和广义模式)语言,预测监控问题可以使用常空间流线性时间算法解决。
英文摘要:
In this paper, we focus on the problem of dynamically analysing concurrent software against high-level temporal specifications. Existing techniques for runtime monitoring against such specifications are primarily designed for sequential software and remain inadequate in the presence of concurrency -- violations may be observed only in intricate thread interleavings, requiring many re-runs of the underlying software. Towards this, we study the problem of predictive runtime monitoring, inspired by the analogous problem of predictive data race detection studied extensively recently. The predictive runtime monitoring question asks, given an execution $σ$, if it can be soundly reordered to expose violations of a specification. In this paper, we focus on specifications that are given in regular languages. Our notion of reorderings is trace equivalence, where an execution is considered a reordering of another if it can be obtained from the latter by successively commuting adjacent independent actions. We first show that the problem of predictive admits a super-linear lower bound of $O(n^α)$, where $n$ is the number of events in the execution, and $α$ is a parameter describing the degree of commutativity. As a result, predictive runtime monitoring even in this setting is unlikely to be efficiently solvable. Towards this, we identify a sub-class of regular languages, called pattern languages (and their extension generalized pattern languages). Pattern languages can naturally express specific ordering of some number of (labelled) events, and have been inspired by popular empirical hypotheses, the `small bug depth' hypothesis. More importantly, we show that for pattern (and generalized pattern) languages, the predictive monitoring problem can be solved using a constant-space streaming linear-time algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。