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


 */

// Generated by Java* Fuzzer test generator (1.0.001). Mon Nov 10 12:21:41 2025
// Use '-Dtest_generator_rng_seed=49472714451261759384377485403506475329 to re-generate the same test code
public class Test_4691 {

    public static final int N = 400;

    public static long instanceCount=3L;
    public int iFld=-148;
    public float fFld=-11.758F;
    public boolean bFld=true;
    public static double dFld=67.123444;
    public static long lArrFld[][]=new long[N][N];
    public static int iArrFld[][]=new int[N][N];
    public static int iArrFld1[][]=new int[N][N];

    static {
        FuzzerUtils.init(Test_4691.lArrFld, 6827162030227446718L);
        FuzzerUtils.init(Test_4691.iArrFld, 51099);
        FuzzerUtils.init(Test_4691.iArrFld1, 231);
    }

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

    public static void vMeth1(long l) {

        int i4=81, i5=2, i6=-39167, i7=-61728, i8=-27799, i9=0, i10=-65322;
        byte by1=12;
        short s=3597;

        l *= -30746;
        i4 = (int)Test_4691.instanceCount;
        for (i5 = 1; i5 < 203; ++i5) {
            by1 >>= (byte)i5;
            i4 += (i5 * i5);
            i4 += 1301;
            Test_4691.lArrFld[i5 - 1][(i6 >>> 1) % N] = -19;
        }
        Test_4691.lArrFld[(i6 >>> 1) % N] = Test_4691.lArrFld[(i6 >>> 1) % N];
        for (i7 = 1; i7 < 224; i7++) {
            i6 = i7;
            for (i9 = 7; i7 < i9; i9 -= 3) {
                i8 = s;
            }
            l = 211;
            Test_4691.dFld -= i5;
            l += l;
        }
        vMeth1_check_sum += l + i4 + i5 + i6 + by1 + i7 + i8 + i9 + i10 + s;
    }

    public static void vMeth(byte by) {

        int i2=-4, i3=-1361, i11=-58808, i12=195, i13=0, i14=-254, i15=12;
        float f=0.726F;
        long l1=-11L;
        boolean b=true;
        short s1=8231;
        byte byArr[]=new byte[N];

        FuzzerUtils.init(byArr, (byte)90);

        for (i2 = 12; 353 > i2; ++i2) {
            vMeth1(Test_4691.instanceCount);
            i3 += (((i2 * f) + i2) - f);
            for (i11 = 5; i11 > 1; i11--) {
                Test_4691.instanceCount <<= 14534;
                i3 += (((i11 * Test_4691.instanceCount) + i3) - Test_4691.instanceCount);
                for (l1 = 1; l1 < 2; ++l1) {
                    b = true;
                    Test_4691.iArrFld = Test_4691.iArrFld1;
                    Test_4691.lArrFld[i11][(int)(l1)] >>= Test_4691.instanceCount;
                    Test_4691.iArrFld1[i2 - 1][i2] = -1;
                    s1 += (short)l1;
                }
                for (i14 = 1; i14 < 2; i14++) {
                    byArr[i14] = (byte)12;
                    s1 = s1;
                }
            }
        }
        vMeth_check_sum += by + i2 + i3 + Float.floatToIntBits(f) + i11 + i12 + l1 + i13 + (b ? 1 : 0) + s1 + i14 + i15
            + FuzzerUtils.checkSum(byArr);
    }

    public int iMeth() {

        byte by2=-80;
        int i16=-106, i17=-130, iArr[]=new int[N];
        short s2=-20165;

        FuzzerUtils.init(iArr, 196);

        iArr[(-19515 >>> 1) % N] += (int)-12.104942;
        vMeth(by2);
        for (i16 = 14; i16 < 280; i16++) {
            s2 = (short)15931;
            if (bFld) break;
            iFld *= (int)Test_4691.instanceCount;
        }
        long meth_res = by2 + i16 + i17 + s2 + FuzzerUtils.checkSum(iArr);
        iMeth_check_sum += meth_res;
        return (int)meth_res;
    }

    public void mainTest(String[] strArr1) {

        int i=-23391, i1=104, i18=0, i19=-26, i20=-31, i21=-45611, i22=-13, i23=57889, i24=4;
        long l2=-13L;
        byte byArr1[]=new byte[N];

        FuzzerUtils.init(byArr1, (byte)-98);

        iFld *= (int)((iFld--) * (fFld + (-81.115724 * iFld)));
        for (i = 8; i < 141; i += 3) {
            bFld = (((i1 -= iFld) + (fFld - Test_4691.instanceCount)) != ((Test_4691.instanceCount + i) -
                Math.abs(i1)));
            fFld = iMeth();
            if (true) {
                Test_4691.iArrFld1[i + 1][i + 1] = iFld;
                for (l2 = 13; l2 < 211; l2++) {
                    iFld = iFld;
                    for (i19 = 1; 3 > i19; ++i19) {
                        short s3=-3987;
                        i18 += (((i19 * i20) + i1) - i19);
                        iFld += (i19 - s3);
                        fFld += l2;
                        i20 = (int)l2;
                        i20 = i19;
                    }
                    Test_4691.lArrFld[(int)(l2 - 1)][(int)(l2)] *= i19;
                    i1 = 0;
                    i20 = i19;
                    for (i21 = (int)(l2); 3 > i21; i21++) {
                        Test_4691.instanceCount += i21;
                        i22 -= iFld;
                        i22 = (int)Test_4691.instanceCount;
                        i22 = i19;
                        Test_4691.instanceCount = i18;
                    }
                    iFld = i19;
                }
            }
            Test_4691.iArrFld1[i - 1][i] = 49;
        }
        for (i23 = 2; i23 < 250; ++i23) {
            fFld += (((i23 * fFld) + i23) - i);
            byArr1[i23 + 1] = (byte)Test_4691.instanceCount;
            Test_4691.lArrFld[i23][i23 - 1] = iFld;
            Test_4691.instanceCount += (((i23 * i18) + i23) - i21);
        }

        FuzzerUtils.out.println("i i1 l2 = " + i + "," + i1 + "," + l2);
        FuzzerUtils.out.println("i18 i19 i20 = " + i18 + "," + i19 + "," + i20);
        FuzzerUtils.out.println("i21 i22 i23 = " + i21 + "," + i22 + "," + i23);
        FuzzerUtils.out.println("i24 byArr1 Test_4691 = " + i24 + "," + FuzzerUtils.checkSum(byArr1) + "," +
            Test_4691.instanceCount);

        FuzzerUtils.out.println("Test_4691.instanceCount iFld fFld = " + Test_4691.instanceCount + "," + iFld + "," +
            Float.floatToIntBits(fFld));
        FuzzerUtils.out.println("bFld Test_4691.dFld Test_4691.lArrFld = " + (bFld ? 1 : 0) + "," +
            Double.doubleToLongBits(Test_4691.dFld) + "," + FuzzerUtils.checkSum(Test_4691.lArrFld));
        FuzzerUtils.out.println("Test_4691.iArrFld Test_4691.iArrFld1 Test_4691 = " +
            FuzzerUtils.checkSum(Test_4691.iArrFld) + "," + FuzzerUtils.checkSum(Test_4691.iArrFld1) + "," +
            Test_4691.instanceCount);

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

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