blob: d164ff5a0035cd1fd674d6439c9e246e9dee1e7b (
plain)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
|
import org.aspectj.testing.Tester;
public class CaseClauses {
public static void main(String[] args) {
new CaseClauses().realMain(args);
}
public void realMain(String[] args) {
int SIZE = 0377;
boolean[] bs = new boolean[SIZE];
for (int i = 0; i < bs.length; i++) {
bs[i] = false;
}
for (int i = 0; i < SIZE; i++) {
switch((char)i) {
case '\0': bs[0] = true; break;
case '\1': bs[1] = true; break;
case '\2': bs[2] = true; break;
case '\3': bs[3] = true; break;
case '\4': bs[4] = true; break;
case '\5': bs[5] = true; break;
case '\6': bs[6] = true; break;
case '\7': bs[7] = true; break;
case '\10': bs[8] = true; break;
case '\11': bs[9] = true; break;
case '\12': bs[10] = true; break;
case '\13': bs[11] = true; break;
case '\14': bs[12] = true; break;
case '\15': bs[13] = true; break;
case '\16': bs[14] = true; break;
case '\17': bs[15] = true; break;
case '\20': bs[16] = true; break;
case '\21': bs[17] = true; break;
case '\22': bs[18] = true; break;
case '\23': bs[19] = true; break;
case '\24': bs[20] = true; break;
case '\25': bs[21] = true; break;
case '\26': bs[22] = true; break;
case '\27': bs[23] = true; break;
case '\30': bs[24] = true; break;
case '\31': bs[25] = true; break;
case '\32': bs[26] = true; break;
case '\33': bs[27] = true; break;
case '\34': bs[28] = true; break;
case '\35': bs[29] = true; break;
case '\36': bs[30] = true; break;
case '\37': bs[31] = true; break;
case '\40': bs[32] = true; break;
case '\41': bs[33] = true; break;
case '\42': bs[34] = true; break;
case '\43': bs[35] = true; break;
case '\44': bs[36] = true; break;
case '\45': bs[37] = true; break;
case '\46': bs[38] = true; break;
case '\47': bs[39] = true; break;
case '\50': bs[40] = true; break;
case '\51': bs[41] = true; break;
case '\52': bs[42] = true; break;
case '\53': bs[43] = true; break;
case '\54': bs[44] = true; break;
case '\55': bs[45] = true; break;
case '\56': bs[46] = true; break;
case '\57': bs[47] = true; break;
case '\60': bs[48] = true; break;
case '\61': bs[49] = true; break;
case '\62': bs[50] = true; break;
case '\63': bs[51] = true; break;
case '\64': bs[52] = true; break;
case '\65': bs[53] = true; break;
case '\66': bs[54] = true; break;
case '\67': bs[55] = true; break;
case '\70': bs[56] = true; break;
case '\71': bs[57] = true; break;
case '\72': bs[58] = true; break;
case '\73': bs[59] = true; break;
case '\74': bs[60] = true; break;
case '\75': bs[61] = true; break;
case '\76': bs[62] = true; break;
case '\77': bs[63] = true; break;
case '\100': bs[64] = true; break;
case '\101': bs[65] = true; break;
case '\102': bs[66] = true; break;
case '\103': bs[67] = true; break;
case '\104': bs[68] = true; break;
case '\105': bs[69] = true; break;
case '\106': bs[70] = true; break;
case '\107': bs[71] = true; break;
case '\110': bs[72] = true; break;
case '\111': bs[73] = true; break;
case '\112': bs[74] = true; break;
case '\113': bs[75] = true; break;
case '\114': bs[76] = true; break;
case '\115': bs[77] = true; break;
case '\116': bs[78] = true; break;
case '\117': bs[79] = true; break;
case '\120': bs[80] = true; break;
case '\121': bs[81] = true; break;
case '\122': bs[82] = true; break;
case '\123': bs[83] = true; break;
case '\124': bs[84] = true; break;
case '\125': bs[85] = true; break;
case '\126': bs[86] = true; break;
case '\127': bs[87] = true; break;
case '\130': bs[88] = true; break;
case '\131': bs[89] = true; break;
case '\132': bs[90] = true; break;
case '\133': bs[91] = true; break;
case '\134': bs[92] = true; break;
case '\135': bs[93] = true; break;
case '\136': bs[94] = true; break;
case '\137': bs[95] = true; break;
case '\140': bs[96] = true; break;
case '\141': bs[97] = true; break;
case '\142': bs[98] = true; break;
case '\143': bs[99] = true; break;
case '\144': bs[100] = true; break;
case '\145': bs[101] = true; break;
case '\146': bs[102] = true; break;
case '\147': bs[103] = true; break;
case '\150': bs[104] = true; break;
case '\151': bs[105] = true; break;
case '\152': bs[106] = true; break;
case '\153': bs[107] = true; break;
case '\154': bs[108] = true; break;
case '\155': bs[109] = true; break;
case '\156': bs[110] = true; break;
case '\157': bs[111] = true; break;
case '\160': bs[112] = true; break;
case '\161': bs[113] = true; break;
case '\162': bs[114] = true; break;
case '\163': bs[115] = true; break;
case '\164': bs[116] = true; break;
case '\165': bs[117] = true; break;
case '\166': bs[118] = true; break;
case '\167': bs[119] = true; break;
case '\170': bs[120] = true; break;
case '\171': bs[121] = true; break;
case '\172': bs[122] = true; break;
case '\173': bs[123] = true; break;
case '\174': bs[124] = true; break;
case '\175': bs[125] = true; break;
case '\176': bs[126] = true; break;
case '\177': bs[127] = true; break;
case '\200': bs[128] = true; break;
case '\201': bs[129] = true; break;
case '\202': bs[130] = true; break;
case '\203': bs[131] = true; break;
case '\204': bs[132] = true; break;
case '\205': bs[133] = true; break;
case '\206': bs[134] = true; break;
case '\207': bs[135] = true; break;
case '\210': bs[136] = true; break;
case '\211': bs[137] = true; break;
case '\212': bs[138] = true; break;
case '\213': bs[139] = true; break;
case '\214': bs[140] = true; break;
case '\215': bs[141] = true; break;
case '\216': bs[142] = true; break;
case '\217': bs[143] = true; break;
case '\220': bs[144] = true; break;
case '\221': bs[145] = true; break;
case '\222': bs[146] = true; break;
case '\223': bs[147] = true; break;
case '\224': bs[148] = true; break;
case '\225': bs[149] = true; break;
case '\226': bs[150] = true; break;
case '\227': bs[151] = true; break;
case '\230': bs[152] = true; break;
case '\231': bs[153] = true; break;
case '\232': bs[154] = true; break;
case '\233': bs[155] = true; break;
case '\234': bs[156] = true; break;
case '\235': bs[157] = true; break;
case '\236': bs[158] = true; break;
case '\237': bs[159] = true; break;
case '\240': bs[160] = true; break;
case '\241': bs[161] = true; break;
case '\242': bs[162] = true; break;
case '\243': bs[163] = true; break;
case '\244': bs[164] = true; break;
case '\245': bs[165] = true; break;
case '\246': bs[166] = true; break;
case '\247': bs[167] = true; break;
case '\250': bs[168] = true; break;
case '\251': bs[169] = true; break;
case '\252': bs[170] = true; break;
case '\253': bs[171] = true; break;
case '\254': bs[172] = true; break;
case '\255': bs[173] = true; break;
case '\256': bs[174] = true; break;
case '\257': bs[175] = true; break;
case '\260': bs[176] = true; break;
case '\261': bs[177] = true; break;
case '\262': bs[178] = true; break;
case '\263': bs[179] = true; break;
case '\264': bs[180] = true; break;
case '\265': bs[181] = true; break;
case '\266': bs[182] = true; break;
case '\267': bs[183] = true; break;
case '\270': bs[184] = true; break;
case '\271': bs[185] = true; break;
case '\272': bs[186] = true; break;
case '\273': bs[187] = true; break;
case '\274': bs[188] = true; break;
case '\275': bs[189] = true; break;
case '\276': bs[190] = true; break;
case '\277': bs[191] = true; break;
case '\300': bs[192] = true; break;
case '\301': bs[193] = true; break;
case '\302': bs[194] = true; break;
case '\303': bs[195] = true; break;
case '\304': bs[196] = true; break;
case '\305': bs[197] = true; break;
case '\306': bs[198] = true; break;
case '\307': bs[199] = true; break;
case '\310': bs[200] = true; break;
case '\311': bs[201] = true; break;
case '\312': bs[202] = true; break;
case '\313': bs[203] = true; break;
case '\314': bs[204] = true; break;
case '\315': bs[205] = true; break;
case '\316': bs[206] = true; break;
case '\317': bs[207] = true; break;
case '\320': bs[208] = true; break;
case '\321': bs[209] = true; break;
case '\322': bs[210] = true; break;
case '\323': bs[211] = true; break;
case '\324': bs[212] = true; break;
case '\325': bs[213] = true; break;
case '\326': bs[214] = true; break;
case '\327': bs[215] = true; break;
case '\330': bs[216] = true; break;
case '\331': bs[217] = true; break;
case '\332': bs[218] = true; break;
case '\333': bs[219] = true; break;
case '\334': bs[220] = true; break;
case '\335': bs[221] = true; break;
case '\336': bs[222] = true; break;
case '\337': bs[223] = true; break;
case '\340': bs[224] = true; break;
case '\341': bs[225] = true; break;
case '\342': bs[226] = true; break;
case '\343': bs[227] = true; break;
case '\344': bs[228] = true; break;
case '\345': bs[229] = true; break;
case '\346': bs[230] = true; break;
case '\347': bs[231] = true; break;
case '\350': bs[232] = true; break;
case '\351': bs[233] = true; break;
case '\352': bs[234] = true; break;
case '\353': bs[235] = true; break;
case '\354': bs[236] = true; break;
case '\355': bs[237] = true; break;
case '\356': bs[238] = true; break;
case '\357': bs[239] = true; break;
case '\360': bs[240] = true; break;
case '\361': bs[241] = true; break;
case '\362': bs[242] = true; break;
case '\363': bs[243] = true; break;
case '\364': bs[244] = true; break;
case '\365': bs[245] = true; break;
case '\366': bs[246] = true; break;
case '\367': bs[247] = true; break;
case '\370': bs[248] = true; break;
case '\371': bs[249] = true; break;
case '\372': bs[250] = true; break;
case '\373': bs[251] = true; break;
case '\374': bs[252] = true; break;
case '\375': bs[253] = true; break;
case '\376': bs[254] = true; break;
case '\377': bs[255] = true; break;
default: Tester.check(false, "should be here:" + i);
}
}
for (int i = 0; i < bs.length; i++) {
Tester.check(bs[i], "bs["+i+"] wasn't caught --> '\\"+Integer.toOctalString(i)+"'");
}
}
}
|