question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SANY TLA+ semantic graph exploration tool fails on nested instances

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lemmycommented, Oct 28, 2020
0reactions
konnovcommented, Oct 28, 2020

It looks like this issue appears only when the modules are inlined in a single file

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found