-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host and Clock from ShiViz module do not appear in error trace #39
Comments
As outlined in tlaplus/tlaplus#543, error-reporting for |
It's the new version which has |
I see what is going on here. Your spec is not a "trace spec", i.e., one that re-defines the More fundamentally, though, your spec describes a single-process algorithm for which ---- MODULE testAlias_TTrace ----
EXTENDS testAlias, Toolbox, TLC, ShiViz
\* TE declaration
TTraceExpression ==
[
x |-> x
,pc |-> pc
,e |-> Host
]
\* TraceDef definition
TTraceTraceDef == INSTANCE TTraceTraceDef
_def_ov == TTraceTraceDef!_def_ov
\* INVARIANT definition
_inv ==
~(pc = "Done" /\ x = 2)
----
\* TRACE INIT definition traceExploreInit
_SpecTEInit ==
/\ x = _TETrace[1].x
/\ pc = _TETrace[1].pc
----
\* TRACE NEXT definition traceExploreNext
_SpecTENext ==
/\ \E i,j \in DOMAIN _TETrace:
/\ \/ j = i + 1
/\ x = _TETrace[i].x
/\ x' = _TETrace[j].x
/\ pc = _TETrace[i].pc
/\ pc' = _TETrace[j].pc
=============================================================================
---- MODULE TTraceTraceDef ----
EXTENDS testAlias, Toolbox, TLC
_def_ov ==
<<
([pc |-> "Lbl_1",x |-> 0]),
([pc |-> "Lbl_2",x |-> 1]),
([pc |-> "Done",x |-> 2])
>>
============================================================================= |
Thank you, but I must admit I'm a bit lost on what the problem is and how it is solved. Is there anything I could read to learn about this? Sorry for the bad example, the spec I'm interested in is not a single-process one, I'm experimenting with visualizing https://github.com/Alexander-N/tla-specs/blob/main/dual-writes/dual_writes_shiviz.tla. |
Why don't you evaluate your ShiViz trace expressions in the Toolbox? On the command line, things are in flux and still have rough edges. |
As suggested in #37 (comment) I tried using ALIAS to make
Host
andClock
from the ShiViz module appear in the error trace. While ALIAS works in principle, it seems to get ignored as soon as I addHost
orClock
:The text was updated successfully, but these errors were encountered: