summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Directed/perffix/primitivevt/mixed2.cs
blob: 2c83dc9fc455b4acbdcb1590aa192716089b3826 (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
// 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;
internal unsafe class testout1
{
    public struct VT_0_1_1_1_1_1
    {
        public int a1_0_1_1_1_1_1;
        public VT_0_1_1_1_1_1(int i)
        {
            a1_0_1_1_1_1_1 = 1;
        }
    }

    public struct VT_0_1_1_1_1
    {
        public uint a1_0_1_1_1_1;
        public VT_0_1_1_1_1(int i)
        {
            a1_0_1_1_1_1 = 1;
        }
    }

    public struct VT_0_1_1
    {
        public int[] arr1d_0_1_1;
        public VT_0_1_1(int i)
        {
            arr1d_0_1_1 = new int[9];
        }
    }

    public struct VT_0_1
    {
        public int a1_0_1;
        public VT_0_1(int i)
        {
            a1_0_1 = 1;
        }
    }
    public class CL_0_1
    {
        public int a2_0_1 = 2111165575;
    }
    private static double[] s_arr1d_0_1_1_1_1_1_1_1_1_1 = new double[9];


    private static float[,] s_arr2d_0_1_1_1_1_1_1_1_1 = new float[3, 9];




    private static long[,] s_arr2d_0_1_1_1_1_1_1 = new long[3, 9];


    private static int[,] s_arr2d_0_1_1_1_1_1 = new int[3, 9];


    private static long[,,] s_arr3d_0_1_1_1_1 = new long[5, 9, 4];


    private static double[] s_arr1d_0_1_1_1 = new double[9];



    public static VT_0_1_1 vtstatic_0_1_1 = new VT_0_1_1(1);


    public static VT_0_1 vtstatic_0_1 = new VT_0_1(1);

    private static Decimal[,,] s_arr3d_0 = new Decimal[5, 9, 4];
    private static long s_a1_0 = 512L;
    private static ushort s_a2_0 = 54198;


    public static float Func_0_1_1_1_1_1_1_1_1_1()
    {
        double* a1_0_1_1_1_1_1_1_1_1_1 = stackalloc double[1];
        *a1_0_1_1_1_1_1_1_1_1_1 = 4.420911011650241E-09;
        double* a3_0_1_1_1_1_1_1_1_1_1 = stackalloc double[1];
        *a3_0_1_1_1_1_1_1_1_1_1 = 3.7252902984619141E-09;

        s_arr1d_0_1_1_1_1_1_1_1_1_1[0] = 16384.0;
        double asgop0 = s_arr1d_0_1_1_1_1_1_1_1_1_1[0];
        asgop0 += ((s_arr1d_0_1_1_1_1_1_1_1_1_1[0] + -32512.0));
        (*a3_0_1_1_1_1_1_1_1_1_1) *= ((206158430208.0));
        if ((asgop0) >= ((*a1_0_1_1_1_1_1_1_1_1_1)))
        {
            float if0_0retval_0_1_1_1_1_1_1_1_1_1 = Convert.ToSingle(Convert.ToSingle((Convert.ToInt32((Convert.ToInt32(1218424101 * 0.37129554777249107)) * ((*a1_0_1_1_1_1_1_1_1_1_1)))) * (asgop0 + (*a3_0_1_1_1_1_1_1_1_1_1))));
            return if0_0retval_0_1_1_1_1_1_1_1_1_1;
        }
        return Convert.ToSingle(Convert.ToSingle((Convert.ToInt32((Convert.ToInt32(1218424101 * 0.37129554777249107)) * ((*a1_0_1_1_1_1_1_1_1_1_1)))) * (asgop0 + (*a3_0_1_1_1_1_1_1_1_1_1))));
    }

    public static double Func_0_1_1_1_1_1_1_1_1()
    {
        double a2_0_1_1_1_1_1_1_1_1 = 2.0524928800798607E-08;

        s_arr2d_0_1_1_1_1_1_1_1_1[2, 0] = -1920.0F;
        float val_0_1_1_1_1_1_1_1_1_1 = Func_0_1_1_1_1_1_1_1_1_1();
        double retval_0_1_1_1_1_1_1_1_1 = Convert.ToDouble((Convert.ToUInt16(val_0_1_1_1_1_1_1_1_1_1 + s_arr2d_0_1_1_1_1_1_1_1_1[2, 0]) / (29637 * (4.6566128730773926E-10 + a2_0_1_1_1_1_1_1_1_1))));
        return retval_0_1_1_1_1_1_1_1_1;
    }

    public static ushort Func_0_1_1_1_1_1_1_1()
    {
        ulong[] arr1d_0_1_1_1_1_1_1_1 = new ulong[9];

        arr1d_0_1_1_1_1_1_1_1[0] = 10247887074558758525UL;
        double val_0_1_1_1_1_1_1_1_1 = Func_0_1_1_1_1_1_1_1_1();
        if ((arr1d_0_1_1_1_1_1_1_1[0]) <= (10247887076011802624UL))
        {
            ushort if0_0retval_0_1_1_1_1_1_1_1 = Convert.ToUInt16((Convert.ToUInt16(Convert.ToInt32(Convert.ToUInt64(10247887076011802624UL) - Convert.ToUInt64(arr1d_0_1_1_1_1_1_1_1[0])) / val_0_1_1_1_1_1_1_1_1)));
            return if0_0retval_0_1_1_1_1_1_1_1;
        }
        ushort retval_0_1_1_1_1_1_1_1 = Convert.ToUInt16((Convert.ToUInt16(Convert.ToInt32(Convert.ToUInt64(10247887076011802624UL) - Convert.ToUInt64(arr1d_0_1_1_1_1_1_1_1[0])) / val_0_1_1_1_1_1_1_1_1)));
        return retval_0_1_1_1_1_1_1_1;
    }

    public static long Func_0_1_1_1_1_1_1()
    {
        short* a2_0_1_1_1_1_1_1 = stackalloc short[1];
        *a2_0_1_1_1_1_1_1 = 4375;

        s_arr2d_0_1_1_1_1_1_1[2, 0] = -8828430758416264124L;
        ushort val_0_1_1_1_1_1_1_1 = Func_0_1_1_1_1_1_1_1();
        if ((s_arr2d_0_1_1_1_1_1_1[2, 0]) > (Convert.ToInt64(Convert.ToInt16(((*a2_0_1_1_1_1_1_1))) + Convert.ToInt64(s_arr2d_0_1_1_1_1_1_1[2, 0]))))
            Console.WriteLine("Func_0_1_1_1_1_1_1: > true");
        long retval_0_1_1_1_1_1_1 = Convert.ToInt64(Convert.ToInt64(Convert.ToUInt16(val_0_1_1_1_1_1_1_1) + Convert.ToInt64(Convert.ToInt64(Convert.ToInt16(((*a2_0_1_1_1_1_1_1))) + Convert.ToInt64(s_arr2d_0_1_1_1_1_1_1[2, 0])))));
        return retval_0_1_1_1_1_1_1;
    }

    public static long Func_0_1_1_1_1_1()
    {
        VT_0_1_1_1_1_1 vt_0_1_1_1_1_1 = new VT_0_1_1_1_1_1(1);
        vt_0_1_1_1_1_1.a1_0_1_1_1_1_1 = 1977572086;
        float[] arr1d_0_1_1_1_1_1 = new float[9];

        arr1d_0_1_1_1_1_1[0] = 0.5699924F;
        s_arr2d_0_1_1_1_1_1[2, 2] = 708678031;
        long val_0_1_1_1_1_1_1 = Func_0_1_1_1_1_1_1();
        int asgop0 = vt_0_1_1_1_1_1.a1_0_1_1_1_1_1;
        asgop0 %= (Convert.ToInt32((Convert.ToInt32((Convert.ToInt32(((Convert.ToInt32(64462) + 1977507624) - 1268894055)))))));
        if ((arr1d_0_1_1_1_1_1[0]) <= 10)
        {
            if ((arr1d_0_1_1_1_1_1[0]) == 10)
            {
                long if1_0retval_0_1_1_1_1_1 = Convert.ToInt64(Convert.ToInt64(Convert.ToUInt32(Convert.ToUInt32(asgop0 / Convert.ToSingle(arr1d_0_1_1_1_1_1[0]))) - Convert.ToInt64(Convert.ToInt64(Convert.ToInt32(s_arr2d_0_1_1_1_1_1[2, 2]) + Convert.ToInt64(val_0_1_1_1_1_1_1)))));
                return if1_0retval_0_1_1_1_1_1;
            }
        }
        else
        {
            long else0_0retval_0_1_1_1_1_1 = Convert.ToInt64(Convert.ToInt64(Convert.ToUInt32(Convert.ToUInt32(asgop0 / Convert.ToSingle(arr1d_0_1_1_1_1_1[0]))) - Convert.ToInt64(Convert.ToInt64(Convert.ToInt32(s_arr2d_0_1_1_1_1_1[2, 2]) + Convert.ToInt64(val_0_1_1_1_1_1_1)))));
            return else0_0retval_0_1_1_1_1_1;
        }
        long retval_0_1_1_1_1_1 = Convert.ToInt64(Convert.ToInt64(Convert.ToUInt32(Convert.ToUInt32(asgop0 / Convert.ToSingle(arr1d_0_1_1_1_1_1[0]))) - Convert.ToInt64(Convert.ToInt64(Convert.ToInt32(s_arr2d_0_1_1_1_1_1[2, 2]) + Convert.ToInt64(val_0_1_1_1_1_1_1)))));
        return retval_0_1_1_1_1_1;
    }

    public static long Func_0_1_1_1_1()
    {
        VT_0_1_1_1_1 vt_0_1_1_1_1 = new VT_0_1_1_1_1(1);
        vt_0_1_1_1_1.a1_0_1_1_1_1 = 2399073536U;
        double* a2_0_1_1_1_1 = stackalloc double[1];
        *a2_0_1_1_1_1 = 1.0000000000002376;

        s_arr3d_0_1_1_1_1[4, 0, 3] = -2399073472L;
        long val_0_1_1_1_1_1 = Func_0_1_1_1_1_1();
        if ((Convert.ToInt64(Convert.ToDouble(8828430758690422784L) * ((*a2_0_1_1_1_1)))) < (8828430758690422784L))
        {
            return Convert.ToInt64((Convert.ToInt64((Convert.ToInt64(Convert.ToDouble(8828430758690422784L) * ((*a2_0_1_1_1_1))) - val_0_1_1_1_1_1) / (Convert.ToInt64((Convert.ToInt64(vt_0_1_1_1_1.a1_0_1_1_1_1) + s_arr3d_0_1_1_1_1[4, 0, 3]) / (Convert.ToInt64(Convert.ToInt64(Convert.ToDouble(s_arr3d_0_1_1_1_1[4, 0, 3]) * -8.3365516869005671E-10)) * Convert.ToInt64((Convert.ToInt64(s_arr3d_0_1_1_1_1[4, 0, 3] / s_arr3d_0_1_1_1_1[4, 0, 3])))))))));
        }
        return Convert.ToInt64((Convert.ToInt64((Convert.ToInt64(Convert.ToDouble(8828430758690422784L) * ((*a2_0_1_1_1_1))) - val_0_1_1_1_1_1) / (Convert.ToInt64((Convert.ToInt64(vt_0_1_1_1_1.a1_0_1_1_1_1) + s_arr3d_0_1_1_1_1[4, 0, 3]) / (Convert.ToInt64(Convert.ToInt64(Convert.ToDouble(s_arr3d_0_1_1_1_1[4, 0, 3]) * -8.3365516869005671E-10)) * Convert.ToInt64((Convert.ToInt64(s_arr3d_0_1_1_1_1[4, 0, 3] / s_arr3d_0_1_1_1_1[4, 0, 3])))))))));
    }

    public static short Func_0_1_1_1()
    {
        s_arr1d_0_1_1_1[0] = -4.0;
        long val_0_1_1_1_1 = Func_0_1_1_1_1();
        double asgop0 = -1.798828125;
        asgop0 -= ((-5.798828125));
        double asgop1 = -5.798828125;
        asgop1 -= ((s_arr1d_0_1_1_1[0]));
        return Convert.ToInt16((Convert.ToInt16((val_0_1_1_1_1 / asgop0) - ((Convert.ToDouble(8192UL * asgop1))))));
    }

    public static ushort Func_0_1_1()
    {
        double[,,] arr3d_0_1_1 = new double[5, 9, 4];

        vtstatic_0_1_1.arr1d_0_1_1[1] = 1335221039;
        arr3d_0_1_1[4, 0, 3] = 5.339914645886728E-10;
        arr3d_0_1_1[4, 2, 3] = 1.2023524862987123;
        short val_0_1_1_1 = Func_0_1_1_1();
        if ((arr3d_0_1_1[4, 0, 3]) >= (arr3d_0_1_1[4, 2, 3]))
        {
            if ((val_0_1_1_1) >= (Convert.ToInt16((Convert.ToInt16(val_0_1_1_1)) % (Convert.ToInt16(15783)))))
            {
                return Convert.ToUInt16(Convert.ToUInt16(Convert.ToInt16((Convert.ToInt16(val_0_1_1_1)) % (Convert.ToInt16(15783))) * Convert.ToSingle(Convert.ToSingle(Convert.ToUInt32(vtstatic_0_1_1.arr1d_0_1_1[1] * arr3d_0_1_1[4, 2, 3]) * arr3d_0_1_1[4, 0, 3]))));
            }
            else
            {
                if ((val_0_1_1_1) > (Convert.ToInt16((Convert.ToInt16(val_0_1_1_1)) % (Convert.ToInt16(15783)))))
                    Console.WriteLine("Func_0_1_1: > true");
                else
                {
                    return Convert.ToUInt16(Convert.ToUInt16(Convert.ToInt16((Convert.ToInt16(val_0_1_1_1)) % (Convert.ToInt16(15783))) * Convert.ToSingle(Convert.ToSingle(Convert.ToUInt32(vtstatic_0_1_1.arr1d_0_1_1[1] * arr3d_0_1_1[4, 2, 3]) * arr3d_0_1_1[4, 0, 3]))));
                }
            }
        }
        return Convert.ToUInt16(Convert.ToUInt16(Convert.ToInt16((Convert.ToInt16(val_0_1_1_1)) % (Convert.ToInt16(15783))) * Convert.ToSingle(Convert.ToSingle(Convert.ToUInt32(vtstatic_0_1_1.arr1d_0_1_1[1] * arr3d_0_1_1[4, 2, 3]) * arr3d_0_1_1[4, 0, 3]))));
    }

    public static int Func_0_1()
    {
        CL_0_1 cl_0_1 = new CL_0_1();
        long[,] arr2d_0_1 = new long[3, 9];

        vtstatic_0_1.a1_0_1 = 2111178723;
        arr2d_0_1[2, 0] = 3029300220748914301L;
        ushort val_0_1_1 = Func_0_1_1();
        int asgop0 = vtstatic_0_1.a1_0_1;
        asgop0 += ((Convert.ToInt32(Convert.ToInt64(3029300219813560320L) - Convert.ToInt64(arr2d_0_1[2, 0]))));
        return Convert.ToInt32((Convert.ToInt32((Convert.ToInt32((Convert.ToInt32(val_0_1_1) + cl_0_1.a2_0_1))) % (Convert.ToInt32(asgop0)))));
    }

    public static int Func_0()
    {
        s_arr3d_0[4, 0, 3] = 112.75552824827484409018782981M;
        int val_0_1 = Func_0_1();
        int retval_0 = Convert.ToInt32(Convert.ToInt32(Convert.ToDecimal((Convert.ToInt32(val_0_1 * (s_a2_0 / 41477.078575715459)))) / (Convert.ToDecimal(Convert.ToInt64(Convert.ToDouble(s_a1_0) * 0.00390625) * (Convert.ToDecimal(s_a2_0) * s_arr3d_0[4, 0, 3])))));
        return retval_0;
    }

    public static int Main()
    {
        s_arr3d_0[4, 0, 3] = 112.75552824827484409018782981M;

        int retval;
        retval = Convert.ToInt32(Func_0());
        if ((retval >= 99) && (retval < 100))
            retval = 100;
        if ((retval > 100) && (retval <= 101))
            retval = 100;
        Console.WriteLine(retval);
        return retval;
    }
}