class org.graalvm.compiler.hotspot.JVMCIVersionCheck
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.graalvm.compiler.hotspot.JVMCIVersionCheck
  super_class: java.lang.Object
{
  private static final int JVMCI8_MIN_MAJOR_VERSION;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 0

  private static final int JVMCI8_MIN_MINOR_VERSION;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 26

  private static final int JVMCI9_MIN_EA_BUILD;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 176

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.hotspot.JVMCIVersionCheck this
         0: .line 38
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.graalvm.compiler.hotspot.JVMCIVersionCheck this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/hotspot/JVMCIVersionCheck;

  private static void failVersionCheck(boolean, java.lang.String, java.lang.Object[]);
    descriptor: (ZLjava/lang/String;[Ljava/lang/Object;)V
    flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
    Code:
      stack=6, locals=7, args_size=3
        start local 0 // boolean exit
        start local 1 // java.lang.String reason
        start local 2 // java.lang.Object[] args
         0: .line 48
            new java.util.Formatter
            dup
            invokespecial java.util.Formatter.<init>:()V
            aload 1 /* reason */
            aload 2 /* args */
            invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
            astore 3 /* errorMessage */
        start local 3 // java.util.Formatter errorMessage
         1: .line 49
            ldc "java.home"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 4 /* javaHome */
        start local 4 // java.lang.String javaHome
         2: .line 50
            ldc "java.vm.name"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 5 /* vmName */
        start local 5 // java.lang.String vmName
         3: .line 51
            aload 3 /* errorMessage */
            ldc "Set the JVMCI_VERSION_CHECK environment variable to \"ignore\" to suppress "
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
            pop
         4: .line 52
            aload 3 /* errorMessage */
            ldc "this error or to \"warn\" to emit a warning and continue execution.%n"
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
            pop
         5: .line 53
            aload 3 /* errorMessage */
            ldc "Currently used Java home directory is %s.%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* javaHome */
            aastore
            invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
            pop
         6: .line 54
            aload 3 /* errorMessage */
            ldc "Currently used VM configuration is: %s%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 5 /* vmName */
            aastore
            invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
            pop
         7: .line 55
            ldc "java.specification.version"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            ldc "1.9"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifge 10
         8: .line 56
            aload 3 /* errorMessage */
            ldc "Download the latest JVMCI JDK 8 from http://www.oracle.com/technetwork/oracle-labs/program-languages/downloads/index.html"
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
            pop
         9: .line 57
            goto 11
        10: .line 58
      StackMap locals: java.util.Formatter java.lang.String java.lang.String
      StackMap stack:
            aload 3 /* errorMessage */
            ldc "Download the latest JDK 9 EA from https://jdk9.java.net/download/"
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
            pop
        11: .line 60
      StackMap locals:
      StackMap stack:
            ldc "JVMCI_VERSION_CHECK"
            invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
            astore 6 /* value */
        start local 6 // java.lang.String value
        12: .line 61
            ldc "warn"
            aload 6 /* value */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 15
        13: .line 62
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            aload 3 /* errorMessage */
            invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        14: .line 63
            goto 22
      StackMap locals: java.lang.String
      StackMap stack:
        15: ldc "ignore"
            aload 6 /* value */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 17
        16: .line 64
            return
        17: .line 65
      StackMap locals:
      StackMap stack:
            iload 0 /* exit */
            ifeq 21
        18: .line 66
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            aload 3 /* errorMessage */
            invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        19: .line 67
            iconst_m1
            invokestatic java.lang.System.exit:(I)V
        20: .line 68
            goto 22
        21: .line 69
      StackMap locals:
      StackMap stack:
            new java.lang.InternalError
            dup
            aload 3 /* errorMessage */
            invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
            athrow
        22: .line 71
      StackMap locals:
      StackMap stack:
            return
        end local 6 // java.lang.String value
        end local 5 // java.lang.String vmName
        end local 4 // java.lang.String javaHome
        end local 3 // java.util.Formatter errorMessage
        end local 2 // java.lang.Object[] args
        end local 1 // java.lang.String reason
        end local 0 // boolean exit
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   23     0          exit  Z
            0   23     1        reason  Ljava/lang/String;
            0   23     2          args  [Ljava/lang/Object;
            1   23     3  errorMessage  Ljava/util/Formatter;
            2   23     4      javaHome  Ljava/lang/String;
            3   23     5        vmName  Ljava/lang/String;
           12   23     6         value  Ljava/lang/String;
    MethodParameters:
        Name  Flags
      exit    
      reason  
      args    

  static void check(boolean);
    descriptor: (Z)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=6, locals=6, args_size=1
        start local 0 // boolean exitOnFailure
         0: .line 75
            ldc "java.vm.version"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 1 /* vmVersion */
        start local 1 // java.lang.String vmVersion
         1: .line 76
            ldc "java.specification.version"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            ldc "1.9"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifge 36
         2: .line 77
            aload 1 /* vmVersion */
            ldc "-jvmci-"
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 2 /* start */
        start local 2 // int start
         3: .line 78
            iload 2 /* start */
            iflt 32
         4: .line 79
            iload 2 /* start */
            ldc "-jvmci-"
            invokevirtual java.lang.String.length:()I
            iadd
            istore 2 /* start */
         5: .line 80
            aload 1 /* vmVersion */
            bipush 46
            iload 2 /* start */
            invokevirtual java.lang.String.indexOf:(II)I
            istore 3 /* end */
        start local 3 // int end
         6: .line 81
            iload 3 /* end */
            ifle 32
         7: .line 84
            aload 1 /* vmVersion */
            iload 2 /* start */
            iload 3 /* end */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 4 /* major */
        start local 4 // int major
         8: .line 85
            goto 14
        end local 4 // int major
      StackMap locals: int java.lang.String int int
      StackMap stack: java.lang.NumberFormatException
         9: pop
        10: .line 86
            iload 0 /* exitOnFailure */
            ldc "The VM does not support the minimum JVMCI API version required by Graal.%nCannot read JVMCI major version from java.vm.version property: %s.%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
        11: .line 87
            aload 1 /* vmVersion */
            aastore
        12: .line 86
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        13: .line 88
            return
        start local 4 // int major
        14: .line 90
      StackMap locals: int
      StackMap stack:
            iload 3 /* end */
            iconst_1
            iadd
            istore 2 /* start */
        15: .line 91
            iload 2 /* start */
            istore 3 /* end */
        16: .line 92
            goto 18
        17: .line 93
      StackMap locals:
      StackMap stack:
            iinc 3 /* end */ 1
        18: .line 92
      StackMap locals:
      StackMap stack:
            iload 3 /* end */
            aload 1 /* vmVersion */
            invokevirtual java.lang.String.length:()I
            if_icmpge 19
            aload 1 /* vmVersion */
            iload 3 /* end */
            invokevirtual java.lang.String.charAt:(I)C
            invokestatic java.lang.Character.isDigit:(C)Z
            ifne 17
        19: .line 97
      StackMap locals:
      StackMap stack:
            aload 1 /* vmVersion */
            iload 2 /* start */
            iload 3 /* end */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 5 /* minor */
        start local 5 // int minor
        20: .line 98
            goto 26
        end local 5 // int minor
      StackMap locals:
      StackMap stack: java.lang.NumberFormatException
        21: pop
        22: .line 99
            iload 0 /* exitOnFailure */
            ldc "The VM does not support the minimum JVMCI API version required by Graal.%nCannot read JVMCI minor version from java.vm.version property: %s.%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
        23: .line 100
            aload 1 /* vmVersion */
            aastore
        24: .line 99
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        25: .line 101
            return
        start local 5 // int minor
        26: .line 103
      StackMap locals: int
      StackMap stack:
            iload 4 /* major */
            iflt 28
            iload 5 /* minor */
            bipush 26
            if_icmplt 28
        27: .line 104
            return
        28: .line 106
      StackMap locals:
      StackMap stack:
            iload 0 /* exitOnFailure */
            ldc "The VM does not support the minimum JVMCI API version required by Graal: %d.%d < %d.%d.%n"
            iconst_4
            anewarray java.lang.Object
            dup
            iconst_0
        29: .line 107
            iload 4 /* major */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            iload 5 /* minor */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_2
            iconst_0
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_3
            bipush 26
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        30: .line 106
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        31: .line 108
            return
        end local 5 // int minor
        end local 4 // int major
        end local 3 // int end
        32: .line 111
      StackMap locals:
      StackMap stack:
            iload 0 /* exitOnFailure */
            ldc "The VM does not support the minimum JVMCI API version required by Graal.%nCannot read JVMCI version from java.vm.version property: %s.%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
        33: .line 112
            aload 1 /* vmVersion */
            aastore
        34: .line 111
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        end local 2 // int start
        35: .line 113
            goto 61
        36: .line 114
      StackMap locals:
      StackMap stack:
            aload 1 /* vmVersion */
            ldc "SNAPSHOT"
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ifeq 38
        37: .line 116
            return
        38: .line 118
      StackMap locals:
      StackMap stack:
            aload 1 /* vmVersion */
            ldc "internal"
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ifeq 40
        39: .line 120
            return
        40: .line 123
      StackMap locals:
      StackMap stack:
            aload 1 /* vmVersion */
            ldc "9+"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 61
        41: .line 124
            ldc "9+"
            invokevirtual java.lang.String.length:()I
            istore 2 /* start */
        start local 2 // int start
        42: .line 125
            iload 2 /* start */
            istore 3 /* end */
        start local 3 // int end
        43: .line 126
            iload 2 /* start */
            istore 3 /* end */
        44: .line 127
            goto 46
        45: .line 128
      StackMap locals: int int
      StackMap stack:
            iinc 3 /* end */ 1
        46: .line 127
      StackMap locals:
      StackMap stack:
            iload 3 /* end */
            aload 1 /* vmVersion */
            invokevirtual java.lang.String.length:()I
            if_icmpge 47
            aload 1 /* vmVersion */
            iload 3 /* end */
            invokevirtual java.lang.String.charAt:(I)C
            invokestatic java.lang.Character.isDigit:(C)Z
            ifne 45
        47: .line 132
      StackMap locals:
      StackMap stack:
            aload 1 /* vmVersion */
            iload 2 /* start */
            iload 3 /* end */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 4 /* build */
        start local 4 // int build
        48: .line 133
            goto 54
        end local 4 // int build
      StackMap locals:
      StackMap stack: java.lang.NumberFormatException
        49: pop
        50: .line 134
            iload 0 /* exitOnFailure */
            ldc "The VM does not support the minimum JVMCI API version required by Graal.%nCannot read JDK9 EA build number from java.vm.version property: %s.%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
        51: .line 135
            aload 1 /* vmVersion */
            aastore
        52: .line 134
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        53: .line 136
            return
        start local 4 // int build
        54: .line 138
      StackMap locals: int
      StackMap stack:
            iload 4 /* build */
            sipush 176
            if_icmplt 56
        55: .line 139
            return
        56: .line 143
      StackMap locals:
      StackMap stack:
            sipush 176
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            ldc 2147483647
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
            ifeq 59
        57: .line 144
            iload 0 /* exitOnFailure */
            ldc "This version of Graal is not compatible with any JDK 9 Early Access build.%n"
            iconst_0
            anewarray java.lang.Object
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        58: .line 145
            goto 60
        59: .line 146
      StackMap locals:
      StackMap stack:
            iload 0 /* exitOnFailure */
            ldc "The VM is an insufficiently recent EA JDK9 build for Graal: %d < %d.%n"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            iload 4 /* build */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            sipush 176
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        60: .line 148
      StackMap locals:
      StackMap stack:
            return
        end local 4 // int build
        end local 3 // int end
        end local 2 // int start
        61: .line 154
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String vmVersion
        end local 0 // boolean exitOnFailure
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   62     0  exitOnFailure  Z
            1   62     1      vmVersion  Ljava/lang/String;
            3   35     2          start  I
            6   32     3            end  I
            8    9     4          major  I
           14   32     4          major  I
           20   21     5          minor  I
           26   32     5          minor  I
           42   61     2          start  I
           43   61     3            end  I
           48   49     4          build  I
           54   61     4          build  I
      Exception table:
        from    to  target  type
           7     8       9  Class java.lang.NumberFormatException
          19    20      21  Class java.lang.NumberFormatException
          47    48      49  Class java.lang.NumberFormatException
    MethodParameters:
               Name  Flags
      exitOnFailure  

  public static void main(java.lang.String[]);
    descriptor: ([Ljava/lang/String;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.lang.String[] args
         0: .line 160
            iconst_1
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.check:(Z)V
         1: .line 161
            return
        end local 0 // java.lang.String[] args
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  args  [Ljava/lang/String;
    MethodParameters:
      Name  Flags
      args  
}
SourceFile: "JVMCIVersionCheck.java"