Is there an approach that allows the TLA+ Toolbox to read the initial state from a predefined text file?

31 views
Skip to first unread message

Guo Hua

unread,
Sep 1, 2023, 12:02:12 AM9/1/23
to tlaplus
I have multiple TLA+ specifications with the same initial state space. The initial state space was computed through a lengthy computation and would require a significant amount of time. Is there an approach that allows the TLA+ Toolbox to read the initial state from a predefined text file? This file could potentially be the output of another model checking process, thus saving time.

--
Guo

Hillel Wayne

unread,
Sep 1, 2023, 12:17:39 AM9/1/23
to tla...@googlegroups.com

I don't think there's a built-in way to do this, but you could try generating the initial state as a TLC checkpoint and then use the checkpoint recovery option. I have no idea how that would behave if you try to use the checkpoint in a different spec, though.

H

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/88d08319-a58e-4c95-88f1-2aaf1a06852dn%40googlegroups.com.

Markus Kuppe

unread,
Sep 1, 2023, 2:40:00 PM9/1/23
to tla...@googlegroups.com
You can efficiently serialize and deserialize TLA+ values with the IO(Des|S)erialize operators [1] from the CommunityModules. Less efficient serialization can be done with the help of the Json module [2].

Markus

[1] https://github.com/tlaplus/CommunityModules/blob/f070b68b02cf5b6d085797402374d85f739c167e/modules/IOUtils.tla#L9-L11
[2] https://github.com/tlaplus/CommunityModules/blob/master/modules/Json.tla
Reply all
Reply to author
Forward
0 new messages