forked from cubicle-model-checker/cubicle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
illinois.cub
54 lines (40 loc) · 1.14 KB
/
illinois.cub
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
46
47
48
49
50
51
52
53
type location = L1 | L2 | L3 | L4
array A[proc] : location
init (z) { A[z] = L1 }
unsafe (z1 z2) { A[z1] = L3 && A[z2] = L2 }
transition t1 (x y)
requires { A[x] = L1 && A[y] = L2 }
{ A[j] := case | j = x : L3 | j = y : L3 | _ : A[j]; }
transition t2 (x)
requires { A[x] = L1 && forall_other j. A[j] = L1 }
{ A[j] := case | j = x : L4 | _ : A[j]; }
transition t3 (x)
requires { A[x] = L1 }
{ A[j] := case
| j = x : L2
| A[j] = L2 : L1
| A[j] = L3 : L1
| A[j] = L4 : L1
| _ : A[j];
}
transition t4 (x)
requires { A[x] = L2 }
{ A[j] := case | j = x : L1 | _ : A[j]; }
transition t5 (x y)
requires { A[x] = L1 && A[y] = L3 }
{ A[j] := case | j = x : L3 | A[j] = L4 : L3 | _ : A[j]; }
transition t5bis (x y)
requires { A[x] = L1 && A[y] = L4 }
{ A[j] := case | j = x : L3 | A[j] = L4 : L3 | _ : A[j]; }
transition t6 (x)
requires { A[x] = L3 }
{ A[j] := case | j = x : L2 | A[j] = L3 : L1 | _ : A[j]; }
transition t7 (x)
requires { A[x] = L3 }
{ A[j] := case | j = x : L1 | _ : A[j]; }
transition t8 (x)
requires { A[x] = L4 }
{ A[j] := case | j = x : L1 | _ : A[j]; }
transition t9 (x)
requires { A[x] = L4 }
{ A[j] := case | j = x: L2 | _ : A[j]; }