Open
Description
As suggested in #37 (comment) I tried using ALIAS to make Host
and Clock
from the ShiViz module appear in the error trace. While ALIAS works in principle, it seems to get ignored as soon as I add Host
or Clock
:
---- CONFIG testAlias ----
SPECIFICATION Spec
INVARIANT NotTwo
ALIAS Alias
======================
----------------------------- MODULE testAlias -----------------------------
EXTENDS Integers, ShiViz
(*--algorithm testAlias
variables x=0;
begin
x := 1;
x := 2;
end algorithm; *)
\* BEGIN TRANSLATION (chksum(pcal) = "b3726e35" /\ chksum(tla) = "e9b2f587")
VARIABLES x, pc
vars == << x, pc >>
Init == (* Global variables *)
/\ x = 0
/\ pc = "Lbl_1"
Lbl_1 == /\ pc = "Lbl_1"
/\ x' = 1
/\ pc' = "Lbl_2"
Lbl_2 == /\ pc = "Lbl_2"
/\ x' = 2
/\ pc' = "Done"
(* Allow infinite stuttering to prevent deadlock on termination. *)
Terminating == pc = "Done" /\ UNCHANGED vars
Next == Lbl_1 \/ Lbl_2
\/ Terminating
Spec == Init /\ [][Next]_vars
Termination == <>(pc = "Done")
\* END TRANSLATION
NotTwo == x /= 2
Alias == [
test |-> x + 2,
Host |-> Host
]
=============================================================================