/*
 * @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_1251
 * @run driver/timeout=180 applications.javafuzzer.TestDriver BASIC:240 -XX:-PrintWarnings -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -Xcomp Test_1251
 * @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=578955928 -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMacroExpansion -XX:+StressLoopPeeling -XX:+VerifyLoopOptimizations -XX:VerifyIterativeGVN=1110 Test_1251


 */

// Generated by Java* Fuzzer test generator (1.0.001). Wed Nov 12 01:18:00 2025
// Use '-Dtest_generator_rng_seed=63470297233193773067432449584817455034 to re-generate the same test code
public class Test_1251 {

    public static final int N = 400;

    public static volatile long instanceCount=11L;
    public static byte byFld=7;
    public int iFld=11;
    public static short sArrFld[][]=new short[N][N];
    public static boolean bArrFld[]=new boolean[N];
    public static int iArrFld[][]=new int[N][N];

    static {
        FuzzerUtils.init(Test_1251.sArrFld, (short)30551);
        FuzzerUtils.init(Test_1251.bArrFld, true);
        FuzzerUtils.init(Test_1251.iArrFld, -6);
    }

    public static long vMeth_check_sum = 0;
    public static long vMeth1_check_sum = 0;
    public static long vMeth2_check_sum = 0;

    public static void vMeth2() {

        int i9=-251, i10=84, i11=233, i12=-22, i13=-30584, i14=-12;
        double d=-85.118212;
        float f=1.652F;

        i9 = 1;
        do {
            i10 += (((i9 * i9) + Test_1251.byFld) - i10);
            d = 1;
            do {
                i11 = 1;
                while (++i11 < 1) {
                    Test_1251.byFld = (byte)21098;
                }
                for (i12 = (int)(d); i12 < 1; i12++) {
                    double d1=-8.35750;
                    i10 = -31030;
                    i10 = i9;
                    i14 *= -14;
                    f *= Test_1251.instanceCount;
                    Test_1251.instanceCount = i12;
                    i14 = (int)Test_1251.instanceCount;
                    d1 *= i10;
                    i13 += (i12 * i12);
                }
                Test_1251.sArrFld[(int)(d - 1)][(int)(d)] = (short)i9;
            } while (++d < 5);
        } while (++i9 < 349);
        vMeth2_check_sum += i9 + i10 + Double.doubleToLongBits(d) + i11 + i12 + i13 + i14 + Float.floatToIntBits(f);
    }

    public static void vMeth1() {

        int i7=-7, i8=-3, i15=118, i16=-43724, i17=-215, i18=3, i19=-20;
        float f1=0.277F;
        double d2=0.52447;
        long lArr1[]=new long[N];

        FuzzerUtils.init(lArr1, -7L);

        for (i7 = 15; i7 < 250; i7++) {
            vMeth2();
        }
        Test_1251.bArrFld[(0 >>> 1) % N] = true;
        i15 = 1;
        while (++i15 < 260) {
            for (i16 = 1; 6 > i16; ++i16) {
                i8 += i16;
                for (i18 = i16; 2 > i18; i18++) {
                    i19 = 164;
                    i19 = (int)Test_1251.instanceCount;
                    Test_1251.iArrFld[i18 - 1][i15 - 1] >>= (int)5L;
                    i19 <<= (int)Test_1251.instanceCount;
                    i19 -= (int)f1;
                    lArr1 = lArr1;
                    i17 = 50395;
                    d2 -= -134;
                }
            }
        }
        vMeth1_check_sum += i7 + i8 + i15 + i16 + i17 + i18 + i19 + Float.floatToIntBits(f1) +
            Double.doubleToLongBits(d2) + FuzzerUtils.checkSum(lArr1);
    }

    public static void vMeth(short s, int i) {

        int i1=-148, i2=-13, i3=219, i4=68, i5=-2, i6=-8, iArr[]=new int[N];
        boolean b=true;
        float f2=-81.12F;
        long lArr[]=new long[N];

        FuzzerUtils.init(lArr, -6808950084574697003L);
        FuzzerUtils.init(iArr, -9843);

        i <<= i;
        i1 = 1;
        while (++i1 < 237) {
            i += i1;
            for (i2 = 1; i2 < 7; i2++) {
                for (i4 = 1; 2 > i4; i4++) {
                    i5 >>>= (int)((--i3) - Double.longBitsToDouble(lArr[(i1 >>> 1) % N]));
                }
                Test_1251.instanceCount -= Test_1251.instanceCount;
                i6 = 1;
                while (++i6 < 2) {
                    iArr[i6 + 1] += (i3--);
                    vMeth1();
                    i3 = i2;
                    i5 = i6;
                    if (b) break;
                    i5 = -142;
                    f2 += i6;
                }
            }
        }
        vMeth_check_sum += s + i + i1 + i2 + i3 + i4 + i5 + i6 + (b ? 1 : 0) + Float.floatToIntBits(f2) +
            FuzzerUtils.checkSum(lArr) + FuzzerUtils.checkSum(iArr);
    }

    public void mainTest(String[] strArr1) {

        short s1=975;

        vMeth((short)(2968), -180);
        s1 *= (short)iFld;

        FuzzerUtils.out.println("s1 Test_1251 = " + s1 + "," + Test_1251.instanceCount);

        FuzzerUtils.out.println("Test_1251.instanceCount Test_1251.byFld iFld = " + Test_1251.instanceCount + "," +
            Test_1251.byFld + "," + iFld);
        FuzzerUtils.out.println("Test_1251.sArrFld Test_1251.bArrFld Test_1251.iArrFld = " +
            FuzzerUtils.checkSum(Test_1251.sArrFld) + "," + FuzzerUtils.checkSum(Test_1251.bArrFld) + "," +
            FuzzerUtils.checkSum(Test_1251.iArrFld));
        FuzzerUtils.out.println("Test_1251 = " + Test_1251.instanceCount);

        FuzzerUtils.out.println("vMeth2_check_sum: " + vMeth2_check_sum);
        FuzzerUtils.out.println("vMeth1_check_sum: " + vMeth1_check_sum);
        FuzzerUtils.out.println("vMeth_check_sum: " + vMeth_check_sum);
    }
    public static void main(String[] strArr) {

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