public final class org.graalvm.compiler.test.SubprocessUtil
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: org.graalvm.compiler.test.SubprocessUtil
  super_class: java.lang.Object
{
  public static final java.lang.String KEEP_TEMPORARY_ARGUMENT_FILES_PROPERTY_NAME;
    descriptor: Ljava/lang/String;
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL

  private static final java.util.regex.Pattern SAFE_SHELL_ARG;
    descriptor: Ljava/util/regex/Pattern;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  public static final java.lang.String PACKAGE_OPENING_OPTIONS;
    descriptor: Ljava/lang/String;
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: ";:PACKAGE_OPENING_OPTIONS_IN_TEMPORARY_ARGUMENTS_FILE:;"

  private static final boolean isJava8OrEarlier;
    descriptor: Z
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 58
            new java.lang.StringBuilder
            dup
            ldc "test."
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc Lorg/graalvm/compiler/test/SubprocessUtil;
            invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc ".keepTempArgumentFiles"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            putstatic org.graalvm.compiler.test.SubprocessUtil.KEEP_TEMPORARY_ARGUMENT_FILES_PROPERTY_NAME:Ljava/lang/String;
         1: .line 85
            ldc "[A-Za-z0-9@%_\\-\\+=:,\\./]+"
            invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
            putstatic org.graalvm.compiler.test.SubprocessUtil.SAFE_SHELL_ARG:Ljava/util/regex/Pattern;
         2: .line 347
            getstatic org.graalvm.compiler.serviceprovider.JavaVersionUtil.JAVA_SPEC:I
            bipush 8
            if_icmpgt 3
            iconst_1
            goto 4
      StackMap locals:
      StackMap stack:
         3: iconst_0
      StackMap locals:
      StackMap stack: int
         4: putstatic org.graalvm.compiler.test.SubprocessUtil.isJava8OrEarlier:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.test.SubprocessUtil this
         0: .line 60
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 61
            return
        end local 0 // org.graalvm.compiler.test.SubprocessUtil this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/graalvm/compiler/test/SubprocessUtil;

  public static java.util.List<java.lang.String> getProcessCommandLine();
    descriptor: ()Ljava/util/List;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 77
            new java.lang.Error
            dup
            ldc "Unresolved compilation problem: \n\tAssume cannot be resolved\n"
            invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
            athrow
      LocalVariableTable:
        Start  End  Slot  Name  Signature
    Signature: ()Ljava/util/List<Ljava/lang/String;>;

  public static java.lang.String quoteShellArg(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=2, args_size=1
        start local 0 // java.lang.String arg
         0: .line 91
            aload 0 /* arg */
            invokevirtual java.lang.String.isEmpty:()Z
            ifeq 2
         1: .line 92
            ldc "\"\""
            areturn
         2: .line 94
      StackMap locals:
      StackMap stack:
            getstatic org.graalvm.compiler.test.SubprocessUtil.SAFE_SHELL_ARG:Ljava/util/regex/Pattern;
            aload 0 /* arg */
            invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
            astore 1 /* m */
        start local 1 // java.util.regex.Matcher m
         3: .line 95
            aload 1 /* m */
            invokevirtual java.util.regex.Matcher.matches:()Z
            ifeq 5
         4: .line 96
            aload 0 /* arg */
            areturn
         5: .line 99
      StackMap locals: java.util.regex.Matcher
      StackMap stack:
            new java.lang.StringBuilder
            dup
            ldc "'"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* arg */
            ldc "'"
            ldc "'\"'\"'"
            invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc "'"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 1 // java.util.regex.Matcher m
        end local 0 // java.lang.String arg
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0   arg  Ljava/lang/String;
            3    6     1     m  Ljava/util/regex/Matcher;
    MethodParameters:
      Name  Flags
      arg   

  public static java.util.List<java.lang.String> withoutDebuggerArguments(java.util.List<java.lang.String>);
    descriptor: (Ljava/util/List;)Ljava/util/List;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=4, args_size=1
        start local 0 // java.util.List args
         0: .line 106
            new java.util.ArrayList
            dup
            aload 0 /* args */
            invokeinterface java.util.List.size:()I
            invokespecial java.util.ArrayList.<init>:(I)V
            astore 1 /* result */
        start local 1 // java.util.List result
         1: .line 107
            aload 0 /* args */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 3
            goto 5
      StackMap locals: java.util.List java.util.List top java.util.Iterator
      StackMap stack:
         2: aload 3
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.String
            astore 2 /* arg */
        start local 2 // java.lang.String arg
         3: .line 108
            aload 2 /* arg */
            ldc "-Xdebug"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 5
            aload 2 /* arg */
            ldc "-Xrunjdwp:"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 5
         4: .line 109
            aload 1 /* result */
            aload 2 /* arg */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 2 // java.lang.String arg
         5: .line 107
      StackMap locals:
      StackMap stack:
            aload 3
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
         6: .line 112
            aload 1 /* result */
            areturn
        end local 1 // java.util.List result
        end local 0 // java.util.List args
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    7     0    args  Ljava/util/List<Ljava/lang/String;>;
            1    7     1  result  Ljava/util/List<Ljava/lang/String;>;
            3    5     2     arg  Ljava/lang/String;
    Signature: (Ljava/util/List<Ljava/lang/String;>;)Ljava/util/List<Ljava/lang/String;>;
    MethodParameters:
      Name  Flags
      args  

  public static java.util.List<java.lang.String> getPackageOpeningOptions();
    descriptor: ()Ljava/util/List;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=11, args_size=0
         0: .line 122
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            astore 0 /* result */
        start local 0 // java.util.List result
         1: .line 123
            iconst_2
            anewarray java.lang.String
            dup
            iconst_0
            ldc "opens"
            aastore
            dup
            iconst_1
            ldc "exports"
            aastore
            astore 1 /* actions */
        start local 1 // java.lang.String[] actions
         2: .line 124
            aload 1 /* actions */
            dup
            astore 5
            arraylength
            istore 4
            iconst_0
            istore 3
            goto 12
      StackMap locals: java.util.List java.lang.String[] top int int java.lang.String[]
      StackMap stack:
         3: aload 5
            iload 3
            aaload
            astore 2 /* action */
        start local 2 // java.lang.String action
         4: .line 125
            new java.lang.StringBuilder
            dup
            ldc "com.oracle.mxtool.junit."
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* action */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 6 /* opens */
        start local 6 // java.lang.String opens
         5: .line 126
            aload 6 /* opens */
            ifnull 11
            aload 6 /* opens */
            invokevirtual java.lang.String.isEmpty:()Z
            ifne 11
         6: .line 127
            aload 6 /* opens */
            invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
            invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
            dup
            astore 10
            arraylength
            istore 9
            iconst_0
            istore 8
            goto 10
      StackMap locals: java.util.List java.lang.String[] java.lang.String int int java.lang.String[] java.lang.String top int int java.lang.String[]
      StackMap stack:
         7: aload 10
            iload 8
            aaload
            astore 7 /* value */
        start local 7 // java.lang.String value
         8: .line 128
            aload 0 /* result */
            new java.lang.StringBuilder
            dup
            ldc "--add-"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* action */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc "="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 7 /* value */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 7 // java.lang.String value
         9: .line 127
            iinc 8 1
      StackMap locals:
      StackMap stack:
        10: iload 8
            iload 9
            if_icmplt 7
        end local 6 // java.lang.String opens
        end local 2 // java.lang.String action
        11: .line 124
      StackMap locals: java.util.List java.lang.String[] top int int java.lang.String[]
      StackMap stack:
            iinc 3 1
      StackMap locals:
      StackMap stack:
        12: iload 3
            iload 4
            if_icmplt 3
        13: .line 132
            aload 0 /* result */
            areturn
        end local 1 // java.lang.String[] actions
        end local 0 // java.util.List result
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            1   14     0   result  Ljava/util/List<Ljava/lang/String;>;
            2   14     1  actions  [Ljava/lang/String;
            4   11     2   action  Ljava/lang/String;
            5   11     6    opens  Ljava/lang/String;
            8    9     7    value  Ljava/lang/String;
    Signature: ()Ljava/util/List<Ljava/lang/String;>;

  public static java.util.List<java.lang.String> getVMCommandLine();
    descriptor: ()Ljava/util/List;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=0
         0: .line 141
            invokestatic org.graalvm.compiler.test.SubprocessUtil.getProcessCommandLine:()Ljava/util/List;
            astore 0 /* args */
        start local 0 // java.util.List args
         1: .line 142
            aload 0 /* args */
            ifnonnull 3
         2: .line 143
            aconst_null
            areturn
         3: .line 145
      StackMap locals: java.util.List
      StackMap stack:
            aload 0 /* args */
            invokestatic org.graalvm.compiler.test.SubprocessUtil.findMainClassIndex:(Ljava/util/List;)I
            istore 1 /* index */
        start local 1 // int index
         4: .line 146
            aload 0 /* args */
            iconst_0
            iload 1 /* index */
            invokeinterface java.util.List.subList:(II)Ljava/util/List;
            areturn
        end local 1 // int index
        end local 0 // java.util.List args
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            1    5     0   args  Ljava/util/List<Ljava/lang/String;>;
            4    5     1  index  I
    Signature: ()Ljava/util/List<Ljava/lang/String;>;

  public static boolean isJavaAgentAttached(java.util.function.Predicate<java.lang.String>);
    descriptor: (Ljava/util/function/Predicate;)Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.util.function.Predicate agentPredicate
         0: .line 157
            invokestatic org.graalvm.compiler.test.SubprocessUtil.getVMCommandLine:()Ljava/util/List;
            invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
         1: .line 158
            invokedynamic test()Ljava/util/function/Predicate;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)Z
                  org/graalvm/compiler/test/SubprocessUtil.lambda$0(Ljava/lang/String;)Z (6)
                  (Ljava/lang/String;)Z
            invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
         2: .line 159
            invokedynamic apply()Ljava/util/function/Function;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)Ljava/lang/Object;
                  org/graalvm/compiler/test/SubprocessUtil.lambda$1(Ljava/lang/String;)Ljava/lang/String; (6)
                  (Ljava/lang/String;)Ljava/lang/String;
            invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
         3: .line 160
            aload 0 /* agentPredicate */
            invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
         4: .line 157
            ireturn
        end local 0 // java.util.function.Predicate agentPredicate
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    5     0  agentPredicate  Ljava/util/function/Predicate<Ljava/lang/String;>;
    Signature: (Ljava/util/function/Predicate<Ljava/lang/String;>;)Z
    MethodParameters:
                Name  Flags
      agentPredicate  

  public static boolean isJavaAgentAttached();
    descriptor: ()Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 167
            invokedynamic test()Ljava/util/function/Predicate;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)Z
                  org/graalvm/compiler/test/SubprocessUtil.lambda$2(Ljava/lang/String;)Z (6)
                  (Ljava/lang/String;)Z
            invokestatic org.graalvm.compiler.test.SubprocessUtil.isJavaAgentAttached:(Ljava/util/function/Predicate;)Z
            ireturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static boolean isJaCoCoAttached();
    descriptor: ()Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 174
            invokedynamic test()Ljava/util/function/Predicate;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)Z
                  org/graalvm/compiler/test/SubprocessUtil.lambda$3(Ljava/lang/String;)Z (6)
                  (Ljava/lang/String;)Z
            invokestatic org.graalvm.compiler.test.SubprocessUtil.isJavaAgentAttached:(Ljava/util/function/Predicate;)Z
            ireturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static org.graalvm.compiler.test.SubprocessUtil$Subprocess java(java.util.List<java.lang.String>, java.lang.String[]);
    descriptor: (Ljava/util/List;[Ljava/lang/String;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // java.util.List vmArgs
        start local 1 // java.lang.String[] mainClassAndArgs
         0: .line 263
            aload 0 /* vmArgs */
            aload 1 /* mainClassAndArgs */
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            invokestatic org.graalvm.compiler.test.SubprocessUtil.java:(Ljava/util/List;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
            areturn
        end local 1 // java.lang.String[] mainClassAndArgs
        end local 0 // java.util.List vmArgs
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0    1     0            vmArgs  Ljava/util/List<Ljava/lang/String;>;
            0    1     1  mainClassAndArgs  [Ljava/lang/String;
    Exceptions:
      throws java.io.IOException, java.lang.InterruptedException
    Signature: (Ljava/util/List<Ljava/lang/String;>;[Ljava/lang/String;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    MethodParameters:
                  Name  Flags
      vmArgs            
      mainClassAndArgs  

  public static org.graalvm.compiler.test.SubprocessUtil$Subprocess java(java.util.List<java.lang.String>, java.util.List<java.lang.String>);
    descriptor: (Ljava/util/List;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // java.util.List vmArgs
        start local 1 // java.util.List mainClassAndArgs
         0: .line 273
            aload 0 /* vmArgs */
            aconst_null
            aload 1 /* mainClassAndArgs */
            invokestatic org.graalvm.compiler.test.SubprocessUtil.javaHelper:(Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
            areturn
        end local 1 // java.util.List mainClassAndArgs
        end local 0 // java.util.List vmArgs
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0    1     0            vmArgs  Ljava/util/List<Ljava/lang/String;>;
            0    1     1  mainClassAndArgs  Ljava/util/List<Ljava/lang/String;>;
    Exceptions:
      throws java.io.IOException, java.lang.InterruptedException
    Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    MethodParameters:
                  Name  Flags
      vmArgs            
      mainClassAndArgs  

  public static org.graalvm.compiler.test.SubprocessUtil$Subprocess java(java.util.List<java.lang.String>, java.util.Map<java.lang.String, java.lang.String>, java.lang.String[]);
    descriptor: (Ljava/util/List;Ljava/util/Map;[Ljava/lang/String;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // java.util.List vmArgs
        start local 1 // java.util.Map env
        start local 2 // java.lang.String[] mainClassAndArgs
         0: .line 284
            aload 0 /* vmArgs */
            aload 1 /* env */
            aload 2 /* mainClassAndArgs */
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            invokestatic org.graalvm.compiler.test.SubprocessUtil.java:(Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
            areturn
        end local 2 // java.lang.String[] mainClassAndArgs
        end local 1 // java.util.Map env
        end local 0 // java.util.List vmArgs
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0    1     0            vmArgs  Ljava/util/List<Ljava/lang/String;>;
            0    1     1               env  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
            0    1     2  mainClassAndArgs  [Ljava/lang/String;
    Exceptions:
      throws java.io.IOException, java.lang.InterruptedException
    Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;[Ljava/lang/String;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    MethodParameters:
                  Name  Flags
      vmArgs            
      env               
      mainClassAndArgs  

  public static org.graalvm.compiler.test.SubprocessUtil$Subprocess java(java.util.List<java.lang.String>, java.util.Map<java.lang.String, java.lang.String>, java.util.List<java.lang.String>);
    descriptor: (Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // java.util.List vmArgs
        start local 1 // java.util.Map env
        start local 2 // java.util.List mainClassAndArgs
         0: .line 295
            aload 0 /* vmArgs */
            aload 1 /* env */
            aload 2 /* mainClassAndArgs */
            invokestatic org.graalvm.compiler.test.SubprocessUtil.javaHelper:(Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
            areturn
        end local 2 // java.util.List mainClassAndArgs
        end local 1 // java.util.Map env
        end local 0 // java.util.List vmArgs
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0    1     0            vmArgs  Ljava/util/List<Ljava/lang/String;>;
            0    1     1               env  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
            0    1     2  mainClassAndArgs  Ljava/util/List<Ljava/lang/String;>;
    Exceptions:
      throws java.io.IOException, java.lang.InterruptedException
    Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    MethodParameters:
                  Name  Flags
      vmArgs            
      env               
      mainClassAndArgs  

  private static org.graalvm.compiler.test.SubprocessUtil$Subprocess javaHelper(java.util.List<java.lang.String>, java.util.Map<java.lang.String, java.lang.String>, java.util.List<java.lang.String>);
    descriptor: (Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=6, locals=12, args_size=3
        start local 0 // java.util.List vmArgs
        start local 1 // java.util.Map env
        start local 2 // java.util.List mainClassAndArgs
         0: .line 306
            new java.util.ArrayList
            dup
            aload 0 /* vmArgs */
            invokeinterface java.util.List.size:()I
            invokespecial java.util.ArrayList.<init>:(I)V
            astore 3 /* command */
        start local 3 // java.util.List command
         1: .line 307
            aconst_null
            astore 4 /* packageOpeningOptionsArgumentsFile */
        start local 4 // java.nio.file.Path packageOpeningOptionsArgumentsFile
         2: .line 308
            aload 0 /* vmArgs */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 6
            goto 13
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path top java.util.Iterator
      StackMap stack:
         3: aload 6
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.String
            astore 5 /* vmArg */
        start local 5 // java.lang.String vmArg
         4: .line 309
            aload 5 /* vmArg */
            ldc ";:PACKAGE_OPENING_OPTIONS_IN_TEMPORARY_ARGUMENTS_FILE:;"
            if_acmpne 12
         5: .line 310
            aload 4 /* packageOpeningOptionsArgumentsFile */
            ifnonnull 13
         6: .line 311
            invokestatic org.graalvm.compiler.test.SubprocessUtil.getPackageOpeningOptions:()Ljava/util/List;
            astore 7 /* packageOpeningOptions */
        start local 7 // java.util.List packageOpeningOptions
         7: .line 312
            aload 7 /* packageOpeningOptions */
            invokeinterface java.util.List.isEmpty:()Z
            ifne 13
         8: .line 313
            ldc "."
            iconst_0
            anewarray java.lang.String
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            ldc "package-opening-options-arguments-file"
            ldc ".txt"
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createTempFile:(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
            astore 4 /* packageOpeningOptionsArgumentsFile */
         9: .line 314
            aload 4 /* packageOpeningOptionsArgumentsFile */
            aload 7 /* packageOpeningOptions */
            iconst_0
            anewarray java.nio.file.OpenOption
            invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;Ljava/lang/Iterable;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
            pop
        10: .line 315
            aload 3 /* command */
            new java.lang.StringBuilder
            dup
            ldc "@"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 4 /* packageOpeningOptionsArgumentsFile */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 7 // java.util.List packageOpeningOptions
        11: .line 318
            goto 13
        12: .line 319
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.String java.util.Iterator
      StackMap stack:
            aload 3 /* command */
            aload 5 /* vmArg */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 5 // java.lang.String vmArg
        13: .line 308
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path top java.util.Iterator
      StackMap stack:
            aload 6
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
        14: .line 322
            aload 3 /* command */
            aload 2 /* mainClassAndArgs */
            invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
            pop
        15: .line 323
            new java.lang.ProcessBuilder
            dup
            aload 3 /* command */
            invokespecial java.lang.ProcessBuilder.<init>:(Ljava/util/List;)V
            astore 5 /* processBuilder */
        start local 5 // java.lang.ProcessBuilder processBuilder
        16: .line 324
            aload 1 /* env */
            ifnull 19
        17: .line 325
            aload 5 /* processBuilder */
            invokevirtual java.lang.ProcessBuilder.environment:()Ljava/util/Map;
            astore 6 /* processBuilderEnv */
        start local 6 // java.util.Map processBuilderEnv
        18: .line 326
            aload 6 /* processBuilderEnv */
            aload 1 /* env */
            invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
        end local 6 // java.util.Map processBuilderEnv
        19: .line 328
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder
      StackMap stack:
            aload 5 /* processBuilder */
            iconst_1
            invokevirtual java.lang.ProcessBuilder.redirectErrorStream:(Z)Ljava/lang/ProcessBuilder;
            pop
        20: .line 330
            aload 5 /* processBuilder */
            invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
            astore 6 /* process */
        start local 6 // java.lang.Process process
        21: .line 331
            new java.io.BufferedReader
            dup
            new java.io.InputStreamReader
            dup
            aload 6 /* process */
            invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
            invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
            invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
            astore 7 /* stdout */
        start local 7 // java.io.BufferedReader stdout
        22: .line 333
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            astore 9 /* output */
        start local 9 // java.util.List output
        23: .line 334
            goto 25
        start local 8 // java.lang.String line
        24: .line 335
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder java.lang.Process java.io.BufferedReader java.lang.String java.util.List
      StackMap stack:
            aload 9 /* output */
            aload 8 /* line */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 8 // java.lang.String line
        25: .line 334
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder java.lang.Process java.io.BufferedReader top java.util.List
      StackMap stack:
            aload 7 /* stdout */
            invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
            dup
            astore 8 /* line */
        start local 8 // java.lang.String line
        26: ifnonnull 24
        27: .line 337
            new org.graalvm.compiler.test.SubprocessUtil$Subprocess
            dup
            aload 3 /* command */
            aload 1 /* env */
            aload 6 /* process */
            invokevirtual java.lang.Process.waitFor:()I
            aload 9 /* output */
            invokespecial org.graalvm.compiler.test.SubprocessUtil$Subprocess.<init>:(Ljava/util/List;Ljava/util/Map;ILjava/util/List;)V
            astore 11
        28: .line 339
            aload 4 /* packageOpeningOptionsArgumentsFile */
            ifnull 31
        29: .line 340
            getstatic org.graalvm.compiler.test.SubprocessUtil.KEEP_TEMPORARY_ARGUMENT_FILES_PROPERTY_NAME:Ljava/lang/String;
            invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
            ifne 31
        30: .line 341
            aload 4 /* packageOpeningOptionsArgumentsFile */
            invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
        31: .line 337
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder java.lang.Process java.io.BufferedReader java.lang.String java.util.List top org.graalvm.compiler.test.SubprocessUtil$Subprocess
      StackMap stack:
            aload 11
            areturn
        end local 9 // java.util.List output
        end local 8 // java.lang.String line
        end local 7 // java.io.BufferedReader stdout
        end local 6 // java.lang.Process process
        32: .line 338
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder
      StackMap stack: java.lang.Throwable
            astore 10
        33: .line 339
            aload 4 /* packageOpeningOptionsArgumentsFile */
            ifnull 36
        34: .line 340
            getstatic org.graalvm.compiler.test.SubprocessUtil.KEEP_TEMPORARY_ARGUMENT_FILES_PROPERTY_NAME:Ljava/lang/String;
            invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
            ifne 36
        35: .line 341
            aload 4 /* packageOpeningOptionsArgumentsFile */
            invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
        36: .line 344
      StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder top top top top java.lang.Throwable
      StackMap stack:
            aload 10
            athrow
        end local 5 // java.lang.ProcessBuilder processBuilder
        end local 4 // java.nio.file.Path packageOpeningOptionsArgumentsFile
        end local 3 // java.util.List command
        end local 2 // java.util.List mainClassAndArgs
        end local 1 // java.util.Map env
        end local 0 // java.util.List vmArgs
      LocalVariableTable:
        Start  End  Slot                                Name  Signature
            0   37     0                              vmArgs  Ljava/util/List<Ljava/lang/String;>;
            0   37     1                                 env  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
            0   37     2                    mainClassAndArgs  Ljava/util/List<Ljava/lang/String;>;
            1   37     3                             command  Ljava/util/List<Ljava/lang/String;>;
            2   37     4  packageOpeningOptionsArgumentsFile  Ljava/nio/file/Path;
            4   13     5                               vmArg  Ljava/lang/String;
            7   11     7               packageOpeningOptions  Ljava/util/List<Ljava/lang/String;>;
           16   37     5                      processBuilder  Ljava/lang/ProcessBuilder;
           18   19     6                   processBuilderEnv  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
           21   32     6                             process  Ljava/lang/Process;
           22   32     7                              stdout  Ljava/io/BufferedReader;
           24   25     8                                line  Ljava/lang/String;
           26   32     8                                line  Ljava/lang/String;
           23   32     9                              output  Ljava/util/List<Ljava/lang/String;>;
      Exception table:
        from    to  target  type
          20    28      32  any
    Exceptions:
      throws java.io.IOException, java.lang.InterruptedException
    Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
    MethodParameters:
                  Name  Flags
      vmArgs            
      env               
      mainClassAndArgs  

  private static boolean hasArg(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.lang.String optionName
         0: .line 350
            aload 0 /* optionName */
            ldc "-cp"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 1
            aload 0 /* optionName */
            ldc "-classpath"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 2
         1: .line 351
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
         2: .line 353
      StackMap locals:
      StackMap stack:
            getstatic org.graalvm.compiler.test.SubprocessUtil.isJava8OrEarlier:Z
            ifne 14
         3: .line 354
            aload 0 /* optionName */
            ldc "--version"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 10
         4: .line 355
            aload 0 /* optionName */
            ldc "--show-version"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 10
         5: .line 356
            aload 0 /* optionName */
            ldc "--dry-run"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 10
         6: .line 357
            aload 0 /* optionName */
            ldc "--disable-@files"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 10
         7: .line 358
            aload 0 /* optionName */
            ldc "--dry-run"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 10
         8: .line 359
            aload 0 /* optionName */
            ldc "--help"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 10
         9: .line 360
            aload 0 /* optionName */
            ldc "--help-extra"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 11
        10: .line 361
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        11: .line 363
      StackMap locals:
      StackMap stack:
            aload 0 /* optionName */
            ldc "--"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 14
        12: .line 364
            aload 0 /* optionName */
            bipush 61
            invokevirtual java.lang.String.indexOf:(I)I
            iconst_m1
            if_icmpne 13
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
        13: iconst_0
            ireturn
        14: .line 367
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 0 // java.lang.String optionName
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   15     0  optionName  Ljava/lang/String;
    MethodParameters:
            Name  Flags
      optionName  

  private static int findMainClassIndex(java.util.List<java.lang.String>);
    descriptor: (Ljava/util/List;)I
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // java.util.List commandLine
         0: .line 371
            iconst_1
            istore 1 /* i */
        start local 1 // int i
         1: .line 373
            goto 12
         2: .line 374
      StackMap locals: int
      StackMap stack:
            aload 0 /* commandLine */
            iload 1 /* i */
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast java.lang.String
            astore 2 /* s */
        start local 2 // java.lang.String s
         3: .line 375
            aload 2 /* s */
            iconst_0
            invokevirtual java.lang.String.charAt:(I)C
            bipush 45
            if_icmpeq 8
         4: .line 377
            getstatic org.graalvm.compiler.test.SubprocessUtil.isJava8OrEarlier:Z
            ifne 5
            aload 2 /* s */
            iconst_0
            invokevirtual java.lang.String.charAt:(I)C
            bipush 64
            if_icmpeq 6
         5: .line 378
      StackMap locals: java.lang.String
      StackMap stack:
            iload 1 /* i */
            ireturn
         6: .line 380
      StackMap locals:
      StackMap stack:
            iinc 1 /* i */ 1
         7: .line 381
            goto 12
      StackMap locals:
      StackMap stack:
         8: aload 2 /* s */
            invokestatic org.graalvm.compiler.test.SubprocessUtil.hasArg:(Ljava/lang/String;)Z
            ifeq 11
         9: .line 382
            iinc 1 /* i */ 2
        10: .line 383
            goto 12
        11: .line 384
      StackMap locals:
      StackMap stack:
            iinc 1 /* i */ 1
        end local 2 // java.lang.String s
        12: .line 373
      StackMap locals:
      StackMap stack:
            iload 1 /* i */
            aload 0 /* commandLine */
            invokeinterface java.util.List.size:()I
            if_icmplt 2
        13: .line 387
            new java.lang.InternalError
            dup
            invokespecial java.lang.InternalError.<init>:()V
            athrow
        end local 1 // int i
        end local 0 // java.util.List commandLine
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   14     0  commandLine  Ljava/util/List<Ljava/lang/String;>;
            1   14     1            i  I
            3   12     2            s  Ljava/lang/String;
    Signature: (Ljava/util/List<Ljava/lang/String;>;)I
    MethodParameters:
             Name  Flags
      commandLine  

  private static boolean lambda$0(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.lang.String args
         0: .line 158
            aload 0 /* args */
            ldc "-javaagent:"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ireturn
        end local 0 // java.lang.String args
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  args  Ljava/lang/String;

  private static java.lang.String lambda$1(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.lang.String s
         0: .line 159
            aload 0 /* s */
            ldc "-javaagent:"
            invokevirtual java.lang.String.length:()I
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            areturn
        end local 0 // java.lang.String s
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0     s  Ljava/lang/String;

  private static boolean lambda$2(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.lang.String javaAgentValue
         0: .line 167
            iconst_1
            ireturn
        end local 0 // java.lang.String javaAgentValue
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    1     0  javaAgentValue  Ljava/lang/String;

  private static boolean lambda$3(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.lang.String s
         0: .line 174
            aload 0 /* s */
            invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
            ldc "jacoco"
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ireturn
        end local 0 // java.lang.String s
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0     s  Ljava/lang/String;
}
SourceFile: "SubprocessUtil.java"
NestMembers:
  org.graalvm.compiler.test.SubprocessUtil$Subprocess
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public Subprocess = org.graalvm.compiler.test.SubprocessUtil$Subprocess of org.graalvm.compiler.test.SubprocessUtil