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 java.util.concurrent.atomic.AtomicLong globalTimeStamp;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final int MAX_FILE_NAME_LENGTH;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 255

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

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 42
            new java.util.concurrent.atomic.AtomicLong
            dup
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
            putstatic org.graalvm.compiler.debug.PathUtilities.globalTimeStamp:Ljava/util/concurrent/atomic/AtomicLong;
         1: .line 93
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  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 40
            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 long getGlobalTimeStamp();
    descriptor: ()J
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=0, args_size=0
         0: .line 49
            getstatic org.graalvm.compiler.debug.PathUtilities.globalTimeStamp:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lconst_0
            lcmp
            ifne 2
         1: .line 50
            getstatic org.graalvm.compiler.debug.PathUtilities.globalTimeStamp:Ljava/util/concurrent/atomic/AtomicLong;
            lconst_0
            invokestatic java.lang.System.currentTimeMillis:()J
            invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
            pop
         2: .line 52
      StackMap locals:
      StackMap stack:
            getstatic org.graalvm.compiler.debug.PathUtilities.globalTimeStamp:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lreturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  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 64
            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 65
            aload 1 /* path */
            invokeinterface java.nio.file.Path.getNameCount:()I
            ifne 5
         2: .line 66
            aload 0 /* name */
         3: areturn
        end local 1 // java.nio.file.Path path
         4: .line 68
      StackMap locals:
      StackMap stack: java.nio.file.InvalidPathException
            pop
         5: .line 71
      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 72
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         7: goto 16
         8: .line 73
      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 74
            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 76
            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 77
            aload 1 /* buf */
            iload 3 /* c */
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
        12: .line 78
            goto 15
        13: .line 79
      StackMap locals: java.lang.String java.lang.StringBuilder int int
      StackMap stack: java.nio.file.InvalidPathException
            pop
        14: .line 82
      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 72
      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 84
            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 96
            ldc ""
            astore 6 /* uniqueTag */
        start local 6 // java.lang.String uniqueTag
         1: .line 97
            iconst_1
            istore 7 /* dumpCounter */
        start local 7 // int dumpCounter
         2: .line 99
            aload 2 /* id */
            ifnonnull 7
         3: .line 100
            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 101
            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 102
            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 103
            goto 8
        end local 8 // java.lang.String prefix
         7: .line 104
      StackMap locals: java.lang.String int
      StackMap stack:
            aload 2 /* id */
            astore 8 /* prefix */
        start local 8 // java.lang.String prefix
         8: .line 107
      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 108
            sipush 255
            iload 9 /* fileNameLengthWithoutLabel */
            isub
            istore 10 /* labelLengthLimit */
        start local 10 // int labelLengthLimit
        10: .line 110
            iload 10 /* labelLengthLimit */
            ldc "..."
            invokevirtual java.lang.String.length:()I
            if_icmpge 15
        11: .line 112
            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 113
            sipush 255
            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 114
            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 115
            goto 22
        end local 11 // java.lang.String fileName
        15: .line 116
      StackMap locals: int int
      StackMap stack:
            aload 3 /* label */
            ifnonnull 18
        16: .line 117
            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 118
            goto 22
        end local 11 // java.lang.String fileName
        18: .line 119
      StackMap locals:
      StackMap stack:
            aload 3 /* label */
            astore 12 /* adjustedLabel */
        start local 12 // java.lang.String adjustedLabel
        19: .line 120
            aload 3 /* label */
            invokevirtual java.lang.String.length:()I
            iload 10 /* labelLengthLimit */
            if_icmple 21
        20: .line 121
            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 123
      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 126
      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 127
            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 129
            iload 5 /* createDirectory */
            ifeq 27
        25: .line 130
            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 132
      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 134
      StackMap locals:
      StackMap stack: java.nio.file.FileAlreadyExistsException
            pop
        30: .line 135
            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 106
            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"