-
Input:
-
Output:
result, S
-
1:
State for each i; ;
-
2:
for each do
-
3:
-
4:
-
5:
if or then
-
6:
return
-
7:
end if
-
8:
if or then
-
9:
return
-
10:
end if
-
11:
-
12:
if then
-
13:
return
-
14:
end if
-
15:
-
16:
if then
-
17:
-
18:
end if
-
19:
-
20:
to ;
-
21:
if then
-
22:
-
23:
if then
-
24:
return
-
25:
end if
-
26:
-
27:
end if
-
28:
end for
-
29:
if and then
-
30:
return
-
31:
end if
-
32:
for each device i do
-
33:
-
34:
if then
-
35:
-
36:
end if
-
37:
end for
-
38:
return if else
|