tlaplus/tlaplus

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

Open

#1 216 ouverte le 24 juil. 2025

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Java (179 forks)batch import
Toolsenhancementhelp wanted

Métriques du dépôt

Stars
 (2 153 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur