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

  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 37
            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 43
            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 44
            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 45
            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 46
            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 47
            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 48
            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 49
            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 50
            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 51
            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 52
            goto 11
        10: .line 53
      StackMap locals: java.util.Formatter java.lang.String java.lang.String
      StackMap stack:
            aload 3 /* errorMessage */
            ldc "Download the latest JDK 9 build 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 55
      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 56
            ldc "warn"
            aload 6 /* value */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 15
        13: .line 57
            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 58
            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 59
            return
        17: .line 60
      StackMap locals:
      StackMap stack:
            iload 0 /* exit */
            ifeq 21
        18: .line 61
            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 62
            iconst_m1
            invokestatic java.lang.System.exit:(I)V
        20: .line 63
            goto 22
        21: .line 64
      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 66
      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 70
            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 71
            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 72
            aload 1 /* vmVersion */
            ldc "-jvmci-"
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 2 /* start */
        start local 2 // int start
         3: .line 73
            iload 2 /* start */
            iflt 32
         4: .line 74
            iload 2 /* start */
            ldc "-jvmci-"
            invokevirtual java.lang.String.length:()I
            iadd
            istore 2 /* start */
         5: .line 75
            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 76
            iload 3 /* end */
            ifle 32
         7: .line 79
            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 80
            goto 14
        end local 4 // int major
      StackMap locals: int java.lang.String int int
      StackMap stack: java.lang.NumberFormatException
         9: pop
        10: .line 81
            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 82
            aload 1 /* vmVersion */
            aastore
        12: .line 81
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        13: .line 83
            return
        start local 4 // int major
        14: .line 85
      StackMap locals: int
      StackMap stack:
            iload 3 /* end */
            iconst_1
            iadd
            istore 2 /* start */
        15: .line 86
            iload 2 /* start */
            istore 3 /* end */
        16: .line 87
            goto 18
        17: .line 88
      StackMap locals:
      StackMap stack:
            iinc 3 /* end */ 1
        18: .line 87
      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 92
      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 93
            goto 26
        end local 5 // int minor
      StackMap locals:
      StackMap stack: java.lang.NumberFormatException
        21: pop
        22: .line 94
            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 95
            aload 1 /* vmVersion */
            aastore
        24: .line 94
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        25: .line 96
            return
        start local 5 // int minor
        26: .line 98
      StackMap locals: int
      StackMap stack:
            iload 4 /* major */
            iflt 28
            iload 5 /* minor */
            bipush 29
            if_icmplt 28
        27: .line 99
            return
        28: .line 101
      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 102
            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 29
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        30: .line 101
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        31: .line 103
            return
        end local 5 // int minor
        end local 4 // int major
        end local 3 // int end
        32: .line 106
      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 107
            aload 1 /* vmVersion */
            aastore
        34: .line 106
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        end local 2 // int start
        35: .line 108
            goto 43
        36: .line 109
      StackMap locals:
      StackMap stack:
            aload 1 /* vmVersion */
            ldc "SNAPSHOT"
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ifeq 38
        37: .line 111
            return
        38: .line 113
      StackMap locals:
      StackMap stack:
            aload 1 /* vmVersion */
            ldc "internal"
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ifeq 40
        39: .line 115
            return
        40: .line 117
      StackMap locals:
      StackMap stack:
            aload 1 /* vmVersion */
            ldc "9-ea"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 43
        41: .line 118
            iload 0 /* exitOnFailure */
            ldc "This version of Graal is not compatible with JDK 9 Early Access builds.%n"
            iconst_0
            anewarray java.lang.Object
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.failVersionCheck:(ZLjava/lang/String;[Ljava/lang/Object;)V
        42: .line 119
            return
        43: .line 124
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String vmVersion
        end local 0 // boolean exitOnFailure
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   44     0  exitOnFailure  Z
            1   44     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
      Exception table:
        from    to  target  type
           7     8       9  Class java.lang.NumberFormatException
          19    20      21  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 130
            iconst_1
            invokestatic org.graalvm.compiler.hotspot.JVMCIVersionCheck.check:(Z)V
         1: .line 131
            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"