tlaplus/tlaplus

Using `-dump` option to produce state dumps in machine readable format

Open

#1,216 创建于 2025年7月24日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Java (179 fork)batch import
Toolsenhancementhelp wanted

仓库指标

Star
 (2,153 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Recently we touched the topic of model based testing and -simulate configuration of tlc in the TLA+ community.

When using -simulate and -dump options to generate random behaviors of the model with the goal of using them to produce tests for systems written in other languages the question of state dumps parsing arises.

Currently -dump option generates state dumps in TLA+ format. Still, it's quite beneficial to have a machine readable format of such dumps as eventually it will be parsed by the abstract test generator.

Therefore, it's proposed to update the following part of the TLC code so that it generates dumps in JSON format: https://github.com/tlaplus/tlaplus/blob/master/tlatools/org.lamport.tlatools/src/tlc2/tool/SimulationWorker.java#L735

贡献者指南