public class org.graalvm.compiler.core.test.SwitchCanonicalizerTest 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.SwitchCanonicalizerTest
  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.SwitchCanonicalizerTest this
         0: .line 32
            aload 0 /* this */
            invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
            return
        end local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;

  public int divByPowerOf2(int);
    descriptor: (I)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
        start local 1 // int n
         0: .line 35
            iload 1 /* n */
            bipush 8
            idiv
            tableswitch { // 268435456 - 268435456
            268435456: 1
              default: 2
          }
         1: .line 37
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.hashCode:()I
            ireturn
         2: .line 39
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 1 // int n
        end local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
            0    3     1     n  I
    MethodParameters:
      Name  Flags
      n     

  public void testDivByPowerOf2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
         0: .line 43
            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.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
    RuntimeInvisibleAnnotations: 
      Test()

  public int divByNonPowerOf2(int);
    descriptor: (I)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
        start local 1 // int n
         0: .line 49
            iload 1 /* n */
            bipush 7
            idiv
            tableswitch { // 306783379 - 306783379
            306783379: 1
              default: 2
          }
         1: .line 51
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.hashCode:()I
            ireturn
         2: .line 53
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 1 // int n
        end local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
            0    3     1     n  I
    MethodParameters:
      Name  Flags
      n     

  public void testDivByNonPowerOf2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
         0: .line 57
            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.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
    RuntimeInvisibleAnnotations: 
      Test()

  public int remByPowerOf2(int);
    descriptor: (I)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
        start local 1 // int n
         0: .line 63
            iload 1 /* n */
            bipush 8
            irem
            tableswitch { // 9 - 9
                    9: 1
              default: 2
          }
         1: .line 65
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.hashCode:()I
            ireturn
         2: .line 67
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 1 // int n
        end local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
            0    3     1     n  I
    MethodParameters:
      Name  Flags
      n     

  public void testRemByPowerOf2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
         0: .line 71
            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.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
    RuntimeInvisibleAnnotations: 
      Test()

  public int remByPowerOf2PositiveX(int);
    descriptor: (I)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
        start local 1 // int n
         0: .line 77
            iload 1 /* n */
            ifle 1
            bipush 8
            goto 2
      StackMap locals:
      StackMap stack:
         1: bipush 9
      StackMap locals:
      StackMap stack: int
         2: istore 2 /* n0 */
        start local 2 // int n0
         3: .line 78
            iload 2 /* n0 */
            bipush 8
            irem
            tableswitch { // 9 - 9
                    9: 4
              default: 5
          }
         4: .line 80
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.hashCode:()I
            ireturn
         5: .line 82
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 2 // int n0
        end local 1 // int n
        end local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
            0    6     1     n  I
            3    6     2    n0  I
    MethodParameters:
      Name  Flags
      n     

  public void testRemByPowerOf2PositiveX();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
         0: .line 86
            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.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
    RuntimeInvisibleAnnotations: 
      Test()

  public int remByPowerOf2NegativeX(int);
    descriptor: (I)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
        start local 1 // int n
         0: .line 92
            iload 1 /* n */
            ifle 1
            bipush -8
            goto 2
      StackMap locals:
      StackMap stack:
         1: bipush -9
      StackMap locals:
      StackMap stack: int
         2: istore 2 /* n0 */
        start local 2 // int n0
         3: .line 93
            iload 2 /* n0 */
            bipush 8
            irem
            tableswitch { // 9 - 9
                    9: 4
              default: 5
          }
         4: .line 95
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.hashCode:()I
            ireturn
         5: .line 97
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 2 // int n0
        end local 1 // int n
        end local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
            0    6     1     n  I
            3    6     2    n0  I
    MethodParameters:
      Name  Flags
      n     

  public void testRemByPowerOf2NegativeX();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
         0: .line 101
            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.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
    RuntimeInvisibleAnnotations: 
      Test()

  public int remByNonPowerOf2(int);
    descriptor: (I)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
        start local 1 // int n
         0: .line 107
            iload 1 /* n */
            bipush 7
            irem
            tableswitch { // 9 - 9
                    9: 1
              default: 2
          }
         1: .line 109
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.hashCode:()I
            ireturn
         2: .line 111
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 1 // int n
        end local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
            0    3     1     n  I
    MethodParameters:
      Name  Flags
      n     

  public void testRemByNonPowerOf2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
         0: .line 115
            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.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
    RuntimeInvisibleAnnotations: 
      Test()

  private void shouldFoldSwitch(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
        start local 1 // java.lang.String methodName
         0: .line 121
            aload 0 /* this */
            aload 0 /* this */
            aload 1 /* methodName */
            invokevirtual org.graalvm.compiler.core.test.SwitchCanonicalizerTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
            invokevirtual org.graalvm.compiler.core.test.SwitchCanonicalizerTest.parseForCompile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/nodes/StructuredGraph;
            astore 2 /* graph */
        start local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
         1: .line 122
            new org.graalvm.compiler.phases.common.CanonicalizerPhase
            dup
            invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
            aload 2 /* graph */
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.core.test.SwitchCanonicalizerTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
            invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
         2: .line 123
            aload 2 /* graph */
            getstatic org.graalvm.compiler.nodes.extended.IntegerSwitchNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
            invokevirtual org.graalvm.compiler.nodes.StructuredGraph.hasNode:(Lorg/graalvm/compiler/graph/NodeClass;)Z
            invokestatic org.graalvm.compiler.core.test.SwitchCanonicalizerTest.assertFalse:(Z)V
         3: .line 124
            return
        end local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
        end local 1 // java.lang.String methodName
        end local 0 // org.graalvm.compiler.core.test.SwitchCanonicalizerTest this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0        this  Lorg/graalvm/compiler/core/test/SwitchCanonicalizerTest;
            0    4     1  methodName  Ljava/lang/String;
            1    4     2       graph  Lorg/graalvm/compiler/nodes/StructuredGraph;
    MethodParameters:
            Name  Flags
      methodName  
}
SourceFile: "SwitchCanonicalizerTest.java"