Synthesizing Finite-State Protocols from Scenarios and Requirements
Synthesizing Finite-State Protocols from Scenarios and Requirements
复制标题
根据场景和要求综合有限状态协议
DOI:
10.1007/978-3-319-13338-6_7
复制
发表时间:
2014
期刊:
影响因子:
--
通讯作者:
Abhishek Udupa
中科院分区:
文献类型:
--
作者:
R. Alur;Milo M. K. Martin;Mukund Raghothaman;C. Stergiou;S. Tripakis;Abhishek Udupa
Scenarios, or Message Sequence Charts, offer an intuitive way of describing the desired behaviors of a distributed protocol. In this paper we propose a new way of specifying and synthesizing finite-state protocols using scenarios: we show that it is possible to automatically derive a distributed implementation from a set of scenarios augmented with a set of safety and liveness requirements, provided the given scenarios adequately cover all the states of the desired implementation. We first derive incomplete state machines from the given scenarios, and then synthesis corresponds to completing the transition relation of individual processes so that the global product meets the specified requirements. This completion problem, in general, has the same complexity, PSPACE, as the verification problem, but unlike the verification problem, is still hard (NP-complete) even for a constant number of processes. We present an algorithm for solving the completion problem, based on counterexampleguided inductive synthesis. We evaluate the proposed methodology for protocol specification and the effectiveness of the synthesis algorithm using the classical alternating-bit protocol, the VI cache-coherence protocol, and a consensus protocol.