arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1108.5295cs.SE
收藏

当存在分布式观测时检查有限状态机一致性

Checking Finite State Machine Conformance when there are Distributed Observations

Robert M Hierons

摘要:

本文关注的是基于状态的系统,它们在物理上分布的接口(称为端口)与环境进行交互。当使用这样的系统时,在每个端口处观察到全局轨迹的投影,称为局部轨迹。这导致环境具有降低的观测能力:所观测到的局部轨迹集不需要唯一地定义所发生的全局轨迹。我们认为以前定义的实现关系$\sqsubseteq_s$和开始调查的问题,定义一个语言${\mathcal {\tilde L}} (M)$的多端口有限状态机(FSM)$M$,$N \sqsubseteq_s M$当且仅当每个全局跟踪$N$是在${\mathcal {\tilde L}} (M)$。其动机是,如果我们能够产生这样一种语言${\mathcal {\tilde L}} (M)$,那么它就有可能用于通知开发和测试。我们证明了${\mathcal {\tilde L}} (M)$可以被唯一地定义,但不需要是正则的。然后,我们证明,它是一般不可判定的是否$N \sqsubseteq_s M$,这个结果的后果是,它是不可判定的,是否有一个测试用例,能够区分两个状态或两个多端口FSM在分布式测试。该结果补充了先前的结果,即是否存在保证区分两个状态或多端口FSM的测试用例是不可判定的。给出了$N \sqsubseteq_s M$可判定的条件.然后,我们考虑的实施关系$\sqsubseteq_s^k$,只涉及输入序列的长度$k$或更少。自然,给定FSM $N$和$M$它是可判定的是否$N \sqsubseteq_s^k M$,因为只有一个有限的一组迹是相关的。我们证明,如果我们把边界上的$k$和端口的数量,那么我们可以决定$N \sqsubseteq_s^k M$在多项式时间,但否则这个问题是NP-难的。

英文摘要:

This paper concerns state-based systems that interact with their environment at physically distributed interfaces, called ports. When such a system is used a projection of the global trace, called a local trace, is observed at each port. This leads to the environment having reduced observational power: the set of local traces observed need not uniquely define the global trace that occurred. We consider the previously defined implementation relation $\sqsubseteq_s$ and start by investigating the problem of defining a language ${\mathcal {\tilde L}} (M)$ for a multi-port finite state machine (FSM) $M$ such that $N \sqsubseteq_s M$ if and only if every global trace of $N$ is in ${\mathcal {\tilde L}} (M)$. The motivation is that if we can produce such a language ${\mathcal {\tilde L}} (M)$ then this can potentially be used to inform development and testing. We show that ${\mathcal {\tilde L}} (M)$ can be uniquely defined but need not be regular. We then prove that it is generally undecidable whether $N \sqsubseteq_s M$, a consequence of this result being that it is undecidable whether there is a test case that is capable of distinguishing two states or two multi-port FSM in distributed testing. This result complements a previous result that it is undecidable whether there is a test case that is guaranteed to distinguish two states or multi-port FSMs. We also give some conditions under which $N \sqsubseteq_s M$ is decidable. We then consider the implementation relation $\sqsubseteq_s^k$ that only concerns input sequences of length $k$ or less. Naturally, given FSMs $N$ and $M$ it is decidable whether $N \sqsubseteq_s^k M$ since only a finite set of traces is relevant. We prove that if we place bounds on $k$ and the number of ports then we can decide $N \sqsubseteq_s^k M$ in polynomial time but otherwise this problem is NP-hard.

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

↑