public class org.graalvm.compiler.debug.PathUtilities
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.graalvm.compiler.debug.PathUtilities
  super_class: java.lang.Object
{
  private static final int MAX_FILE_NAME_LENGTH;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 242

  private static final java.lang.String ELLIPSIS;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "..."

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.debug.PathUtilities this
         0: .line 41
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.graalvm.compiler.debug.PathUtilities this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/debug/PathUtilities;

  public static java.lang.String sanitizeFileName(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=4, args_size=1
        start local 0 // java.lang.String name
         0: .line 52
            aload 0 /* name */
            iconst_0
            anewarray java.lang.String
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            astore 1 /* path */
        start local 1 // java.nio.file.Path path
         1: .line 53
            aload 1 /* path */
            invokeinterface java.nio.file.Path.getNameCount:()I
            ifne 5
         2: .line 54
            aload 0 /* name */
         3: areturn
        end local 1 // java.nio.file.Path path
         4: .line 56
      StackMap locals:
      StackMap stack: java.nio.file.InvalidPathException
            pop
         5: .line 59
      StackMap locals:
      StackMap stack:
            new java.lang.StringBuilder
            dup
            aload 0 /* name */
            invokevirtual java.lang.String.length:()I
            invokespecial java.lang.StringBuilder.<init>:(I)V
            astore 1 /* buf */
        start local 1 // java.lang.StringBuilder buf
         6: .line 60
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         7: goto 16
         8: .line 61
      StackMap locals: java.lang.StringBuilder int
      StackMap stack:
            aload 0 /* name */
            iload 2 /* i */
            invokevirtual java.lang.String.charAt:(I)C
            istore 3 /* c */
        start local 3 // char c
         9: .line 62
            iload 3 /* c */
            getstatic java.io.File.separatorChar:C
            if_icmpeq 14
            iload 3 /* c */
            bipush 32
            if_icmpeq 14
            iload 3 /* c */
            invokestatic java.lang.Character.isISOControl:(C)Z
            ifne 14
        10: .line 64
            iload 3 /* c */
            invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
            iconst_0
            anewarray java.lang.String
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            pop
        11: .line 65
            aload 1 /* buf */
            iload 3 /* c */
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        12: .line 66
            goto 15
        13: .line 67
      StackMap locals: java.lang.String java.lang.StringBuilder int int
      StackMap stack: java.nio.file.InvalidPathException
            pop
        14: .line 70
      StackMap locals:
      StackMap stack:
            aload 1 /* buf */
            bipush 95
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        end local 3 // char c
        15: .line 60
      StackMap locals:
      StackMap stack:
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
        16: iload 2 /* i */
            aload 0 /* name */
            invokevirtual java.lang.String.length:()I
            if_icmplt 8
        end local 2 // int i
        17: .line 72
            aload 1 /* buf */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 1 // java.lang.StringBuilder buf
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   18     0  name  Ljava/lang/String;
            1    4     1  path  Ljava/nio/file/Path;
            6   18     1   buf  Ljava/lang/StringBuilder;
            7   17     2     i  I
            9   15     3     c  C
      Exception table:
        from    to  target  type
           0     3       4  Class java.nio.file.InvalidPathException
          10    12      13  Class java.nio.file.InvalidPathException
    MethodParameters:
      Name  Flags
      name  

  static java.nio.file.Path createUnique(org.graalvm.compiler.options.OptionValues, org.graalvm.compiler.options.OptionKey<java.lang.String>, java.lang.String, java.lang.String, java.lang.String, boolean);
    descriptor: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/OptionKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/nio/file/Path;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=6, locals=14, args_size=6
        start local 0 // org.graalvm.compiler.options.OptionValues options
        start local 1 // org.graalvm.compiler.options.OptionKey baseNameOption
        start local 2 // java.lang.String id
        start local 3 // java.lang.String label
        start local 4 // java.lang.String ext
        start local 5 // boolean createDirectory
         0: .line 85
            ldc ""
            astore 6 /* uniqueTag */
        start local 6 // java.lang.String uniqueTag
         1: .line 86
            iconst_1
            istore 7 /* dumpCounter */
        start local 7 // int dumpCounter
         2: .line 88
            aload 2 /* id */
            ifnonnull 7
         3: .line 89
            aload 1 /* baseNameOption */
            aload 0 /* options */
            invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
            checkcast java.lang.String
            astore 8 /* prefix */
        start local 8 // java.lang.String prefix
         4: .line 90
            aload 8 /* prefix */
            getstatic java.io.File.separatorChar:C
            invokevirtual java.lang.String.lastIndexOf:(I)I
            istore 9 /* slash */
        start local 9 // int slash
         5: .line 91
            aload 8 /* prefix */
            iload 9 /* slash */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 8 /* prefix */
        end local 9 // int slash
         6: .line 92
            goto 8
        end local 8 // java.lang.String prefix
         7: .line 93
      StackMap locals: java.lang.String int
      StackMap stack:
            aload 2 /* id */
            astore 8 /* prefix */
        start local 8 // java.lang.String prefix
         8: .line 96
      StackMap locals: java.lang.String
      StackMap stack:
            aload 6 /* uniqueTag */
            invokevirtual java.lang.String.length:()I
            aload 4 /* ext */
            invokevirtual java.lang.String.length:()I
            iadd
            aload 8 /* prefix */
            invokevirtual java.lang.String.length:()I
            iadd
            ldc "[]"
            invokevirtual java.lang.String.length:()I
            iadd
            istore 9 /* fileNameLengthWithoutLabel */
        start local 9 // int fileNameLengthWithoutLabel
         9: .line 97
            sipush 242
            iload 9 /* fileNameLengthWithoutLabel */
            isub
            istore 10 /* labelLengthLimit */
        start local 10 // int labelLengthLimit
        10: .line 99
            iload 10 /* labelLengthLimit */
            ldc "..."
            invokevirtual java.lang.String.length:()I
            if_icmpge 15
        11: .line 101
            new java.lang.StringBuilder
            dup
            aload 6 /* uniqueTag */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 4 /* ext */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 12 /* suffix */
        start local 12 // java.lang.String suffix
        12: .line 102
            sipush 242
            aload 12 /* suffix */
            invokevirtual java.lang.String.length:()I
            isub
            aload 8 /* prefix */
            invokevirtual java.lang.String.length:()I
            invokestatic java.lang.Math.min:(II)I
            istore 13 /* idLengthLimit */
        start local 13 // int idLengthLimit
        13: .line 103
            new java.lang.StringBuilder
            dup
            aload 8 /* prefix */
            iconst_0
            iload 13 /* idLengthLimit */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 12 /* suffix */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokestatic org.graalvm.compiler.debug.PathUtilities.sanitizeFileName:(Ljava/lang/String;)Ljava/lang/String;
            astore 11 /* fileName */
        end local 13 // int idLengthLimit
        end local 12 // java.lang.String suffix
        start local 11 // java.lang.String fileName
        14: .line 104
            goto 22
        end local 11 // java.lang.String fileName
        15: .line 105
      StackMap locals: int int
      StackMap stack:
            aload 3 /* label */
            ifnonnull 18
        16: .line 106
            new java.lang.StringBuilder
            dup
            aload 8 /* prefix */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 6 /* uniqueTag */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 4 /* ext */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokestatic org.graalvm.compiler.debug.PathUtilities.sanitizeFileName:(Ljava/lang/String;)Ljava/lang/String;
            astore 11 /* fileName */
        start local 11 // java.lang.String fileName
        17: .line 107
            goto 22
        end local 11 // java.lang.String fileName
        18: .line 108
      StackMap locals:
      StackMap stack:
            aload 3 /* label */
            astore 12 /* adjustedLabel */
        start local 12 // java.lang.String adjustedLabel
        19: .line 109
            aload 3 /* label */
            invokevirtual java.lang.String.length:()I
            iload 10 /* labelLengthLimit */
            if_icmple 21
        20: .line 110
            new java.lang.StringBuilder
            dup
            aload 3 /* label */
            iconst_0
            iload 10 /* labelLengthLimit */
            ldc "..."
            invokevirtual java.lang.String.length:()I
            isub
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc "..."
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 12 /* adjustedLabel */
        21: .line 112
      StackMap locals: org.graalvm.compiler.options.OptionValues org.graalvm.compiler.options.OptionKey java.lang.String java.lang.String java.lang.String int java.lang.String int java.lang.String int int top java.lang.String
      StackMap stack:
            new java.lang.StringBuilder
            dup
            aload 8 /* prefix */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            bipush 91
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            aload 12 /* adjustedLabel */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            bipush 93
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            aload 6 /* uniqueTag */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 4 /* ext */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokestatic org.graalvm.compiler.debug.PathUtilities.sanitizeFileName:(Ljava/lang/String;)Ljava/lang/String;
            astore 11 /* fileName */
        end local 12 // java.lang.String adjustedLabel
        start local 11 // java.lang.String fileName
        22: .line 115
      StackMap locals: org.graalvm.compiler.options.OptionValues org.graalvm.compiler.options.OptionKey java.lang.String java.lang.String java.lang.String int java.lang.String int java.lang.String int int java.lang.String
      StackMap stack:
            aload 0 /* options */
            invokestatic org.graalvm.compiler.debug.DebugOptions.getDumpDirectory:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/nio/file/Path;
            astore 12 /* dumpDir */
        start local 12 // java.nio.file.Path dumpDir
        23: .line 116
            aload 12 /* dumpDir */
            invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
            iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            aload 11 /* fileName */
            aastore
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            astore 13 /* result */
        start local 13 // java.nio.file.Path result
        24: .line 118
            iload 5 /* createDirectory */
            ifeq 27
        25: .line 119
            aload 13 /* result */
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
        26: areturn
        27: .line 121
      StackMap locals: java.nio.file.Path java.nio.file.Path
      StackMap stack:
            aload 13 /* result */
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createFile:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
        28: areturn
        29: .line 123
      StackMap locals:
      StackMap stack: java.nio.file.FileAlreadyExistsException
            pop
        30: .line 124
            new java.lang.StringBuilder
            dup
            ldc "_"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 7 /* dumpCounter */
            iinc 7 /* dumpCounter */ 1
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 6 /* uniqueTag */
        end local 13 // java.nio.file.Path result
        end local 12 // java.nio.file.Path dumpDir
        end local 11 // java.lang.String fileName
        end local 10 // int labelLengthLimit
        end local 9 // int fileNameLengthWithoutLabel
        31: .line 95
            goto 8
        end local 8 // java.lang.String prefix
        end local 7 // int dumpCounter
        end local 6 // java.lang.String uniqueTag
        end local 5 // boolean createDirectory
        end local 4 // java.lang.String ext
        end local 3 // java.lang.String label
        end local 2 // java.lang.String id
        end local 1 // org.graalvm.compiler.options.OptionKey baseNameOption
        end local 0 // org.graalvm.compiler.options.OptionValues options
      LocalVariableTable:
        Start  End  Slot                        Name  Signature
            0   32     0                     options  Lorg/graalvm/compiler/options/OptionValues;
            0   32     1              baseNameOption  Lorg/graalvm/compiler/options/OptionKey<Ljava/lang/String;>;
            0   32     2                          id  Ljava/lang/String;
            0   32     3                       label  Ljava/lang/String;
            0   32     4                         ext  Ljava/lang/String;
            0   32     5             createDirectory  Z
            1   32     6                   uniqueTag  Ljava/lang/String;
            2   32     7                 dumpCounter  I
            4    7     8                      prefix  Ljava/lang/String;
            8   32     8                      prefix  Ljava/lang/String;
            5    6     9                       slash  I
            9   31     9  fileNameLengthWithoutLabel  I
           10   31    10            labelLengthLimit  I
           14   15    11                    fileName  Ljava/lang/String;
           17   18    11                    fileName  Ljava/lang/String;
           22   31    11                    fileName  Ljava/lang/String;
           12   14    12                      suffix  Ljava/lang/String;
           13   14    13               idLengthLimit  I
           19   22    12               adjustedLabel  Ljava/lang/String;
           23   31    12                     dumpDir  Ljava/nio/file/Path;
           24   31    13                      result  Ljava/nio/file/Path;
      Exception table:
        from    to  target  type
          24    26      29  Class java.nio.file.FileAlreadyExistsException
          27    28      29  Class java.nio.file.FileAlreadyExistsException
    Exceptions:
      throws java.io.IOException
    Signature: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/OptionKey<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/nio/file/Path;
    MethodParameters:
                 Name  Flags
      options          
      baseNameOption   
      id               
      label            
      ext              
      createDirectory  
}
SourceFile: "PathUtilities.java"