arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.03790cs.SE
收藏

ConStaBL——用状态机重新审视软件工程

ConStaBL -- A Fresh Look at Software Engineering with State Machines

Karthika Venkatesan, Sujit Kumar Chakrabarti

AI总结:

本文提出带局部变量和并发语义的模块化状态图方法,给出可执行仿真算法及冲突判定准则,并首次将模糊测试引入状态图模型验证,发现人工检查难以察觉的问题。

摘要:

状态图是一种用于系统的可视化建模语言。在本文中,我们扩展了此前关于带局部变量的模块化状态图的工作,并提出了一种更新后的、支持并发的状态图操作语义。我们所采用的状态图变体具有局部变量,这些变量与语言其余部分的语义之间存在显著的交互。我们的语义不允许仿真中出现转移冲突,在这一意义上,它比大多数其他可用的状态图语义更为严格。它允许并发执行的动作代码任意交错,从而能够对系统进行更精确的建模,并支持对同一系统进行上游分析。我们以仿真算法的形式给出了操作语义。我们还基于我们的语义建立了定义冲突转移和有效仿真的准则。我们的语义是可执行的,可用于仿真状态图模型并验证其正确性。我们提出了一个用于对状态图模型进行模糊测试的初步设置,这一思路在文献中似乎尚无先例。我们已将我们的仿真器与一个知名的模糊测试工具结合使用,对规模不可忽视的状态图模型进行了模糊测试,并在其中发现了仅靠人工检查难以发现的问题。

英文摘要:

Statechart is a visual modelling language for systems. In this paper, we extend our earlier work on modular statecharts with local variables and present an updated operational semantics for statecharts with concurrency. Our variant of the statechart has local variables, which interact significantly with the remainder of the language semantics. Our semantics does not allow transition conflicts in simulations and is stricter than most other available semantics of statecharts in that sense. It allows arbitrary interleaving of concurrently executing action code, which allows more precise modelling of systems and upstream analysis of the same. We present the operational semantics in the form of the simulation algorithm. We also establish the criteria based on our semantics for defining conflicting transitions and valid simulations. Our semantics is executable and can be used to simulate statechart models and verify their correctness. We present a preliminary setup to carry out fuzz testing of Statechart models, an idea that does not seem to have a precedent in literature. We have used our simulator in conjunction with a well-known fuzzer to do fuzz testing of statechart models of non-trivial sizes and have found issues in them that would have been hard to find through inspection.

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

↑