-
Notifications
You must be signed in to change notification settings - Fork 2
/
Hello.tla
43 lines (33 loc) · 1012 Bytes
/
Hello.tla
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
------------------------------- MODULE Hello -------------------------------
EXTENDS Naturals, TLC, FiniteSets, Sequences
(*
--algorithm HelloWorld {
variables x = 1..10;
{
print <<x, Cardinality(x)>>;
}
}
}
*)
\* BEGIN TRANSLATION
VARIABLES x, pc
vars == << x, pc >>
Init == (* Global variables *)
/\ x = 1..10
/\ pc = "Lbl_1"
Lbl_1 == /\ pc = "Lbl_1"
/\ PrintT(<<x, Cardinality(x)>>)
/\ pc' = "Done"
/\ x' = x
Next == Lbl_1
\/ (* Disjunct to prevent deadlock on termination *)
(pc = "Done" /\ UNCHANGED vars)
Spec == Init /\ [][Next]_vars
Termination == <>(pc = "Done")
\* END TRANSLATION
=============================================================================
\* Modification History
\* Last modified Tue Jan 10 14:46:32 CET 2017 by bela
\* Last modified Tue Jan 10 13:26:27 CET 2017 by bela
\* Last modified Fri Feb 13 10:00:32 EST 2015 by nrla
\* Created Wed Feb 11 18:05:23 EST 2015 by nrla