Protocols provide the unifying glue in concurrent and distributed software today; verifying that message-passing programs conform to such governing protocols is important but difficult. Static approaches based on multiparty session types (MPST) use protocols as types to avoid protocol violations and deadlocks in programs. An elusive problem for MPST is to ensure both protocol conformance and deadlock freedom for implementations with interleaved and delegated protocols. We address this relevant problem by proposing a decentralized analysis of multiparty session protocols for asynchronous processes with recursion. Our solution rests upon APCP, a new type system that ensures protocol conformance and deadlock freedom with respect to binary protocols. Our analysis enables the sound and complete transfer of correctness from APCP to multiparty session protocols.
翻译:以多党制会议类型为基础的静态办法(MPST)将协议作为类型来避免违反协议和方案陷入僵局。对MPST来说,一个难以解决的问题是确保协议的一致和僵局自由,以便执行互不相干和授权的议定书。我们通过提议对多党制会议协议进行分散化分析,以便在反复重复的不同步进程中解决这一相关问题。我们的解决办法在于APCP,这是一个确保协议符合协议和二进制协议自由的新型系统。我们的分析使得APCP能够将正确性从APC全面转移到多党制会议协议。