public class com.oracle.graal.python.benchmarks.interop.PyEuler31 extends com.oracle.graal.python.benchmarks.interop.BenchRunner
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.graal.python.benchmarks.interop.PyEuler31
  super_class: com.oracle.graal.python.benchmarks.interop.BenchRunner
{
  public int arg1;
    descriptor: I
    flags: (0x0001) ACC_PUBLIC
    RuntimeVisibleAnnotations: 
      org.openjdk.jmh.annotations.Param(value = {"100"})

  private org.graalvm.polyglot.Value newpat;
    descriptor: Lorg/graalvm/polyglot/Value;
    flags: (0x0002) ACC_PRIVATE

  private org.graalvm.polyglot.Value EMPTY;
    descriptor: Lorg/graalvm/polyglot/Value;
    flags: (0x0002) ACC_PRIVATE

  private org.graalvm.polyglot.Value COINS;
    descriptor: Lorg/graalvm/polyglot/Value;
    flags: (0x0002) ACC_PRIVATE

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
         0: .line 49
            aload 0 /* this */
            invokespecial com.oracle.graal.python.benchmarks.interop.BenchRunner.<init>:()V
            return
        end local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/graal/python/benchmarks/interop/PyEuler31;

  public void setup();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
         0: .line 59
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "### setup ..."
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         1: .line 60
            aload 0 /* this */
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.context:Lorg/graalvm/polyglot/Context;
            ldc "python"
         2: .line 61
            ldc "def newpat(t, end, p):  return t[:end] + (p,)\nnewpat"
         3: .line 60
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            putfield com.oracle.graal.python.benchmarks.interop.PyEuler31.newpat:Lorg/graalvm/polyglot/Value;
         4: .line 64
            aload 0 /* this */
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.context:Lorg/graalvm/polyglot/Context;
            ldc "python"
            ldc "[1, 2, 5, 10, 20, 50, 100, 200]"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            putfield com.oracle.graal.python.benchmarks.interop.PyEuler31.COINS:Lorg/graalvm/polyglot/Value;
         5: .line 65
            aload 0 /* this */
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.context:Lorg/graalvm/polyglot/Context;
            ldc "python"
            ldc "()"
            invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
            putfield com.oracle.graal.python.benchmarks.interop.PyEuler31.EMPTY:Lorg/graalvm/polyglot/Value;
         6: .line 66
            return
        end local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/oracle/graal/python/benchmarks/interop/PyEuler31;
    RuntimeVisibleAnnotations: 
      org.openjdk.jmh.annotations.Setup()

  public void euler31(org.openjdk.jmh.infra.Blackhole);
    descriptor: (Lorg/openjdk/jmh/infra/Blackhole;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
        start local 1 // org.openjdk.jmh.infra.Blackhole bh
         0: .line 70
            aload 0 /* this */
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.EMPTY:Lorg/graalvm/polyglot/Value;
            iconst_0
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.arg1:I
            invokevirtual com.oracle.graal.python.benchmarks.interop.PyEuler31.gen:(Lorg/graalvm/polyglot/Value;II)I
            istore 2 /* result */
        start local 2 // int result
         1: .line 71
            aload 1 /* bh */
            iload 2 /* result */
            invokevirtual org.openjdk.jmh.infra.Blackhole.consume:(I)V
         2: .line 72
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "total number of different ways: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 2 /* result */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         3: .line 73
            return
        end local 2 // int result
        end local 1 // org.openjdk.jmh.infra.Blackhole bh
        end local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lcom/oracle/graal/python/benchmarks/interop/PyEuler31;
            0    4     1      bh  Lorg/openjdk/jmh/infra/Blackhole;
            1    4     2  result  I
    RuntimeVisibleAnnotations: 
      org.openjdk.jmh.annotations.Benchmark()
    MethodParameters:
      Name  Flags
      bh    

  private int gen(org.graalvm.polyglot.Value, int, int);
    descriptor: (Lorg/graalvm/polyglot/Value;II)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=6, locals=9, args_size=4
        start local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
        start local 1 // org.graalvm.polyglot.Value pattern
        start local 2 // int coinnum
        start local 3 // int num
         0: .line 76
            iconst_0
            istore 4 /* count */
        start local 4 // int count
         1: .line 77
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.COINS:Lorg/graalvm/polyglot/Value;
            iload 2 /* coinnum */
            invokestatic com.oracle.graal.python.benchmarks.interop.PyEuler31.geti:(Lorg/graalvm/polyglot/Value;I)I
            istore 5 /* coin */
        start local 5 // int coin
         2: .line 78
            iconst_0
            istore 6 /* p */
        start local 6 // int p
         3: goto 14
         4: .line 79
      StackMap locals: int int int
      StackMap stack:
            aload 0 /* this */
            aload 1 /* pattern */
            iload 2 /* coinnum */
            iload 6 /* p */
            invokevirtual com.oracle.graal.python.benchmarks.interop.PyEuler31.newpat:(Lorg/graalvm/polyglot/Value;II)Lorg/graalvm/polyglot/Value;
            astore 7 /* newpattern */
        start local 7 // org.graalvm.polyglot.Value newpattern
         5: .line 80
            aload 0 /* this */
            aload 7 /* newpattern */
            invokevirtual com.oracle.graal.python.benchmarks.interop.PyEuler31.balance:(Lorg/graalvm/polyglot/Value;)I
            istore 8 /* bal */
        start local 8 // int bal
         6: .line 81
            iload 8 /* bal */
            iload 3 /* num */
            if_icmple 8
         7: .line 82
            iload 4 /* count */
            ireturn
         8: .line 83
      StackMap locals: org.graalvm.polyglot.Value int
      StackMap stack:
            iload 8 /* bal */
            iload 3 /* num */
            if_icmpne 11
         9: .line 84
            iinc 4 /* count */ 1
        10: .line 85
            goto 13
      StackMap locals:
      StackMap stack:
        11: iload 2 /* coinnum */
            i2l
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.COINS:Lorg/graalvm/polyglot/Value;
            invokevirtual org.graalvm.polyglot.Value.getArraySize:()J
            lconst_1
            lsub
            lcmp
            ifge 13
        12: .line 86
            iload 4 /* count */
            aload 0 /* this */
            aload 7 /* newpattern */
            iload 2 /* coinnum */
            iconst_1
            iadd
            iload 3 /* num */
            invokevirtual com.oracle.graal.python.benchmarks.interop.PyEuler31.gen:(Lorg/graalvm/polyglot/Value;II)I
            iadd
            istore 4 /* count */
        end local 8 // int bal
        end local 7 // org.graalvm.polyglot.Value newpattern
        13: .line 78
      StackMap locals:
      StackMap stack:
            iinc 6 /* p */ 1
      StackMap locals:
      StackMap stack:
        14: iload 6 /* p */
            iload 3 /* num */
            iload 5 /* coin */
            idiv
            iconst_1
            iadd
            if_icmplt 4
        end local 6 // int p
        15: .line 89
            iload 4 /* count */
            ireturn
        end local 5 // int coin
        end local 4 // int count
        end local 3 // int num
        end local 2 // int coinnum
        end local 1 // org.graalvm.polyglot.Value pattern
        end local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   16     0        this  Lcom/oracle/graal/python/benchmarks/interop/PyEuler31;
            0   16     1     pattern  Lorg/graalvm/polyglot/Value;
            0   16     2     coinnum  I
            0   16     3         num  I
            1   16     4       count  I
            2   16     5        coin  I
            3   15     6           p  I
            5   13     7  newpattern  Lorg/graalvm/polyglot/Value;
            6   13     8         bal  I
    MethodParameters:
         Name  Flags
      pattern  
      coinnum  
      num      

  private int balance(org.graalvm.polyglot.Value);
    descriptor: (Lorg/graalvm/polyglot/Value;)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=6, args_size=2
        start local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
        start local 1 // org.graalvm.polyglot.Value pattern
         0: .line 93
            aload 1 /* pattern */
            invokevirtual org.graalvm.polyglot.Value.getArraySize:()J
            lstore 2 /* size */
        start local 2 // long size
         1: .line 94
            iconst_0
            istore 4 /* sum */
        start local 4 // int sum
         2: .line 95
            iconst_0
            istore 5 /* i */
        start local 5 // int i
         3: goto 6
         4: .line 96
      StackMap locals: long int int
      StackMap stack:
            iload 4 /* sum */
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.COINS:Lorg/graalvm/polyglot/Value;
            iload 5 /* i */
            invokestatic com.oracle.graal.python.benchmarks.interop.PyEuler31.geti:(Lorg/graalvm/polyglot/Value;I)I
            aload 1 /* pattern */
            iload 5 /* i */
            invokestatic com.oracle.graal.python.benchmarks.interop.PyEuler31.geti:(Lorg/graalvm/polyglot/Value;I)I
            imul
            iadd
            istore 4 /* sum */
         5: .line 95
            iinc 5 /* i */ 1
      StackMap locals:
      StackMap stack:
         6: iload 5 /* i */
            i2l
            lload 2 /* size */
            lcmp
            iflt 4
        end local 5 // int i
         7: .line 98
            iload 4 /* sum */
            ireturn
        end local 4 // int sum
        end local 2 // long size
        end local 1 // org.graalvm.polyglot.Value pattern
        end local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    8     0     this  Lcom/oracle/graal/python/benchmarks/interop/PyEuler31;
            0    8     1  pattern  Lorg/graalvm/polyglot/Value;
            1    8     2     size  J
            2    8     4      sum  I
            3    7     5        i  I
    MethodParameters:
         Name  Flags
      pattern  

  private org.graalvm.polyglot.Value newpat(org.graalvm.polyglot.Value, int, int);
    descriptor: (Lorg/graalvm/polyglot/Value;II)Lorg/graalvm/polyglot/Value;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=6, locals=4, args_size=4
        start local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
        start local 1 // org.graalvm.polyglot.Value t
        start local 2 // int end
        start local 3 // int p
         0: .line 102
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.newpat:Lorg/graalvm/polyglot/Value;
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* t */
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.context:Lorg/graalvm/polyglot/Context;
            iload 2 /* end */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokevirtual org.graalvm.polyglot.Context.asValue:(Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            aastore
            dup
            iconst_2
            aload 0 /* this */
            getfield com.oracle.graal.python.benchmarks.interop.PyEuler31.context:Lorg/graalvm/polyglot/Context;
            iload 3 /* p */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokevirtual org.graalvm.polyglot.Context.asValue:(Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            aastore
            invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
            areturn
        end local 3 // int p
        end local 2 // int end
        end local 1 // org.graalvm.polyglot.Value t
        end local 0 // com.oracle.graal.python.benchmarks.interop.PyEuler31 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/graal/python/benchmarks/interop/PyEuler31;
            0    1     1     t  Lorg/graalvm/polyglot/Value;
            0    1     2   end  I
            0    1     3     p  I
    MethodParameters:
      Name  Flags
      t     
      end   
      p     
}
SourceFile: "PyEuler31.java"