基于场景和时间特性的精确状态机辨识
Exact Finite-State Machine Identification from Scenarios and Temporal Properties
摘要:
诸如有限状态机(FSM)之类的有限状态模型在许多方面都有助于软件工程。它们通常用于形式化验证,也可以作为可视化的软件模型。后者的应用程序与软件综合和自动推导的软件模型规范的问题。较小的综合模型更一般,更容易理解,但最小有限状态机识别问题在以前的研究中很少受到关注。本文提出了四种精确的方法来解决问题的最小有限状态机识别从一组测试场景和一个时间规格表示在线性时序逻辑。这些方法是作为一个开源工具实现的。其中三个基于将有限状态机识别问题转换为SAT或QSAT问题实例。对时间属性的解释是通过反例禁止来完成的。反例或者从先前识别的FSM获得,或者基于有界模型检验。第四种方法是回溯。所提出的方法进行评估的几个案例研究和大量的随机生成的情况下,越来越复杂。结果表明,基于迭代SAT的方法是所提出的方法中的领导者。该方法还与现有的不精确的方法,即那些不一定确定的最小FSM,这些比较显示出令人鼓舞的结果。
英文摘要:
Finite-state models, such as finite-state machines (FSMs), aid software engineering in many ways. They are often used in formal verification and also can serve as visual software models. The latter application is associated with the problems of software synthesis and automatic derivation of software models from specification. Smaller synthesized models are more general and are easier to comprehend, yet the problem of minimum FSM identification has received little attention in previous research. This paper presents four exact methods to tackle the problem of minimum FSM identification from a set of test scenarios and a temporal specification represented in linear temporal logic. The methods are implemented as an open-source tool. Three of them are based on translations of the FSM identification problem to SAT or QSAT problem instances. Accounting for temporal properties is done via counterexample prohibition. Counterexamples are either obtained from previously identified FSMs, or based on bounded model checking. The fourth method uses backtracking. The proposed methods are evaluated on several case studies and on a larger number of randomly generated instances of increasing complexity. The results show that the Iterative SAT-based method is the leader among the proposed methods. The methods are also compared with existing inexact approaches, i.e. the ones which do not necessarily identify the minimum FSM, and these comparisons show encouraging results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。