-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathburns.cub
96 lines (82 loc) · 1.65 KB
/
burns.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
(* from "Regular Model Checking without Transducers
(on efficient verification of parameterized systems)"
Adulla et. al.
Tech report 2006-052 Uppsala Universitet
*)
type location = Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7
array A[proc] : location
array F[proc] : bool
init (x) { A[x] = Q1 && F[x] = False }
unsafe (z1 z2) { A[z1] = Q6 && A[z2] = Q6 }
transition t1 (x)
requires { A[x] = Q1 && F[x] = True }
{
A[j] := case
| j = x : Q2
| _ : A[j];
F[j] := case
| j = x : False
| _ : F[j]
}
transition t2 (x y)
requires { A[x] = Q2 && y < x && F[y] = True }
{
A[j] := case
| j = x : Q1
| _ : A[j]
}
transition t3 (x)
requires { A[x] = Q2 && forall_other j. (x<=j || F[j] = False ) }
{
A[j] := case
| j = x : Q3
| _ : A[j]
}
transition t4 (x)
requires { A[x] = Q3 }
{
A[j] := case
| j = x : Q5
| _ : A[j];
F[j] := case
| j = x : True
| _ : F[j]
}
transition t5 (x y)
requires { A[x] = Q4 && y<x && F[y] = True }
{
A[j] := case
| j = x : Q1
| _ : A[j]
}
transition t6 (x)
requires { A[x] = Q4 && forall_other j. (x<=j || F[j] = False) }
{
A[j] := case
| j = x : Q5
| _ : A[j]
}
transition t7 (x)
requires { A[x] = Q5 && forall_other j. (j <= x || F[j] = False) }
{
A[j] := case
| j = x : Q6
| _ : A[j]
}
transition t8 (x)
requires { A[x] = Q6 && F[x] = True }
{
F[j] := case
| j = x : False
| _ : F[j];
A[j] := case
| j = x : Q7
| _ : A[j]
}
transition t9 (x)
requires { A[x] = Q7 && F[x] = True }
{
A[j] := case
| j = x : Q1
| _ : A[j]
}