/*
 * @test
 
 * @library / /closed/test/hotspot/jtreg /open/test/lib /open/test/hotspot/jtreg/testlibrary/jittester/src /open/test/failure_handler/src/share/classes
 * @build Test_1751
 * @run driver/timeout=180 applications.javafuzzer.TestDriver BASIC:240 -XX:-PrintWarnings -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -Xcomp Test_1751
 * @run driver/timeout=180 applications.javafuzzer.TestDriver C2_STRESS:720 -XX:-PrintWarnings -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:StressSeed=857257568 -XX:+UnlockExperimentalVMOptions -XX:PerMethodSpecTrapLimit=0 -XX:PerMethodTrapLimit=0 -XX:+VerifyLoopOptimizations -XX:VerifyIterativeGVN=1110 Test_1751


 */

// Generated by Java* Fuzzer test generator (1.0.001). Sun Nov  9 20:29:30 2025
// Use '-Dtest_generator_rng_seed=166421959448553785850132096459338758861 to re-generate the same test code
public class Test_1751 {

    public static final int N = 400;

    public static long instanceCount=-3418372303244130166L;
    public static double dFld=-25.117680;
    public static boolean bFld=false;
    public static int iArrFld[]=new int[N];

    static {
        FuzzerUtils.init(Test_1751.iArrFld, 28);
    }

    public static long fMeth_check_sum = 0;
    public static long iMeth_check_sum = 0;
    public static long iMeth1_check_sum = 0;

    public static int iMeth1(int i10, int i11) {

        int i12=75, i13=47844, i14=-9279, i15=-56417;
        double d1=-25.109713;
        byte by1=105;
        float f=13.730F;

        for (i12 = 9; 339 > i12; i12++) {
            Test_1751.dFld = i10;
            i14 = 1;
            while ((i14 += 3) < 5) {
                for (d1 = 1; d1 < 5; d1++) {
                    if (Test_1751.bFld) {
                        i15 -= i12;
                        by1 <<= (byte)i13;
                        f += (float)(((d1 * Test_1751.instanceCount) + i13) - i12);
                        switch ((i14 % 5) + 7) {
                        case 7:
                            Test_1751.iArrFld = Test_1751.iArrFld;
                            Test_1751.dFld -= f;
                            i11 += (int)3205004577378648894L;
                            break;
                        case 8:
                            i11 = i11;
                        case 9:
                            Test_1751.instanceCount *= 1;
                            i11 = i15;
                            break;
                        case 10:
                        case 11:
                            Test_1751.iArrFld[i12] += i14;
                            break;
                        }
                    } else if (Test_1751.bFld) {
                        i15 = i15;
                    } else if (Test_1751.bFld) {
                        i15 = i14;
                    } else {
                        if (false) continue;
                    }
                }
            }
        }
        long meth_res = i10 + i11 + i12 + i13 + i14 + Double.doubleToLongBits(d1) + i15 + by1 + Float.floatToIntBits(f);
        iMeth1_check_sum += meth_res;
        return (int)meth_res;
    }

    public static int iMeth(short s1, int i4) {

        int i5=-26484, i6=-60597, i7=144, i8=-2, i9=-3732, i16=-3, i17=130;
        double d=-2.38848;
        float f1=124.744F;
        short sArr[]=new short[N];

        FuzzerUtils.init(sArr, (short)-12384);

        Test_1751.iArrFld[(i4 >>> 1) % N] -= (Test_1751.iArrFld[(i4 >>> 1) % N]--);
        for (i5 = 183; i5 > 4; i5 -= 3) {
            for (i7 = 26; i7 > 1; i7--) {
                if (i6 != 0) {
                }
                i9 = 1;
                while (++i9 < 2) {
                    d *= iMeth1(i9, i7);
                    d = i6;
                }
                i4 = (int)Test_1751.instanceCount;
                Test_1751.instanceCount += i7;
            }
            for (i16 = 26; i16 > 1; i16 -= 3) {
                i8 = i8;
                f1 = -10;
                Test_1751.instanceCount = i9;
                sArr[i5] *= (short)14L;
                i4 <<= i16;
            }
        }
        long meth_res = s1 + i4 + i5 + i6 + i7 + i8 + i9 + Double.doubleToLongBits(d) + i16 + i17 +
            Float.floatToIntBits(f1) + FuzzerUtils.checkSum(sArr);
        iMeth_check_sum += meth_res;
        return (int)meth_res;
    }

    public static float fMeth(int i) {

        int i1=-2, i2=4, i3=-114, i18=10, i19=-23779, iArr[]=new int[N];
        short s2=3295;
        boolean bArr[]=new boolean[N];

        FuzzerUtils.init(iArr, 26796);
        FuzzerUtils.init(bArr, true);

        Test_1751.instanceCount ^= (++i);
        i1 = 1;
        while ((i1 += 2) < 282) {
            Test_1751.instanceCount *= iArr[i1];
            Test_1751.instanceCount ^= (++i);
            if (true) {
                for (i2 = 1; i2 < 11; ++i2) {
                    i3 <<= (i1 * iMeth((short)(-1734), i2));
                    i3 ^= (int)Test_1751.instanceCount;
                    i -= (int)Test_1751.dFld;
                    for (i18 = 1; i18 < 2; i18++) {
                        iArr = FuzzerUtils.int1array(N, (int)-10);
                        bArr[i2 + 1] = Test_1751.bFld;
                        s2 *= (short)i2;
                        i += (4 + (i18 * i18));
                        i19 = s2;
                    }
                }
            } else if (Test_1751.bFld) {
                i19 += i1;
            } else if (Test_1751.bFld) {
                Test_1751.dFld *= 211;
            }
        }
        long meth_res = i + i1 + i2 + i3 + i18 + i19 + s2 + FuzzerUtils.checkSum(iArr) + FuzzerUtils.checkSum(bArr);
        fMeth_check_sum += meth_res;
        return (float)meth_res;
    }

    public void mainTest(String[] strArr1) {

        byte by=-80;
        short s=2443;
        int i20=21, i21=4, i22=-16, i23=61, i24=51, i25=137, i26=47;
        float f2=1.992F, fArr[]=new float[N];
        long lArr[]=new long[N];

        FuzzerUtils.init(lArr, 5840094133290075884L);
        FuzzerUtils.init(fArr, 98.683F);

        by += (byte)(s - fMeth(58947));
        Test_1751.instanceCount |= i20;
        f2 -= i20;
        lArr[(i20 >>> 1) % N] *= i20;
        i20 -= i20;
        i20 = i20;
        i20 += (int)Test_1751.instanceCount;
        f2 -= 5;
        i20 -= -22580;
        for (i21 = 5; i21 < 133; ++i21) {
            Test_1751.instanceCount = i21;
            i20 += (i21 ^ i21);
            i23 = 1;
            do {
                Test_1751.instanceCount <<= i21;
                i24 = 1;
                while (++i24 < 4) {
                    fArr[i24 + 1] *= i22;
                    i22 += (i24 | i21);
                    i22 += -48;
                    f2 = i23;
                    i22 += -9947;
                }
                Test_1751.iArrFld = Test_1751.iArrFld;
                i22 = i20;
                Test_1751.instanceCount >>= i21;
                i22 = (int)f2;
                f2 += (((i23 * f2) + i21) - i22);
            } while ((i23 += 3) < 196);
            for (i25 = 8; i25 < 196; ++i25) {
                i22 += (i25 + Test_1751.instanceCount);
                i20 += (((i25 * Test_1751.instanceCount) + i25) - f2);
                i22 += (20595 + (i25 * i25));
                i20 <<= -12068;
            }
        }

        FuzzerUtils.out.println("by s i20 = " + by + "," + s + "," + i20);
        FuzzerUtils.out.println("f2 i21 i22 = " + Float.floatToIntBits(f2) + "," + i21 + "," + i22);
        FuzzerUtils.out.println("i23 i24 i25 = " + i23 + "," + i24 + "," + i25);
        FuzzerUtils.out.println("i26 lArr fArr = " + i26 + "," + FuzzerUtils.checkSum(lArr) + "," +
            Double.doubleToLongBits(FuzzerUtils.checkSum(fArr)));
        FuzzerUtils.out.println("Test_1751 = " + Test_1751.instanceCount);

        FuzzerUtils.out.println("Test_1751.instanceCount Test_1751.dFld Test_1751.bFld = " + Test_1751.instanceCount +
            "," + Double.doubleToLongBits(Test_1751.dFld) + "," + (Test_1751.bFld ? 1 : 0));
        FuzzerUtils.out.println("Test_1751.iArrFld Test_1751 = " + FuzzerUtils.checkSum(Test_1751.iArrFld) + "," +
            Test_1751.instanceCount);

        FuzzerUtils.out.println("iMeth1_check_sum: " + iMeth1_check_sum);
        FuzzerUtils.out.println("iMeth_check_sum: " + iMeth_check_sum);
        FuzzerUtils.out.println("fMeth_check_sum: " + fMeth_check_sum);
    }
    public static void main(String[] strArr) {

        try {
            Test_1751 _instance = new Test_1751();
            for (int i = 0; i < 10; i++ ) {
                _instance.mainTest(strArr);
            }
         } catch (Exception ex) {
            FuzzerUtils.out.println(ex.getClass().getCanonicalName());
         }
    }
}
///////////////////////////////////////////////////////////////////////
//DEBUG  Test_1751 ->  Test_1751
//DEBUG  main ->  main
//DEBUG  mainTest ->  mainTest
//DEBUG  fMeth ->  fMeth mainTest
//DEBUG  iMeth ->  iMeth fMeth mainTest
//DEBUG  iMeth1 ->  iMeth1 iMeth fMeth mainTest
//DEBUG  Depth = 3
//DEBUG  Classes = 1
//DEBUG  static objects = {}
