TLA+ extensions for user-defined procedure writing by programming language

70 views
Skip to first unread message

Guo Hua

unread,
Feb 19, 2022, 3:12:01 AM2/19/22
to tlaplus
Can TLA+ support such an extension that allows running user-defined procedures written by some programming language when an event happens?
Or is there any plan for this?
It may be helpful to provide this function, such as auto-generating test cases.

Best,
Guo

Andrew Helwer

unread,
Feb 19, 2022, 10:22:29 AM2/19/22
to tlaplus
They term you're looking for is model-based testing. Usually this is done by pre-generating a system trace then translating that trace to events in your system and running those events against your system. It seems simpler than the on-line method you've described. There have been a number of talks at the past couple TLA+ confs about model-based testing: http://conf.tlapl.us/home/

Andrew

Hillel Wayne

unread,
Feb 19, 2022, 1:21:15 PM2/19/22
to tla...@googlegroups.com
--
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/e5d7d8f7-bcdb-485f-86ba-9ca0c5c84fb2n%40googlegroups.com.

Guo Hua

unread,
Feb 20, 2022, 10:39:50 PM2/20/22
to tlaplus
Thank you for your reply. I would read this list.

Guo

Guo Hua

unread,
Feb 20, 2022, 10:46:38 PM2/20/22
to tlaplus
Thanks. I have noticed this work.

tlaplus-go...@lemmster.de

unread,
Feb 22, 2022, 12:04:18 AM2/22/22
to tla...@googlegroups.com
Hi Guo,

you can override any TLA+ constant-level operator with Java code (the IOUtils module that Hillel mentioned is implemented this way). This diff [1] should give you an example of how to override operators with Java code.

Markus

Guo Hua

unread,
Feb 22, 2022, 9:25:05 AM2/22/22
to tlaplus
Thank you.
This is what I want.

Guo
Reply all
Reply to author
Forward
0 new messages