public class org.graalvm.compiler.core.test.LoopUnswitchTest extends org.graalvm.compiler.core.test.GraalCompilerTest
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.graalvm.compiler.core.test.LoopUnswitchTest
  super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.LoopUnswitchTest this
         0: .line 35
            aload 0 /* this */
            invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
            return
        end local 0 // org.graalvm.compiler.core.test.LoopUnswitchTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/LoopUnswitchTest;

  public static int referenceSnippet1(int);
    descriptor: (I)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // int a
         0: .line 38
            iconst_0
            istore 1 /* sum */
        start local 1 // int sum
         1: .line 39
            iload 0 /* a */
            iconst_2
            if_icmple 8
         2: .line 40
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         3: goto 6
         4: .line 41
      StackMap locals: int int
      StackMap stack:
            iinc 1 /* sum */ 2
         5: .line 40
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
         6: iload 2 /* i */
            sipush 1000
            if_icmplt 4
        end local 2 // int i
         7: .line 43
            goto 13
         8: .line 44
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         9: goto 12
        10: .line 45
      StackMap locals: int
      StackMap stack:
            iload 1 /* sum */
            iload 0 /* a */
            iadd
            istore 1 /* sum */
        11: .line 44
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
        12: iload 2 /* i */
            sipush 1000
            if_icmplt 10
        end local 2 // int i
        13: .line 48
      StackMap locals:
      StackMap stack:
            iload 1 /* sum */
            ireturn
        end local 1 // int sum
        end local 0 // int a
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   14     0     a  I
            1   14     1   sum  I
            3    7     2     i  I
            9   13     2     i  I
    MethodParameters:
      Name  Flags
      a     

  public static int test1Snippet(int);
    descriptor: (I)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // int a
         0: .line 52
            iconst_0
            istore 1 /* sum */
        start local 1 // int sum
         1: .line 53
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         2: goto 8
         3: .line 54
      StackMap locals: int int
      StackMap stack:
            iload 0 /* a */
            iconst_2
            if_icmple 6
         4: .line 55
            iinc 1 /* sum */ 2
         5: .line 56
            goto 7
         6: .line 57
      StackMap locals:
      StackMap stack:
            iload 1 /* sum */
            iload 0 /* a */
            iadd
            istore 1 /* sum */
         7: .line 53
      StackMap locals:
      StackMap stack:
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
         8: iload 2 /* i */
            sipush 1000
            if_icmplt 3
        end local 2 // int i
         9: .line 60
            iload 1 /* sum */
            ireturn
        end local 1 // int sum
        end local 0 // int a
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0     a  I
            1   10     1   sum  I
            2    9     2     i  I
    MethodParameters:
      Name  Flags
      a     

  public static int referenceSnippet2(int);
    descriptor: (I)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // int a
         0: .line 64
            iconst_0
            istore 1 /* sum */
        start local 1 // int sum
         1: .line 65
            iload 0 /* a */
            lookupswitch { // 3
                    0: 2
                    1: 8
                   55: 15
              default: 21
          }
         2: .line 67
      StackMap locals: int
      StackMap stack:
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         3: goto 6
         4: .line 68
      StackMap locals: int
      StackMap stack:
            iload 1 /* sum */
            i2l
            invokestatic java.lang.System.currentTimeMillis:()J
            ladd
            l2i
            istore 1 /* sum */
         5: .line 67
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
         6: iload 2 /* i */
            sipush 1000
            if_icmplt 4
        end local 2 // int i
         7: .line 70
            goto 25
         8: .line 72
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         9: goto 13
        10: .line 73
      StackMap locals: int
      StackMap stack:
            iinc 1 /* sum */ 1
        11: .line 74
            iinc 1 /* sum */ 5
        12: .line 72
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
        13: iload 2 /* i */
            sipush 1000
            if_icmplt 10
        end local 2 // int i
        14: .line 76
            goto 25
        15: .line 78
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 2 /* i */
        start local 2 // int i
        16: goto 19
        17: .line 79
      StackMap locals: int
      StackMap stack:
            iinc 1 /* sum */ 5
        18: .line 78
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
        19: iload 2 /* i */
            sipush 1000
            if_icmplt 17
        end local 2 // int i
        20: .line 81
            goto 25
        21: .line 83
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 2 /* i */
        start local 2 // int i
        22: goto 24
      StackMap locals: int
      StackMap stack:
        23: iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
        24: iload 2 /* i */
            sipush 1000
            if_icmplt 23
        end local 2 // int i
        25: .line 88
      StackMap locals:
      StackMap stack:
            iload 1 /* sum */
            ireturn
        end local 1 // int sum
        end local 0 // int a
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   26     0     a  I
            1   26     1   sum  I
            3    7     2     i  I
            9   14     2     i  I
           16   20     2     i  I
           22   25     2     i  I
    MethodParameters:
      Name  Flags
      a     

  public static int test2Snippet(int);
    descriptor: (I)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // int a
         0: .line 93
            iconst_0
            istore 1 /* sum */
        start local 1 // int sum
         1: .line 94
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         2: goto 10
         3: .line 95
      StackMap locals: int int
      StackMap stack:
            iload 0 /* a */
            lookupswitch { // 3
                    0: 4
                    1: 6
                   55: 7
              default: 9
          }
         4: .line 97
      StackMap locals:
      StackMap stack:
            iload 1 /* sum */
            i2l
            invokestatic java.lang.System.currentTimeMillis:()J
            ladd
            l2i
            istore 1 /* sum */
         5: .line 98
            goto 9
         6: .line 100
      StackMap locals:
      StackMap stack:
            iinc 1 /* sum */ 1
         7: .line 103
      StackMap locals:
      StackMap stack:
            iinc 1 /* sum */ 5
         8: .line 104
            goto 9
         9: .line 94
      StackMap locals:
      StackMap stack:
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
        10: iload 2 /* i */
            sipush 1000
            if_icmplt 3
        end local 2 // int i
        11: .line 110
            iload 1 /* sum */
            ireturn
        end local 1 // int sum
        end local 0 // int a
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   12     0     a  I
            1   12     1   sum  I
            2   11     2     i  I
    MethodParameters:
      Name  Flags
      a     

  public void test1();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.LoopUnswitchTest this
         0: .line 113
            new java.lang.Error
            dup
            ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
            invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // org.graalvm.compiler.core.test.LoopUnswitchTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/LoopUnswitchTest;
    RuntimeInvisibleAnnotations: 
      Test()

  public void test2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.LoopUnswitchTest this
         0: .line 118
            new java.lang.Error
            dup
            ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
            invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // org.graalvm.compiler.core.test.LoopUnswitchTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/LoopUnswitchTest;
    RuntimeInvisibleAnnotations: 
      Test()

  private void test(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=7, locals=9, args_size=3
        start local 0 // org.graalvm.compiler.core.test.LoopUnswitchTest this
        start local 1 // java.lang.String snippet
        start local 2 // java.lang.String referenceSnippet
         0: .line 125
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.core.test.LoopUnswitchTest.getDebugContext:()Lorg/graalvm/compiler/debug/DebugContext;
            astore 3 /* debug */
        start local 3 // org.graalvm.compiler.debug.DebugContext debug
         1: .line 126
            aload 0 /* this */
            aload 1 /* snippet */
            getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.NO:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
            invokevirtual org.graalvm.compiler.core.test.LoopUnswitchTest.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
            astore 4 /* graph */
        start local 4 // org.graalvm.compiler.nodes.StructuredGraph graph
         2: .line 127
            aload 0 /* this */
            aload 2 /* referenceSnippet */
            getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.NO:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
            invokevirtual org.graalvm.compiler.core.test.LoopUnswitchTest.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
            astore 5 /* referenceGraph */
        start local 5 // org.graalvm.compiler.nodes.StructuredGraph referenceGraph
         3: .line 129
            new org.graalvm.compiler.loop.phases.LoopUnswitchingPhase
            dup
            new org.graalvm.compiler.loop.DefaultLoopPolicies
            dup
            invokespecial org.graalvm.compiler.loop.DefaultLoopPolicies.<init>:()V
            invokespecial org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.<init>:(Lorg/graalvm/compiler/loop/LoopPolicies;)V
            aload 4 /* graph */
            invokevirtual org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
         4: .line 132
            aload 4 /* graph */
            invokevirtual org.graalvm.compiler.nodes.StructuredGraph.clearAllStateAfter:()V
         5: .line 133
            aload 5 /* referenceGraph */
            invokevirtual org.graalvm.compiler.nodes.StructuredGraph.clearAllStateAfter:()V
         6: .line 135
            new org.graalvm.compiler.phases.common.CanonicalizerPhase
            dup
            invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
            aload 4 /* graph */
            new org.graalvm.compiler.phases.tiers.PhaseContext
            dup
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.core.test.LoopUnswitchTest.getProviders:()Lorg/graalvm/compiler/phases/util/Providers;
            invokespecial org.graalvm.compiler.phases.tiers.PhaseContext.<init>:(Lorg/graalvm/compiler/phases/util/Providers;)V
            invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
         7: .line 136
            new org.graalvm.compiler.phases.common.CanonicalizerPhase
            dup
            invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
            aload 5 /* referenceGraph */
            new org.graalvm.compiler.phases.tiers.PhaseContext
            dup
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.core.test.LoopUnswitchTest.getProviders:()Lorg/graalvm/compiler/phases/util/Providers;
            invokespecial org.graalvm.compiler.phases.tiers.PhaseContext.<init>:(Lorg/graalvm/compiler/phases/util/Providers;)V
            invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
         8: .line 137
            aconst_null
            astore 6
            aconst_null
            astore 7
         9: aload 3 /* debug */
            ldc "Test"
            new org.graalvm.compiler.debug.DebugDumpScope
            dup
            new java.lang.StringBuilder
            dup
            ldc "Test:"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* snippet */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial org.graalvm.compiler.debug.DebugDumpScope.<init>:(Ljava/lang/String;)V
            invokevirtual org.graalvm.compiler.debug.DebugContext.scope:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/graalvm/compiler/debug/DebugContext$Scope;
            astore 8 /* s */
        start local 8 // org.graalvm.compiler.debug.DebugContext$Scope s
        10: .line 138
            aload 0 /* this */
            aload 5 /* referenceGraph */
            aload 4 /* graph */
            invokevirtual org.graalvm.compiler.core.test.LoopUnswitchTest.assertEquals:(Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/StructuredGraph;)V
        11: .line 139
            aload 8 /* s */
            ifnull 19
            aload 8 /* s */
            invokeinterface org.graalvm.compiler.debug.DebugContext$Scope.close:()V
            goto 19
      StackMap locals: org.graalvm.compiler.core.test.LoopUnswitchTest java.lang.String java.lang.String org.graalvm.compiler.debug.DebugContext org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.StructuredGraph java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.DebugContext$Scope
      StackMap stack: java.lang.Throwable
        12: astore 6
            aload 8 /* s */
            ifnull 13
            aload 8 /* s */
            invokeinterface org.graalvm.compiler.debug.DebugContext$Scope.close:()V
        end local 8 // org.graalvm.compiler.debug.DebugContext$Scope s
      StackMap locals:
      StackMap stack:
        13: aload 6
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        14: astore 7
            aload 6
            ifnonnull 15
            aload 7
            astore 6
            goto 16
      StackMap locals:
      StackMap stack:
        15: aload 6
            aload 7
            if_acmpeq 16
            aload 6
            aload 7
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        16: aload 6
            athrow
      StackMap locals: org.graalvm.compiler.core.test.LoopUnswitchTest java.lang.String java.lang.String org.graalvm.compiler.debug.DebugContext org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.StructuredGraph
      StackMap stack: java.lang.Throwable
        17: astore 6 /* e */
        start local 6 // java.lang.Throwable e
        18: .line 140
            aload 3 /* debug */
            aload 6 /* e */
            invokevirtual org.graalvm.compiler.debug.DebugContext.handle:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
            athrow
        end local 6 // java.lang.Throwable e
        19: .line 142
      StackMap locals:
      StackMap stack:
            return
        end local 5 // org.graalvm.compiler.nodes.StructuredGraph referenceGraph
        end local 4 // org.graalvm.compiler.nodes.StructuredGraph graph
        end local 3 // org.graalvm.compiler.debug.DebugContext debug
        end local 2 // java.lang.String referenceSnippet
        end local 1 // java.lang.String snippet
        end local 0 // org.graalvm.compiler.core.test.LoopUnswitchTest this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   20     0              this  Lorg/graalvm/compiler/core/test/LoopUnswitchTest;
            0   20     1           snippet  Ljava/lang/String;
            0   20     2  referenceSnippet  Ljava/lang/String;
            1   20     3             debug  Lorg/graalvm/compiler/debug/DebugContext;
            2   20     4             graph  Lorg/graalvm/compiler/nodes/StructuredGraph;
            3   20     5    referenceGraph  Lorg/graalvm/compiler/nodes/StructuredGraph;
           10   13     8                 s  Lorg/graalvm/compiler/debug/DebugContext$Scope;
           18   19     6                 e  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
          10    11      12  any
           9    14      14  any
           8    17      17  Class java.lang.Throwable
    MethodParameters:
                  Name  Flags
      snippet           
      referenceSnippet  
}
SourceFile: "LoopUnswitchTest.java"
InnerClasses:
  public abstract Scope = org.graalvm.compiler.debug.DebugContext$Scope of org.graalvm.compiler.debug.DebugContext
  public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph