Assign external python function to tla+ variable

41 views
Skip to first unread message

lilia rouizi

unread,
Mar 11, 2024, 6:01:52 AM3/11/24
to tlaplus
Hello all,
I have a tla+ model of a processor to test some properties.
Initially, I have an input: CONSTANTS program, to which I give a set of instructions to run my test.
Now I want to automate this using a python code that automatically generates examples of these programs, what I want to do simply put is:
CONSTANTS program = GenProg.py
However I cannot find any guidance on how to use python with tla+.
Any clues?
Thanks a lot!
Lilia

Hillel Wayne

unread,
Mar 11, 2024, 11:01:37 AM3/11/24
to tla...@googlegroups.com

I don't think there's a built-in integration, you'll have to write a script to generate .cfg files with GenProg.py's output.

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/cd0d4172-3fb7-4e69-8c30-40b9540bd06fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages