SANY TLA+ semantic graph exploration tool fails on nested instances
See original GitHub issueI am trying to print the semantic graph of the following module, which captures the instantiation structure of Paxos:
------------------- MODULE P ----------------------
------------------- MODULE Vot ----------------------
------------------- MODULE Cons -------------------
VARIABLE chosen
Init == chosen = {}
Next == chosen = {2}
===================================================
chosen == {1}
C == INSTANCE Cons
===================================================
V == INSTANCE Vot
===================================================
The following call to the “TLA+ semantic graph exploration tool” results in NullPointerException
(SANY honestly warned me about the NPE to be produced):
$ java -cp ~/.m2/repository/org/lamport/tla2tools/1.7.0-SNAPSHOT/tla2tools-1.7.0-SNAPSHOT.jar tla2sany.SANY -d P.tla
****** SANY2 Version 2.1 created 24 February 2014
Parsing file /Users/igor/devl/apalache/test/tla/P.tla
Semantic processing of module P
Bug in debugging caused by inner module Vot
SANY will throw a null pointer exception.
Bug in debugging caused by inner module Vot
SANY will throw a null pointer exception.
*** TLA+ semantic graph exploration tool v 1.0 (DRJ)
>>mt
External Module Table:
| Module: *ModuleNode: P uid: 154 kind: ModuleKind errors: noneException in thread "main" java.lang.NullPointerException
at tla2sany.semantic.Context.getContextEntryStringVector(Context.java:499)
at tla2sany.semantic.ModuleNode.print(ModuleNode.java:1150)
at tla2sany.semantic.ExternalModuleTable.printExternalModuleTable(ExternalModuleTable.java:165)
at tla2sany.explorer.Explorer.executeCommand(Explorer.java:240)
at tla2sany.explorer.Explorer.parseAndExecuteCommand(Explorer.java:338)
at tla2sany.explorer.Explorer.main(Explorer.java:427)
at tla2sany.drivers.SANY.SANYmain(SANY.java:458)
at tla2sany.SANY.main(SANY.java:12)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
mku · GitHub
Trace expression evaluation fails for a trace where the initial state violates the ... Messaging.tla ... Functionality to clone subgraph of semantic graph....
Read more >(PDF) The TLA+ Toolbox - ResearchGate
TLA +tools are a parser to syntactically and semantically check a spec (SANY), a translator to transpile. a PlusCal algorithm into TLA+, and...
Read more >Handbook/Other Languages - ProB Documentation - HHU
The main purpose is to debug and animate Promela specifications in a user-friendly way. We do not plan to compete in terms of...
Read more >Untitled - Springer
This book is the first volume of a running series under the title Interna- tional Handbooks on Information Systems. The series is edited...
Read more >INEX 2006 Workshop Pre-proceedings
Examples of such proposals are region inclusion graphs ... is to decompose the Wikipedia XML documents into semantic segments ... P(F=sunny|W=rain) =0.1.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Probably related: https://github.com/tlaplus/tlaplus/issues/471
It looks like this issue appears only when the modules are inlined in a single file