summaryrefslogtreecommitdiff
path: root/tests/src/hosting/stress/testset1/csgen.1.cs
blob: 309b6bc69ae9f80c719bca3bbf40dd7026f2a147 (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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections;
using System.Runtime.InteropServices;

#pragma warning disable 1717
#pragma warning disable 0219

public enum TestEnum
{
	red = 1,
	green = 2,
	blue = 4,
}

public class AA<TA, TB> where TA:  IComparable 
{
	public TB m_agboGeneric1;
	public static void Static1(Array param1, ref TB param2, ulong[,,] param3, ref 
		byte param4)
	{
		if (App.m_bFwd1)
			goto label1;
		label1:
		while (App.m_bFwd1)
		{
			TestEnum[,] local1 = (new TestEnum[28u, 111u]);
			long local2 = App.m_lFwd2;
			if (App.m_bFwd1)
				param3 = param3;
			else
			{
				uint local3 = 51u;
				TestEnum[,,][,][] local4 = (new TestEnum[116u, 1u, 102u][,][]);
				do
				{
					throw new NullReferenceException();
				}
				while(App.m_bFwd1);
				param1 = param1;
				local2 -= local2;
				if (App.m_bFwd1)
					try
					{
						Array[,][,][,,][][,][,][][] local5 = (new Array[83u, 103u]
							[,][,,][][,][,][][]);
						Array[,,] local6 = (new Array[30u, 6u, 41u]);
						param3[34, 110, 27] = App.m_ulFwd3;
						param1 = param1;
						local6[80, 2, 50] = param1;
						local1[63, 60] = TestEnum.red;
					}
					catch (NullReferenceException)
					{
						bool local7 = true;
						if (local7)
							continue;
					}
				else
					if (App.m_bFwd1)
						if (App.m_bFwd1)
							local3 = local3;
						else
							local2 -= local2;
			}
			param2 = param2;
			try
			{
				char[,,][,,,,,] local8 = (new char[35u, 100u, 38u][,,,,,]);
				char[,] local9 = (new char[97u, 33u]);
				ulong local10 = App.m_ulFwd3;
				param4 = param4;
				param3 = (new ulong[63u, 9u, 18u]);
				if (App.m_bFwd1)
					do
					{
						param4 = param4;
						local9 = (new char[125u, 118u]);
						try
						{
							while (App.m_bFwd1)
							{
								do
								{
									TestEnum local11 = 0;
									BB[] local12 = new BB[]{new BB() };
									object[][] local13 = (new object[33u][]);
								}
								while(App.m_bFwd1);
								continue;
							}
							try
							{
								BB[,,][,,][][] local14 = (new BB[76u, 111u, 60u][,,][][]);
							}
							finally
							{
							}
							while (App.m_bFwd1)
							{
							}
						}
						catch (Exception)
						{
						}
						if (App.m_bFwd1)
							do
							{
							}
							while(App.m_bFwd1);
					}
					while(App.m_bFwd1);
				return;
			}
			catch (InvalidOperationException)
			{
			}
			try
			{
			}
			catch (Exception)
			{
			}
		}
		do
		{
		}
		while(App.m_bFwd1);
		;
	}
	public static bool[,,,] Static2(bool[,][,,] param1, ref ulong[] param2, TA 
		param3, TB param4, TA param5, TB param6)
	{
		ulong local15 = App.m_ulFwd3;
		param3 = param5;
		local15 = local15;
		for (App.m_byFwd4-=App.m_byFwd4; App.m_bFwd1; App.m_iFwd5++)
		{
			BB[][,,][,,,] local16 = new BB[][,,][,,,]{(new BB[115u, 22u, 97u][,,,]), 
				(new BB[71u, 101u, 72u][,,,]), (new BB[94u, 124u, 8u][,,,]) };
			TestEnum[,,,,] local17 = (new TestEnum[62u, 63u, 7u, 49u, 79u]);
			for (App.m_fFwd6=50.0f; App.m_bFwd1; App.m_iFwd5*=121)
			{
				sbyte local18 = App.m_sbyFwd7;
				ushort local19 = App.m_ushFwd8;
				for (App.m_lFwd2=App.m_lFwd2; App.m_bFwd1; App.m_chFwd9-='\x09')
				{
					continue;
				}
			}
			do
			{
				BB[,][][][,,][] local20 = (new BB[90u, 91u][][][,,][]);
				for (App.m_iFwd5--; App.m_bFwd1; App.m_byFwd4++)
				{
					BB[,] local21 = (new BB[124u, 91u]);
					long[,][,][][,] local22 = (new long[115u, 83u][,][][,]);
					for (App.m_shFwd10=App.m_shFwd10; App.m_bFwd1; App.m_ushFwd8++)
					{
						char[][][,,] local23 = new char[][][,,]{ };
						TestEnum[,,][,][,,,][] local24 = (new TestEnum[29u, 90u, 44u][,][,,,][]);
						object[][] local25 = new object[][]{(new object[92u]), new object[]{null, 
							null, null, null } };
						try
						{
							ulong local26 = App.m_ulFwd3;
							while (App.m_bFwd1)
							{
								ushort[,] local27 = (new ushort[35u, 110u]);
								long[,] local28 = (new long[73u, 43u]);
								param4 = param4;
								throw new IndexOutOfRangeException();
							}
							if (App.m_bFwd1)
								for (App.m_fFwd6+=7.0f; App.m_bFwd1; App.m_byFwd4++)
								{
									throw new DivideByZeroException();
								}
						}
						catch (DivideByZeroException)
						{
							do
							{
								try
								{
									local21[123, 75].m_axField1[73] = new Array[][,,,]{(new Array[102u, 56u
										, 82u, 63u]) };
								}
								finally
								{
								}
								local22 = local22;
								try
								{
								}
								catch (DivideByZeroException)
								{
								}
								try
								{
								}
								catch (IndexOutOfRangeException)
								{
								}
							}
							while(App.m_bFwd1);
							throw new NullReferenceException();
						}
						while (App.m_bFwd1)
						{
						}
					}
					do
					{
					}
					while(App.m_bFwd1);
					do
					{
					}
					while(App.m_bFwd1);
					local15 = local15;
				}
				while (App.m_bFwd1)
				{
				}
				while (App.m_bFwd1)
				{
				}
				throw new InvalidOperationException();
			}
			while(App.m_bFwd1);
		}
		param5 = param5;
		return (new bool[38u, 121u, 77u, 3u]);
	}
	public static sbyte Static3(uint param1, ref short param2)
	{
		BB local29 = new BB();
		try
		{
			param1 -= 33u;
		}
		catch (NullReferenceException)
		{
			ulong[] local30 = (new ulong[122u]);
			byte local31 = App.m_byFwd4;
			for (App.m_lFwd2++; App.m_bFwd1; App.m_chFwd9-='\x6c')
			{
				TestEnum[,,][][] local32 = (new TestEnum[109u, 121u, 75u][][]);
				ushort[,,,,][][][] local33 = (new ushort[44u, 28u, 97u, 45u, 88u][][][]);
				throw new Exception();
			}
			goto label2;
		}
		label2:
		return App.m_sbyFwd7;
	}
	public static int Static4(TB param1, ref Array[][,,][,,] param2, ref TB param3
		, char param4)
	{
		ushort[,,][,][][] local34 = (new ushort[18u, 54u, 39u][,][][]);
		short local35 = App.m_shFwd10;
		return 80;
	}
}

public struct BB
{
	public Array[][][,,,] m_axField1;
	public static void Static1(double[][,,] param1, ref bool param2, TestEnum 
		param3, ref float param4)
	{
		if (param2)
			param2 = param2;
		else
		{
			for (App.m_ushFwd8+=App.m_ushFwd8; param2; App.m_ushFwd8++)
			{
				sbyte[][] local36 = new sbyte[][]{(new sbyte[14u]) };
				ushort[,,] local37 = (new ushort[113u, 103u, 65u]);
				String local38 = "108";
				param2 = param2;
			}
			while (param2)
			{
				while (param2)
				{
					ushort local39 = App.m_ushFwd8;
					if (param2)
						try
						{
							BB local40 = new BB();
							ushort local41 = App.m_ushFwd8;
							local41 += local41;
							do
							{
								for (App.m_byFwd4++; param2; App.m_lFwd2*=App.m_lFwd2)
								{
									ulong[,][][] local42 = (new ulong[60u, 24u][][]);
									Array local43 = App.m_xFwd11;
									try
									{
										Array[] local44 = (new Array[100u]);
										int local45 = 17;
										BB[][,][,][][,][] local46 = new BB[][,][,][][,][]{ };
										local43 = local43;
									}
									catch (Exception)
									{
										String[,,,,] local47 = (new String[91u, 102u, 91u, 75u, 88u]);
										Array[,][] local48 = (new Array[125u, 114u][]);
										object local49 = null;
										for (App.m_chFwd9+='\x2b'; param2; App.m_chFwd9++)
										{
											param2 = true;
											local39 += local39;
											try
											{
												param2 = param2;
											}
											finally
											{
											}
										}
										while (param2)
										{
										}
									}
									local40 = new BB();
									while (param2)
									{
									}
									while (param2)
									{
									}
								}
								try
								{
								}
								catch (Exception)
								{
								}
								return;
							}
							while(param2);
							local40.m_axField1[10][53][56, 118, 114, 54] = App.m_xFwd11;
						}
						catch (InvalidOperationException)
						{
						}
					else
						throw new Exception();
					do
					{
					}
					while(param2);
				}
				if (param2)
					try
					{
					}
					catch (Exception)
					{
					}
				try
				{
				}
				catch (Exception)
				{
				}
			}
			param3 = 0;
		}
		while (param2)
		{
		}
		if (param2)
			throw new DivideByZeroException();
		param4 /= param4;
		;
	}
}

public class App
{
	public static int Main()
	{
		try
		{
			AA<char, bool>.Static1(
				App.m_xFwd11,
				ref App.m_agboFwd12,
				(new ulong[50u, 40u, 98u]),
				ref App.m_byFwd4 );
		}
		catch (Exception)
		{
		}
		try
		{
			AA<char, bool>.Static2(
				(new bool[72u, 126u][,,]),
				ref App.m_aulFwd13,
				App.m_gcFwd14,
				App.m_agboFwd12,
				App.m_gcFwd14,
				App.m_agboFwd12 );
		}
		catch (Exception)
		{
		}
		try
		{
			AA<char, bool>.Static3(
				34u,
				ref App.m_shFwd10 );
		}
		catch (Exception)
		{
		}
		try
		{
			AA<char, bool>.Static4(
				App.m_agboFwd12,
				ref App.m_axFwd15,
				ref App.m_agboFwd12,
				'\x50' );
		}
		catch (Exception)
		{
		}
		try
		{
			BB.Static1(
				(new double[101u][,,]),
				ref App.m_bFwd1,
				TestEnum.red,
				ref App.m_fFwd6 );
		}
		catch (Exception)
		{
		}
		return 100;
	}
	public static bool m_bFwd1;
	public static long m_lFwd2;
	public static ulong m_ulFwd3;
	public static byte m_byFwd4;
	public static int m_iFwd5;
	public static float m_fFwd6;
	public static sbyte m_sbyFwd7;
	public static ushort m_ushFwd8;
	public static char m_chFwd9;
	public static short m_shFwd10;
	public static Array m_xFwd11;
	public static bool m_agboFwd12;
	public static ulong[] m_aulFwd13;
	public static char m_gcFwd14;
	public static Array[][,,][,,] m_axFwd15;
}