vscode-tlaplus icon indicating copy to clipboard operation
vscode-tlaplus copied to clipboard

Add support to evaluate trace expression

Open lemmy opened this issue 5 years ago • 4 comments

https://github.com/tlaplus/tlaplus/issues/485 https://github.com/tlaplus/tlaplus/issues/393

lemmy avatar Nov 14 '19 00:11 lemmy

@lemmy Is the support for this in TLC complete?

will62794 avatar Feb 09 '20 19:02 will62794

http://tla.msr-inria.inria.fr/kuppe/vscode/ hosts builds of vscode-tlaplus with the most recent nightly build of TLC. If one adds -generateSpecTE as a TLC command-line parameter in vscode-tlaplus, TLC will create SpecTE.tla after model checking that has boilerplate (at the bottom of SpecTE.tla) to define trace expressions. One then has TLC check SpecTE.tla to evaluate the expression.

I consider this feature sufficiently complete to suggest somebody prototypes an integration into vscode-tlaplus.

lemmy avatar Feb 09 '20 21:02 lemmy

@lemmy What is the intended usage of the command line trace explorer functionality? There seem to be a few different ways to invoke it i.e.

java -cp tla2tools.jar tlc2.TraceExplorer -traceExpressions -expressionsFile=expr.txt -overwrite spec

or

java -cp tla2tools.jar tlc2.TLC -generateSpecTE -config spec.cfg spec.tla

For usage in VS Code extension I would imagine that we would be running the trace explorer after we have already generated TLC output from a model checking run that produced an error trace. So, it seems the first usage would be the one we want to use? I'm not sure exactly what you had in mind though when designing the command line interface.

will62794 avatar Feb 15 '20 14:02 will62794

https://www.youtube.com/watch?v=pTN3nHvSm84

/cc @quaeler

lemmy avatar Feb 15 '20 18:02 lemmy