/*
 * @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_547
 * @run driver/timeout=180 applications.javafuzzer.TestDriver BASIC:240 -XX:-PrintWarnings -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -Xcomp Test_547
 * @run driver/timeout=180 applications.javafuzzer.TestDriver C2_STRESS:840 -XX:-PrintWarnings -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:StressSeed=689678116 -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMacroExpansion -XX:+StressLoopPeeling -XX:+UnlockExperimentalVMOptions -XX:PerMethodSpecTrapLimit=0 -XX:PerMethodTrapLimit=0 -XX:+VerifyLoopOptimizations -XX:VerifyIterativeGVN=1110 Test_547


 */

// Generated by Java* Fuzzer test generator (1.0.001). Sun Nov  9 07:06:38 2025
// Use '-Dtest_generator_rng_seed=97402301162147907394002111342250354550 to re-generate the same test code
public class Test_547 {

    public static final int N = 400;

    public static long instanceCount=-3L;
    public static int iFld=250;
    public static float fFld=28.649F;
    public short sFld=23222;
    public static float fArrFld[]=new float[N];

    static {
        FuzzerUtils.init(Test_547.fArrFld, 28.1009F);
    }

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

    public static int iMeth1() {

        int i4=-6, i5=4, i6=1247, iArr1[]=new int[N];
        long l2=-8282747000621023984L, l3=-1L;
        float f1=0.653F;
        double d=0.100480;
        byte by1=45;

        FuzzerUtils.init(iArr1, -141);

        i4 += -6;
        Test_547.instanceCount -= i4;
        i5 = 1;
        while (++i5 < 194) {
            for (l2 = 1; 8 > l2; ++l2) {
                f1 += (((l2 * f1) + i4) - f1);
                l3 += l2;
                Test_547.instanceCount += (((l2 * l2) + i4) - i4);
                f1 += i4;
                Test_547.instanceCount = -51;
                i4 -= (int)-121.866F;
                d += by1;
                i6 = (int)l2;
                iArr1[i5 + 1] += i4;
            }
            i4 = (int)Test_547.instanceCount;
            d = 211;
        }
        long meth_res = i4 + i5 + l2 + i6 + Float.floatToIntBits(f1) + l3 + Double.doubleToLongBits(d) + by1 +
            FuzzerUtils.checkSum(iArr1);
        iMeth1_check_sum += meth_res;
        return (int)meth_res;
    }

    public static int iMeth(float f, long l1) {

        int i7=-6072, i8=3, i9=166, i10=54154, i11=11, i12=111, i13=-7519, iArr2[]=new int[N];
        long lArr1[]=new long[N];

        FuzzerUtils.init(iArr2, 220);
        FuzzerUtils.init(lArr1, -1388886624509998275L);

        iMeth1();
        Test_547.iFld *= -20721;
        for (i7 = 2; i7 < 136; ++i7) {
            for (i9 = 1; i9 < 12; i9++) {
                i8 += (i9 | i9);
                i8 <<= (int)Test_547.instanceCount;
                iArr2[i9 + 1] *= (int)-1.101249;
                f -= i9;
            }
            for (i11 = 1; 12 > i11; i11++) {
                f -= Test_547.instanceCount;
                iArr2[i11 + 1] = (int)Test_547.instanceCount;
                i8 += i11;
                i8 += (int)Test_547.instanceCount;
                lArr1[i7] >>= Test_547.instanceCount;
                i8 = i13;
            }
        }
        long meth_res = Float.floatToIntBits(f) + l1 + i7 + i8 + i9 + i10 + i11 + i12 + i13 +
            FuzzerUtils.checkSum(iArr2) + FuzzerUtils.checkSum(lArr1);
        iMeth_check_sum += meth_res;
        return (int)meth_res;
    }

    public void vMeth(int i3, byte by, long l) {


        iMeth(Test_547.fFld, l);
        vMeth_check_sum += i3 + by + l;
    }

    public void mainTest(String[] strArr1) {

        int i=2491, i1=-235, i2=1, i14=11, i15=0, i16=204, i17=1, i18=8, iArr[]=new int[N];
        byte by2=9;
        double d1=125.73161;
        long lArr[]=new long[N];

        FuzzerUtils.init(iArr, -8);
        FuzzerUtils.init(lArr, -1377034308L);

        for (i = 1; i < 360; ++i) {
            boolean b=false;
            try {
                i1 = (i % iArr[i]);
                i2 = (161 / i2);
                i1 = (5480 % i2);
            } catch (ArithmeticException a_e) {}
            i2 += i;
            lArr[i + 1] *= (++i2);
            vMeth(i1, by2, 24018L);
            iArr[i - 1] <<= i1;
            Test_547.fFld += (float)d1;
            if (b) break;
            i2 = (int)-12.471F;
            i14 = 1;
            while (++i14 < 70) {
                Test_547.iFld = sFld;
                Test_547.fFld = Test_547.instanceCount;
                lArr[i14 + 1] += 43967L;
                for (i15 = 1; i15 < 1; ++i15) {
                    Test_547.iFld = -20;
                    Test_547.fArrFld[i15] *= (float)d1;
                    Test_547.instanceCount *= (long)Test_547.fFld;
                }
                Test_547.iFld -= Test_547.iFld;
                Test_547.iFld += i14;
                i16 = (int)28912L;
                Test_547.instanceCount += i;
                Test_547.fFld = -25900;
                b = b;
            }
        }
        sFld <<= (short)Test_547.iFld;
        Test_547.iFld = (int)Test_547.fFld;
        try {
            for (i17 = 11; i17 < 395; i17++) {
                Test_547.fFld = Test_547.instanceCount;
                Test_547.instanceCount = (long)Test_547.fFld;
                Test_547.iFld *= (int)Test_547.instanceCount;
            }
        }
        catch (NegativeArraySizeException exc1) {
            i18 = i14;
        }

        FuzzerUtils.out.println("i i1 i2 = " + i + "," + i1 + "," + i2);
        FuzzerUtils.out.println("by2 d1 i14 = " + by2 + "," + Double.doubleToLongBits(d1) + "," + i14);
        FuzzerUtils.out.println("i15 i16 i17 = " + i15 + "," + i16 + "," + i17);
        FuzzerUtils.out.println("i18 iArr lArr = " + i18 + "," + FuzzerUtils.checkSum(iArr) + "," +
            FuzzerUtils.checkSum(lArr));
        FuzzerUtils.out.println("Test_547 = " + Test_547.instanceCount);

        FuzzerUtils.out.println("Test_547.instanceCount Test_547.iFld Test_547.fFld = " + Test_547.instanceCount + ","
            + Test_547.iFld + "," + Float.floatToIntBits(Test_547.fFld));
        FuzzerUtils.out.println("sFld Test_547.fArrFld Test_547 = " + sFld + "," +
            Double.doubleToLongBits(FuzzerUtils.checkSum(Test_547.fArrFld)) + "," + Test_547.instanceCount);

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

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