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: 46

  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 39
            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 45
            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 46
            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 47
            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 48
            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 49
            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 50
            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 51
            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 52
            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 53
            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 54
            goto 11
        10: .line 55
      StackMap locals: java.util.Formatter java.lang.String java.lang.String
      StackMap stack:
            aload 3 /* errorMessage */
            ldc "Download JDK 11 or later."
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
            pop
        11: .line 57
      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 58
            ldc "warn"
            aload 6 /* value */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 15
        13: .line 59
            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 60
            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 61
            return
        17: .line 62
      StackMap locals:
      StackMap stack:
            iload 0 /* exit */
            ifeq 21
        18: .line 63
            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 64
            iconst_m1
            invokestatic java.lang.System.exit:(I)V
        20: .line 65
            goto 22
        21: .line 66
      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 68
      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=7, args_size=1
        start local 0 // boolean exitOnFailure
         0: .line 72
            ldc "java.specification.version"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 1 /* javaSpecVersion */
        start local 1 // java.lang.String javaSpecVersion
         1: .line 73
            ldc "java.vm.version"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 2 /* vmVersion */
        start local 2 // java.lang.String vmVersion
         2: .line 74
            aload 1 /* javaSpecVersion */
            ldc "1.9"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifge 37
         3: .line 75
            aload 2 /* vmVersion */
            ldc "-jvmci-"
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 3 /* start */
        start local 3 // int start
         4: .line 76
            iload 3 /* start */
            iflt 33
         5: .line 77
            iload 3 /* start */
            ldc "-jvmci-"
            invokevirtual java.lang.String.length:()I
            iadd
            istore 3 /* start */
         6: .line 78
            aload 2 /* vmVersion */
            bipush 46
            iload 3 /* start */
            invokevirtual java.lang.String.indexOf:(II)I
            istore 4 /* end */
        start local 4 // int end
         7: .line 79
            iload 4 /* end */
            ifle 33
         8: .line 82
            aload 2 /* vmVersion */
            iload 3 /* start */
            iload 4 /* end */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 5 /* major */
        start local 5 // int major
         9: .line 83
            goto 15
        end local 5 // int major
      StackMap locals: int java.lang.String java.lang.String int int
      StackMap stack: java.lang.NumberFormatException
        10: pop
        11: .line 84
            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
        12: .line 85
            aload 2 /* vmVersion */
            aastore
        13: .line 84
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        14: .line 86
            return
        start local 5 // int major
        15: .line 88
      StackMap locals: int
      StackMap stack:
            iload 4 /* end */
            iconst_1
            iadd
            istore 3 /* start */
        16: .line 89
            iload 3 /* start */
            istore 4 /* end */
        17: .line 90
            goto 19
        18: .line 91
      StackMap locals:
      StackMap stack:
            iinc 4 /* end */ 1
        19: .line 90
      StackMap locals:
      StackMap stack:
            iload 4 /* end */
            aload 2 /* vmVersion */
            invokevirtual java.lang.String.length:()I
            if_icmpge 20
            aload 2 /* vmVersion */
            iload 4 /* end */
            invokevirtual java.lang.String.charAt:(I)C
            invokestatic java.lang.Character.isDigit:(C)Z
            ifne 18
        20: .line 95
      StackMap locals:
      StackMap stack:
            aload 2 /* vmVersion */
            iload 3 /* start */
            iload 4 /* end */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 6 /* minor */
        start local 6 // int minor
        21: .line 96
            goto 27
        end local 6 // int minor
      StackMap locals:
      StackMap stack: java.lang.NumberFormatException
        22: pop
        23: .line 97
            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
        24: .line 98
            aload 2 /* vmVersion */
            aastore
        25: .line 97
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        26: .line 99
            return
        start local 6 // int minor
        27: .line 101
      StackMap locals: int
      StackMap stack:
            iload 5 /* major */
            iflt 29
            iload 6 /* minor */
            bipush 46
            if_icmplt 29
        28: .line 102
            return
        29: .line 104
      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
        30: .line 105
            iload 5 /* major */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            iload 6 /* 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 46
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        31: .line 104
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        32: .line 106
            return
        end local 6 // int minor
        end local 5 // int major
        end local 4 // int end
        33: .line 109
      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
        34: .line 110
            aload 2 /* vmVersion */
            aastore
        35: .line 109
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        end local 3 // int start
        36: .line 111
            goto 53
      StackMap locals:
      StackMap stack:
        37: aload 1 /* javaSpecVersion */
            ldc "11"
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ifge 40
        38: .line 112
            iload 0 /* exitOnFailure */
            ldc "Graal is not compatible with the JVMCI API in JDK 9 and 10.%n"
            iconst_0
            anewarray java.lang.Object
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        39: .line 113
            goto 53
        40: .line 114
      StackMap locals:
      StackMap stack:
            aload 2 /* vmVersion */
            ldc "SNAPSHOT"
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ifeq 42
        41: .line 115
            return
        42: .line 117
      StackMap locals:
      StackMap stack:
            aload 2 /* vmVersion */
            ldc "internal"
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ifeq 44
        43: .line 119
            return
        44: .line 121
      StackMap locals:
      StackMap stack:
            aload 2 /* vmVersion */
            ldc "11-ea+"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 53
        45: .line 122
            aload 2 /* vmVersion */
            ldc "11-ea+"
            invokevirtual java.lang.String.length:()I
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 3 /* buildString */
        start local 3 // java.lang.String buildString
        46: .line 124
            aload 3 /* buildString */
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 4 /* build */
        start local 4 // int build
        47: .line 125
            iload 4 /* build */
            bipush 20
            if_icmpge 53
        48: .line 126
            iload 0 /* exitOnFailure */
            ldc "Graal requires build 20 or later of JDK 11 early access binary, got build %d.%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            iload 4 /* build */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        49: .line 127
            return
        end local 4 // int build
        50: .line 129
      StackMap locals: int java.lang.String java.lang.String java.lang.String
      StackMap stack: java.lang.NumberFormatException
            pop
        51: .line 130
            iload 0 /* exitOnFailure */
            ldc "Could not parse the JDK 11 early access build number from java.vm.version property: %s.%n"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 2 /* vmVersion */
            aastore
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        52: .line 131
            return
        end local 3 // java.lang.String buildString
        53: .line 137
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.lang.String vmVersion
        end local 1 // java.lang.String javaSpecVersion
        end local 0 // boolean exitOnFailure
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   54     0    exitOnFailure  Z
            1   54     1  javaSpecVersion  Ljava/lang/String;
            2   54     2        vmVersion  Ljava/lang/String;
            4   36     3            start  I
            7   33     4              end  I
            9   10     5            major  I
           15   33     5            major  I
           21   22     6            minor  I
           27   33     6            minor  I
           46   53     3      buildString  Ljava/lang/String;
           47   50     4            build  I
      Exception table:
        from    to  target  type
           8     9      10  Class java.lang.NumberFormatException
          20    21      22  Class java.lang.NumberFormatException
          46    49      50  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 143
            iconst_1
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.check:(Z)V
         1: .line 144
            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"