-
Notifications
You must be signed in to change notification settings - Fork 47
/
C.tla
45 lines (28 loc) · 841 Bytes
/
C.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
44
45
See Specifying Systems section 6.6 on page 73.
--------------------------------- MODULE C ----------------------------------
EXTENDS Integers
S ==
{"c","a","c","f"}
VARIABLE
\* @type: Str;
x
-----------------------------------------------------------------------------
InitC ==
x = CHOOSE n \in S: TRUE
NextC ==
x' = CHOOSE n \in {"a","c","f","f","c","a"}: n \in S
SpecC == InitC /\ [][NextC]_x
-----------------------------------------------------------------------------
InitE ==
x \in S
NextE ==
x' \in {"a","c","f","f","c","a"}
SpecE == InitE /\ [][NextE]_x
-----------------------------------------------------------------------------
\* TLC
InvT ==
[][x = x']_x
\* Apalache
InvA ==
x = x'
=============================================================================