arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.16075cs.PLcs.SE
收藏

对照TLA+规约验证分布式程序的轨迹

Validating Traces of Distributed Programs Against TLA+ Specifications

Horatiu Cirstea, Markus A. Kuppe, Benjamin Loillier, Stephan Merz

AI总结:

本研究提出一种将分布式程序轨迹与TLA+高层规约关联的框架,通过归约为约束模型检测问题、借助TLC实现,可检测规约与实现的不一致,并探讨了成因与实践方法。

摘要:

TLA+是一种用于规约系统(包括分布式算法)的形式化语言,拥有强大的验证工具支持。本文提出了一个将分布式程序轨迹与用TLA+编写的高层规约关联起来的框架。该问题被归约为一个约束模型检测问题,通过TLC模型检测器实现。我们的框架包含三部分:用于插桩Java程序以记录执行轨迹的API、用于将这些轨迹与规约关联的一组TLA+算子,以及运行模型检测器的脚本。关键在于,轨迹仅包含规约变量的更新而非完整值,且开发者可选择仅追踪特定变量。我们已将该方法应用于多个分布式程序,在所有案例中都检测到了规约与实现之间的不一致。我们还讨论了这些不一致的成因、程序插桩的最佳实践,以及如何解读TLC给出的判定结果。

英文摘要:

TLA+ is a formal language for specifying systems, including distributed algorithms, that is supported by powerful verification tools. In this work we present a framework for relating traces of distributed programs to high-level specifications written in TLA+. The problem is reduced to a constrained model checking problem, realized using the TLC model checker. Our framework consists of an API for instrumenting Java programs in order to record traces of executions, of a collection of TLA+ operators that are used for relating those traces to specifications, and of scripts for running the model checker. Crucially, traces only contain updates to specification variables rather than full values, and developers may choose to trace only certain variables. We have applied our approach to several distributed programs, detecting discrepancies between the specifications and the implementations in all cases. We discuss reasons for these discrepancies, best practices for instrumenting programs, and how to interpret the verdict produced by TLC.

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

↑