public class com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest extends com.oracle.truffle.llvm.tests.interop.InteropTestBase
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest
  super_class: com.oracle.truffle.llvm.tests.interop.InteropTestBase
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest this
         0: .line 40
            aload 0 /* this */
            invokespecial com.oracle.truffle.llvm.tests.interop.InteropTestBase.<init>:()V
            return
        end local 0 // com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/llvm/tests/interop/SulongBuiltinsTest;

  private static org.graalvm.polyglot.Value getFunction(java.lang.String);
    descriptor: (Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // java.lang.String name
         0: .line 42
            getstatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.runWithPolyglot:Lcom/oracle/truffle/tck/TruffleRunner$RunWithPolyglotRule;
            invokevirtual com.oracle.truffle.tck.TruffleRunner$RunWithPolyglotRule.getPolyglotContext:()Lorg/graalvm/polyglot/Context;
            ldc "llvm"
            invokevirtual org.graalvm.polyglot.Context.getBindings:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
            aload 0 /* name */
            invokevirtual org.graalvm.polyglot.Value.getMember:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
            astore 1 /* func */
        start local 1 // org.graalvm.polyglot.Value func
         1: .line 43
            new java.lang.StringBuilder
            dup
            aload 0 /* name */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc " was not found"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 1 /* func */
            invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
         2: .line 44
            new java.lang.StringBuilder
            dup
            aload 0 /* name */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc " was found but canExecute() returned false"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 1 /* func */
            invokevirtual org.graalvm.polyglot.Value.canExecute:()Z
            invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
         3: .line 45
            aload 1 /* func */
            areturn
        end local 1 // org.graalvm.polyglot.Value func
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  name  Ljava/lang/String;
            1    4     1  func  Lorg/graalvm/polyglot/Value;
    MethodParameters:
      Name  Flags
      name  

  public void testPolyglotFitsInI32();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=6, args_size=1
        start local 0 // com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest this
         0: .line 50
            ldc "polyglot_fits_in_i32"
            astore 1 /* name */
        start local 1 // java.lang.String name
         1: .line 51
            aload 1 /* name */
            invokestatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.getFunction:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
            astore 2 /* func */
        start local 2 // org.graalvm.polyglot.Value func
         2: .line 52
            new java.lang.StringBuilder
            dup
            ldc "Incorrect implementation of "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* name */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 3 /* msg */
        start local 3 // java.lang.String msg
         3: .line 54
            aload 3 /* msg */
            aload 2 /* func */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            ldc 2147483647
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
            invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
         4: .line 55
            ldc 2147483648
            lstore 4 /* v */
        start local 4 // long v
         5: .line 56
            aload 3 /* msg */
            aload 2 /* func */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            lload 4 /* v */
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
            invokestatic org.junit.Assert.assertFalse:(Ljava/lang/String;Z)V
         6: .line 57
            return
        end local 4 // long v
        end local 3 // java.lang.String msg
        end local 2 // org.graalvm.polyglot.Value func
        end local 1 // java.lang.String name
        end local 0 // com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/oracle/truffle/llvm/tests/interop/SulongBuiltinsTest;
            1    7     1  name  Ljava/lang/String;
            2    7     2  func  Lorg/graalvm/polyglot/Value;
            3    7     3   msg  Ljava/lang/String;
            5    7     4     v  J
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testPolyglotGetArraySize();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=5, args_size=1
        start local 0 // com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest this
         0: .line 61
            ldc "polyglot_get_array_size"
            astore 1 /* name */
        start local 1 // java.lang.String name
         1: .line 62
            aload 1 /* name */
            invokestatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.getFunction:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
            astore 2 /* func */
        start local 2 // org.graalvm.polyglot.Value func
         2: .line 63
            new java.lang.StringBuilder
            dup
            ldc "Incorrect implementation of "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* name */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 3 /* msg */
        start local 3 // java.lang.String msg
         3: .line 65
            iconst_3
            newarray 10
            dup
            iconst_0
            iconst_1
            iastore
            dup
            iconst_1
            iconst_2
            iastore
            dup
            iconst_2
            iconst_3
            iastore
            astore 4 /* v */
        start local 4 // int[] v
         4: .line 66
            aload 3 /* msg */
            aload 2 /* func */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* v */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            invokevirtual org.graalvm.polyglot.Value.asLong:()J
            ldc 3
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;JJ)V
         5: .line 67
            return
        end local 4 // int[] v
        end local 3 // java.lang.String msg
        end local 2 // org.graalvm.polyglot.Value func
        end local 1 // java.lang.String name
        end local 0 // com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lcom/oracle/truffle/llvm/tests/interop/SulongBuiltinsTest;
            1    6     1  name  Ljava/lang/String;
            2    6     2  func  Lorg/graalvm/polyglot/Value;
            3    6     3   msg  Ljava/lang/String;
            4    6     4     v  [I
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testTruffleHandle();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=10, args_size=1
        start local 0 // com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest this
         0: .line 71
            ldc "truffle_handle_for_managed"
            astore 1 /* nameHandle */
        start local 1 // java.lang.String nameHandle
         1: .line 72
            aload 1 /* nameHandle */
            invokestatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.getFunction:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
            astore 2 /* funcHandle */
        start local 2 // org.graalvm.polyglot.Value funcHandle
         2: .line 73
            new java.lang.StringBuilder
            dup
            ldc "Incorrect implementation of "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* nameHandle */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 3 /* msgHandle */
        start local 3 // java.lang.String msgHandle
         3: .line 75
            ldc "truffle_managed_from_handle"
            astore 4 /* nameManaged */
        start local 4 // java.lang.String nameManaged
         4: .line 76
            aload 4 /* nameManaged */
            invokestatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.getFunction:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
            astore 5 /* funcManaged */
        start local 5 // org.graalvm.polyglot.Value funcManaged
         5: .line 77
            new java.lang.StringBuilder
            dup
            ldc "Incorrect implementation of "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 4 /* nameManaged */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 6 /* msgManaged */
        start local 6 // java.lang.String msgManaged
         6: .line 79
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            astore 7 /* v */
        start local 7 // java.lang.Object v
         7: .line 80
            aload 2 /* funcHandle */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 7 /* v */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 8 /* handle */
        start local 8 // org.graalvm.polyglot.Value handle
         8: .line 81
            aload 3 /* msgHandle */
            aload 8 /* handle */
            invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
         9: .line 82
            aload 5 /* funcManaged */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 8 /* handle */
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            astore 9 /* v2 */
        start local 9 // org.graalvm.polyglot.Value v2
        10: .line 83
            aload 6 /* msgManaged */
            aload 7 /* v */
            aload 9 /* v2 */
            invokevirtual org.graalvm.polyglot.Value.asHostObject:()Ljava/lang/Object;
            invokestatic org.junit.Assert.assertSame:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
        11: .line 84
            return
        end local 9 // org.graalvm.polyglot.Value v2
        end local 8 // org.graalvm.polyglot.Value handle
        end local 7 // java.lang.Object v
        end local 6 // java.lang.String msgManaged
        end local 5 // org.graalvm.polyglot.Value funcManaged
        end local 4 // java.lang.String nameManaged
        end local 3 // java.lang.String msgHandle
        end local 2 // org.graalvm.polyglot.Value funcHandle
        end local 1 // java.lang.String nameHandle
        end local 0 // com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   12     0         this  Lcom/oracle/truffle/llvm/tests/interop/SulongBuiltinsTest;
            1   12     1   nameHandle  Ljava/lang/String;
            2   12     2   funcHandle  Lorg/graalvm/polyglot/Value;
            3   12     3    msgHandle  Ljava/lang/String;
            4   12     4  nameManaged  Ljava/lang/String;
            5   12     5  funcManaged  Lorg/graalvm/polyglot/Value;
            6   12     6   msgManaged  Ljava/lang/String;
            7   12     7            v  Ljava/lang/Object;
            8   12     8       handle  Lorg/graalvm/polyglot/Value;
           10   12     9           v2  Lorg/graalvm/polyglot/Value;
    RuntimeVisibleAnnotations: 
      org.junit.Test()
}
SourceFile: "SulongBuiltinsTest.java"
InnerClasses:
  public final RunWithPolyglotRule = com.oracle.truffle.tck.TruffleRunner$RunWithPolyglotRule of com.oracle.truffle.tck.TruffleRunner
    RuntimeVisibleAnnotations: 
      org.junit.runner.RunWith(value = Lcom/oracle/truffle/tck/TruffleRunner;)