import java.io.File
import java.util.Scanner

private fun <T> MutableList<T>.addAll(vararg ts: T) = addAll(ts)

data class Job(
    val time: Long,
    var release: Long,
    val index: Int,
    val f: (Long) -> Long,
    val times: MutableList<Long> = mutableListOf(),
)

private data class Block(val start: Long, var time: Long = 0, val jobs: MutableList<Job> = mutableListOf()) {
    val end: Long
        get() = start + time

    fun add(job: Job) {
        jobs += job
        time += job.time
    }
}

private fun topologicalSort(jobs: List<Job>, edges: List<List<Int>>, reverseEdges: List<List<Int>>): List<Job> {
    fun depthFirstSearch(
        edges: List<List<Int>>,
        jobs: List<Job>,
        currentVertex: Int,
        result: MutableList<Job>,
        used: MutableSet<Int>,
    ) {
        if (currentVertex in used) return
        used += currentVertex

        edges[currentVertex]
            .asSequence()
            .filter { it !in used }
            .forEach { depthFirstSearch(edges, jobs, it, result, used) }

        result += jobs[currentVertex]
    }

    val result = mutableListOf<Job>()
    val used = mutableSetOf<Int>()

    jobs.indices
        .asSequence()
        .filter { it !in used && reverseEdges[it].isEmpty() }
        .forEach { depthFirstSearch(edges, jobs, it, result, used) }

    return result
}

private fun createBlocks(jobs: List<Job>): List<Block> = buildList {
    jobs.forEach { job ->
        val block = if (lastOrNull()?.let { it.end >= job.release } == true) {
            last()
        } else {
            Block(job.release).also { add(it) }
        }

        block.add(job)
    }
}

private fun decompose(edges: List<List<Int>>, block: Block): Long {
    val end = block.end

    val used = mutableSetOf<Int>()
    val minimumJobIndex = block.jobs
        .indices
        .reversed()
        .asSequence()
        .map { it to block.jobs[it] }
        .filter { (_, job) -> edges[job.index].none { it in used }.also { used += job.index } }
        .minBy { (_, job) -> job.f(end) }
        .first

    val deleted = block.jobs[minimumJobIndex]
    block.jobs.removeAt(minimumJobIndex)
    val newBlocks = createBlocks(block.jobs)

    return if (newBlocks.isEmpty()) {
        deleted.times.addAll(block.start, block.end)
        deleted.f(end)
    } else {
        if (block.start < newBlocks.first().start) {
            deleted.times.addAll(block.start, newBlocks.first().start)
        }

        newBlocks.asSequence()
            .windowed(2)
            .map { (left, right) -> left.end to right.start }
            .filter { (start, end) -> start < end }
            .forEach { deleted.times.addAll(it.toList()) }

        if (block.end > newBlocks.last().end) {
            deleted.times.addAll(newBlocks.last().end, block.end)
        }

        maxOf(deleted.f(end), newBlocks.maxOf { decompose(edges, it) })
    }
}

fun schedule1PrecPmtnRFMax(jobs: List<Job>, edges: List<List<Int>>, reverseEdges: List<List<Int>>): Long {
    val topologicalSorted = topologicalSort(jobs, edges, reverseEdges)

    topologicalSorted.asReversed().forEach { job ->
        edges[job.index]
            .asSequence()
            .map { jobs[it] }
            .forEach { it.release = maxOf(it.release, job.release + job.time) }
    }

    return createBlocks(topologicalSorted.sortedBy { it.release }).maxOf { decompose(edges, it) }
}

fun main() {
    val scanner = Scanner(File("p1precpmtnrifmax.in").bufferedReader())

    val n = scanner.nextInt()
    val times = List(n) { scanner.nextLong() }
    val releases = List(n) { scanner.nextLong() }
    val m = scanner.nextInt()

    val edges = List(n) { mutableListOf<Int>() }
    val reverseEdges = List(n) { mutableListOf<Int>() }

    repeat(m) {
        val (from, to) = List(2) { scanner.nextInt() - 1 }
        edges[from] += to
        reverseEdges[to] += from
    }

    val jobs = List(n) {
        val (a, b, c) = List(3) { scanner.nextLong() }
        Job(times[it], releases[it], it, { time -> a * time * time + b * time + c })
    }

    val fMax = schedule1PrecPmtnRFMax(jobs, edges, reverseEdges)

    File("p1precpmtnrifmax.out").printWriter().use { output ->
        output.println(fMax)

        jobs.forEach { job ->
            output.write("${job.times.size / 2} ")
            job.times.forEach { output.print("$it ") }
            output.println()
        }
    }
}

Compiled from "Comparisons.kt"
public final class H1PrecPmtnRFMaxKt$schedule1PrecPmtnRFMax$$inlined$sortedBy$1<T> implements java.util.Comparator {
  public H1PrecPmtnRFMaxKt$schedule1PrecPmtnRFMax$$inlined$sortedBy$1();
    Code:
       0: aload_0
       1: invokespecial #16                 // Method java/lang/Object."<init>":()V
       4: return

  public final int compare(T, T);
    Code:
       0: aload_1
       1: checkcast     #23                 // class Job
       4: astore_3
       5: iconst_0
       6: istore        4
       8: aload_3
       9: invokevirtual #27                 // Method Job.getRelease:()J
      12: invokestatic  #33                 // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
      15: checkcast     #35                 // class java/lang/Comparable
      18: aload_2
      19: checkcast     #23                 // class Job
      22: astore_3
      23: astore        5
      25: iconst_0
      26: istore        4
      28: aload_3
      29: invokevirtual #27                 // Method Job.getRelease:()J
      32: invokestatic  #33                 // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
      35: aload         5
      37: swap
      38: checkcast     #35                 // class java/lang/Comparable
      41: invokestatic  #41                 // Method kotlin/comparisons/ComparisonsKt.compareValues:(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
      44: ireturn
}

Compiled from "h1PrecPmtnRFMax.kt"
public final class H1PrecPmtnRFMaxKt {
  private static final <T> boolean addAll(java.util.List<T>, T...);
    Code:
       0: aload_0
       1: checkcast     #9                  // class java/util/Collection
       4: aload_1
       5: invokestatic  #14                 // Method kotlin/collections/CollectionsKt.addAll:(Ljava/util/Collection;[Ljava/lang/Object;)Z
       8: ireturn

  private static final java.util.List<Job> topologicalSort(java.util.List<Job>, java.util.List<? extends java.util.List<java.lang.Integer>>, java.util.List<? extends java.util.List<java.lang.Integer>>);
    Code:
       0: new           #23                 // class java/util/ArrayList
       3: dup
       4: invokespecial #27                 // Method java/util/ArrayList."<init>":()V
       7: checkcast     #29                 // class java/util/List
      10: astore_3
      11: new           #31                 // class java/util/LinkedHashSet
      14: dup
      15: invokespecial #32                 // Method java/util/LinkedHashSet."<init>":()V
      18: checkcast     #34                 // class java/util/Set
      21: astore        4
      23: aload_0
      24: checkcast     #9                  // class java/util/Collection
      27: invokestatic  #38                 // Method kotlin/collections/CollectionsKt.getIndices:(Ljava/util/Collection;)Lkotlin/ranges/IntRange;
      30: checkcast     #40                 // class java/lang/Iterable
      33: invokestatic  #44                 // Method kotlin/collections/CollectionsKt.asSequence:(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
      36: aload         4
      38: aload_2
      39: invokedynamic #64,  0             // InvokeDynamic #0:invoke:(Ljava/util/Set;Ljava/util/List;)Lkotlin/jvm/functions/Function1;
      44: invokestatic  #70                 // Method kotlin/sequences/SequencesKt.filter:(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
      47: astore        5
      49: nop
      50: iconst_0
      51: istore        6
      53: aload         5
      55: invokeinterface #76,  1           // InterfaceMethod kotlin/sequences/Sequence.iterator:()Ljava/util/Iterator;
      60: astore        7
      62: aload         7
      64: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      69: ifeq          108
      72: aload         7
      74: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      79: astore        8
      81: aload         8
      83: checkcast     #88                 // class java/lang/Number
      86: invokevirtual #92                 // Method java/lang/Number.intValue:()I
      89: istore        9
      91: iconst_0
      92: istore        10
      94: aload_1
      95: aload_0
      96: iload         9
      98: aload_3
      99: aload         4
     101: invokestatic  #96                 // Method topologicalSort$depthFirstSearch:(Ljava/util/List;Ljava/util/List;ILjava/util/List;Ljava/util/Set;)V
     104: nop
     105: goto          62
     108: nop
     109: aload_3
     110: areturn

  private static final java.util.List<Block> createBlocks(java.util.List<Job>);
    Code:
       0: invokestatic  #117                // Method kotlin/collections/CollectionsKt.createListBuilder:()Ljava/util/List;
       3: astore_1
       4: aload_1
       5: astore_2
       6: iconst_0
       7: istore_3
       8: aload_0
       9: checkcast     #40                 // class java/lang/Iterable
      12: astore        4
      14: iconst_0
      15: istore        5
      17: aload         4
      19: invokeinterface #118,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      24: astore        6
      26: aload         6
      28: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      33: ifeq          169
      36: aload         6
      38: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      43: astore        7
      45: aload         7
      47: checkcast     #120                // class Job
      50: astore        8
      52: iconst_0
      53: istore        9
      55: aload_2
      56: invokestatic  #124                // Method kotlin/collections/CollectionsKt.lastOrNull:(Ljava/util/List;)Ljava/lang/Object;
      59: checkcast     #126                // class Block
      62: dup
      63: ifnull        103
      66: astore        10
      68: iconst_0
      69: istore        11
      71: aload         10
      73: invokevirtual #130                // Method Block.getEnd:()J
      76: aload         8
      78: invokevirtual #133                // Method Job.getRelease:()J
      81: lcmp
      82: iflt          89
      85: iconst_1
      86: goto          90
      89: iconst_0
      90: nop
      91: iconst_1
      92: if_icmpne     99
      95: iconst_1
      96: goto          105
      99: iconst_0
     100: goto          105
     103: pop
     104: iconst_0
     105: ifeq          118
     108: aload_2
     109: invokestatic  #136                // Method kotlin/collections/CollectionsKt.last:(Ljava/util/List;)Ljava/lang/Object;
     112: checkcast     #126                // class Block
     115: goto          155
     118: new           #126                // class Block
     121: dup
     122: aload         8
     124: invokevirtual #133                // Method Job.getRelease:()J
     127: lconst_0
     128: aconst_null
     129: bipush        6
     131: aconst_null
     132: invokespecial #139                // Method Block."<init>":(JJLjava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
     135: astore        12
     137: aload         12
     139: astore        13
     141: iconst_0
     142: istore        10
     144: aload_2
     145: aload         13
     147: invokeinterface #143,  2          // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
     152: pop
     153: aload         12
     155: astore        14
     157: aload         14
     159: aload         8
     161: invokevirtual #146                // Method Block.add:(LJob;)V
     164: nop
     165: nop
     166: goto          26
     169: nop
     170: nop
     171: aload_1
     172: invokestatic  #149                // Method kotlin/collections/CollectionsKt.build:(Ljava/util/List;)Ljava/util/List;
     175: areturn

  private static final long decompose(java.util.List<? extends java.util.List<java.lang.Integer>>, Block);
    Code:
       0: aload_1
       1: invokevirtual #130                // Method Block.getEnd:()J
       4: lstore_2
       5: new           #31                 // class java/util/LinkedHashSet
       8: dup
       9: invokespecial #32                 // Method java/util/LinkedHashSet."<init>":()V
      12: checkcast     #34                 // class java/util/Set
      15: astore        4
      17: aload_1
      18: invokevirtual #165                // Method Block.getJobs:()Ljava/util/List;
      21: checkcast     #9                  // class java/util/Collection
      24: invokestatic  #38                 // Method kotlin/collections/CollectionsKt.getIndices:(Ljava/util/Collection;)Lkotlin/ranges/IntRange;
      27: checkcast     #167                // class kotlin/ranges/IntProgression
      30: invokestatic  #173                // Method kotlin/ranges/RangesKt.reversed:(Lkotlin/ranges/IntProgression;)Lkotlin/ranges/IntProgression;
      33: checkcast     #40                 // class java/lang/Iterable
      36: invokestatic  #44                 // Method kotlin/collections/CollectionsKt.asSequence:(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
      39: aload_1
      40: invokedynamic #183,  0            // InvokeDynamic #1:invoke:(LBlock;)Lkotlin/jvm/functions/Function1;
      45: invokestatic  #186                // Method kotlin/sequences/SequencesKt.map:(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
      48: aload_0
      49: aload         4
      51: invokedynamic #196,  0            // InvokeDynamic #2:invoke:(Ljava/util/List;Ljava/util/Set;)Lkotlin/jvm/functions/Function1;
      56: invokestatic  #70                 // Method kotlin/sequences/SequencesKt.filter:(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
      59: astore        6
      61: nop
      62: iconst_0
      63: istore        7
      65: aload         6
      67: invokeinterface #76,  1           // InterfaceMethod kotlin/sequences/Sequence.iterator:()Ljava/util/Iterator;
      72: astore        8
      74: aload         8
      76: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      81: ifne          92
      84: new           #198                // class java/util/NoSuchElementException
      87: dup
      88: invokespecial #199                // Method java/util/NoSuchElementException."<init>":()V
      91: athrow
      92: aload         8
      94: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      99: astore        9
     101: aload         8
     103: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     108: ifne          116
     111: aload         9
     113: goto          237
     116: aload         9
     118: checkcast     #201                // class kotlin/Pair
     121: astore        10
     123: iconst_0
     124: istore        12
     126: aload         10
     128: invokevirtual #204                // Method kotlin/Pair.component2:()Ljava/lang/Object;
     131: checkcast     #120                // class Job
     134: astore        13
     136: aload         13
     138: invokevirtual #208                // Method Job.getF:()Lkotlin/jvm/functions/Function1;
     141: lload_2
     142: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     145: invokeinterface #218,  2          // InterfaceMethod kotlin/jvm/functions/Function1.invoke:(Ljava/lang/Object;)Ljava/lang/Object;
     150: checkcast     #88                 // class java/lang/Number
     153: invokevirtual #221                // Method java/lang/Number.longValue:()J
     156: lstore        10
     158: aload         8
     160: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     165: astore        12
     167: aload         12
     169: checkcast     #201                // class kotlin/Pair
     172: astore        13
     174: iconst_0
     175: istore        15
     177: aload         13
     179: invokevirtual #204                // Method kotlin/Pair.component2:()Ljava/lang/Object;
     182: checkcast     #120                // class Job
     185: astore        17
     187: aload         17
     189: invokevirtual #208                // Method Job.getF:()Lkotlin/jvm/functions/Function1;
     192: lload_2
     193: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     196: invokeinterface #218,  2          // InterfaceMethod kotlin/jvm/functions/Function1.invoke:(Ljava/lang/Object;)Ljava/lang/Object;
     201: checkcast     #88                 // class java/lang/Number
     204: invokevirtual #221                // Method java/lang/Number.longValue:()J
     207: lstore        13
     209: lload         10
     211: lload         13
     213: lcmp
     214: ifle          225
     217: aload         12
     219: astore        9
     221: lload         13
     223: lstore        10
     225: aload         8
     227: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     232: ifne          158
     235: aload         9
     237: checkcast     #201                // class kotlin/Pair
     240: invokevirtual #224                // Method kotlin/Pair.getFirst:()Ljava/lang/Object;
     243: checkcast     #88                 // class java/lang/Number
     246: invokevirtual #92                 // Method java/lang/Number.intValue:()I
     249: istore        5
     251: aload_1
     252: invokevirtual #165                // Method Block.getJobs:()Ljava/util/List;
     255: iload         5
     257: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     262: checkcast     #120                // class Job
     265: astore        6
     267: aload_1
     268: invokevirtual #165                // Method Block.getJobs:()Ljava/util/List;
     271: iload         5
     273: invokeinterface #231,  2          // InterfaceMethod java/util/List.remove:(I)Ljava/lang/Object;
     278: pop
     279: aload_1
     280: invokevirtual #165                // Method Block.getJobs:()Ljava/util/List;
     283: invokestatic  #233                // Method createBlocks:(Ljava/util/List;)Ljava/util/List;
     286: astore        7
     288: aload         7
     290: invokeinterface #236,  1          // InterfaceMethod java/util/List.isEmpty:()Z
     295: ifeq          360
     298: aload         6
     300: invokevirtual #239                // Method Job.getTimes:()Ljava/util/List;
     303: iconst_2
     304: anewarray     #210                // class java/lang/Long
     307: astore        8
     309: aload         8
     311: iconst_0
     312: aload_1
     313: invokevirtual #242                // Method Block.getStart:()J
     316: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     319: aastore
     320: aload         8
     322: iconst_1
     323: aload_1
     324: invokevirtual #130                // Method Block.getEnd:()J
     327: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     330: aastore
     331: aload         8
     333: invokestatic  #244                // Method addAll:(Ljava/util/List;[Ljava/lang/Object;)Z
     336: pop
     337: aload         6
     339: invokevirtual #208                // Method Job.getF:()Lkotlin/jvm/functions/Function1;
     342: lload_2
     343: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     346: invokeinterface #218,  2          // InterfaceMethod kotlin/jvm/functions/Function1.invoke:(Ljava/lang/Object;)Ljava/lang/Object;
     351: checkcast     #88                 // class java/lang/Number
     354: invokevirtual #221                // Method java/lang/Number.longValue:()J
     357: goto          725
     360: aload_1
     361: invokevirtual #242                // Method Block.getStart:()J
     364: aload         7
     366: invokestatic  #247                // Method kotlin/collections/CollectionsKt.first:(Ljava/util/List;)Ljava/lang/Object;
     369: checkcast     #126                // class Block
     372: invokevirtual #242                // Method Block.getStart:()J
     375: lcmp
     376: ifge          425
     379: aload         6
     381: invokevirtual #239                // Method Job.getTimes:()Ljava/util/List;
     384: iconst_2
     385: anewarray     #210                // class java/lang/Long
     388: astore        8
     390: aload         8
     392: iconst_0
     393: aload_1
     394: invokevirtual #242                // Method Block.getStart:()J
     397: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     400: aastore
     401: aload         8
     403: iconst_1
     404: aload         7
     406: invokestatic  #247                // Method kotlin/collections/CollectionsKt.first:(Ljava/util/List;)Ljava/lang/Object;
     409: checkcast     #126                // class Block
     412: invokevirtual #242                // Method Block.getStart:()J
     415: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     418: aastore
     419: aload         8
     421: invokestatic  #244                // Method addAll:(Ljava/util/List;[Ljava/lang/Object;)Z
     424: pop
     425: aload         7
     427: checkcast     #40                 // class java/lang/Iterable
     430: invokestatic  #44                 // Method kotlin/collections/CollectionsKt.asSequence:(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
     433: iconst_2
     434: iconst_0
     435: iconst_0
     436: bipush        6
     438: aconst_null
     439: invokestatic  #251                // Method kotlin/sequences/SequencesKt.windowed$default:(Lkotlin/sequences/Sequence;IIZILjava/lang/Object;)Lkotlin/sequences/Sequence;
     442: invokedynamic #259,  0            // InvokeDynamic #3:invoke:()Lkotlin/jvm/functions/Function1;
     447: invokestatic  #186                // Method kotlin/sequences/SequencesKt.map:(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
     450: invokedynamic #265,  0            // InvokeDynamic #4:invoke:()Lkotlin/jvm/functions/Function1;
     455: invokestatic  #70                 // Method kotlin/sequences/SequencesKt.filter:(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
     458: astore        8
     460: nop
     461: iconst_0
     462: istore        9
     464: aload         8
     466: invokeinterface #76,  1           // InterfaceMethod kotlin/sequences/Sequence.iterator:()Ljava/util/Iterator;
     471: astore        10
     473: aload         10
     475: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     480: ifeq          525
     483: aload         10
     485: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     490: astore        12
     492: aload         12
     494: checkcast     #201                // class kotlin/Pair
     497: astore        13
     499: iconst_0
     500: istore        15
     502: aload         6
     504: invokevirtual #239                // Method Job.getTimes:()Ljava/util/List;
     507: aload         13
     509: invokestatic  #271                // Method kotlin/TuplesKt.toList:(Lkotlin/Pair;)Ljava/util/List;
     512: checkcast     #9                  // class java/util/Collection
     515: invokeinterface #274,  2          // InterfaceMethod java/util/List.addAll:(Ljava/util/Collection;)Z
     520: pop
     521: nop
     522: goto          473
     525: nop
     526: aload_1
     527: invokevirtual #130                // Method Block.getEnd:()J
     530: aload         7
     532: invokestatic  #136                // Method kotlin/collections/CollectionsKt.last:(Ljava/util/List;)Ljava/lang/Object;
     535: checkcast     #126                // class Block
     538: invokevirtual #130                // Method Block.getEnd:()J
     541: lcmp
     542: ifle          591
     545: aload         6
     547: invokevirtual #239                // Method Job.getTimes:()Ljava/util/List;
     550: iconst_2
     551: anewarray     #210                // class java/lang/Long
     554: astore        8
     556: aload         8
     558: iconst_0
     559: aload         7
     561: invokestatic  #136                // Method kotlin/collections/CollectionsKt.last:(Ljava/util/List;)Ljava/lang/Object;
     564: checkcast     #126                // class Block
     567: invokevirtual #130                // Method Block.getEnd:()J
     570: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     573: aastore
     574: aload         8
     576: iconst_1
     577: aload_1
     578: invokevirtual #130                // Method Block.getEnd:()J
     581: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     584: aastore
     585: aload         8
     587: invokestatic  #244                // Method addAll:(Ljava/util/List;[Ljava/lang/Object;)Z
     590: pop
     591: aload         6
     593: invokevirtual #208                // Method Job.getF:()Lkotlin/jvm/functions/Function1;
     596: lload_2
     597: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     600: invokeinterface #218,  2          // InterfaceMethod kotlin/jvm/functions/Function1.invoke:(Ljava/lang/Object;)Ljava/lang/Object;
     605: checkcast     #88                 // class java/lang/Number
     608: invokevirtual #221                // Method java/lang/Number.longValue:()J
     611: lstore        8
     613: aload         7
     615: checkcast     #40                 // class java/lang/Iterable
     618: invokeinterface #118,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     623: astore        12
     625: aload         12
     627: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     632: ifne          643
     635: new           #198                // class java/util/NoSuchElementException
     638: dup
     639: invokespecial #199                // Method java/util/NoSuchElementException."<init>":()V
     642: athrow
     643: aload         12
     645: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     650: checkcast     #126                // class Block
     653: astore        13
     655: iconst_0
     656: istore        15
     658: aload_0
     659: aload         13
     661: invokestatic  #276                // Method decompose:(Ljava/util/List;LBlock;)J
     664: lstore        13
     666: aload         12
     668: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     673: ifeq          714
     676: aload         12
     678: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     683: checkcast     #126                // class Block
     686: astore        15
     688: iconst_0
     689: istore        17
     691: aload_0
     692: aload         15
     694: invokestatic  #276                // Method decompose:(Ljava/util/List;LBlock;)J
     697: lstore        15
     699: lload         13
     701: lload         15
     703: lcmp
     704: ifge          666
     707: lload         15
     709: lstore        13
     711: goto          666
     714: lload         13
     716: lstore        10
     718: lload         8
     720: lload         10
     722: invokestatic  #282                // Method java/lang/Math.max:(JJ)J
     725: lreturn

  public static final long schedule1PrecPmtnRFMax(java.util.List<Job>, java.util.List<? extends java.util.List<java.lang.Integer>>, java.util.List<? extends java.util.List<java.lang.Integer>>);
    Code:
       0: aload_0
       1: ldc_w         #304                // String jobs
       4: invokestatic  #310                // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       7: aload_1
       8: ldc_w         #311                // String edges
      11: invokestatic  #310                // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
      14: aload_2
      15: ldc_w         #312                // String reverseEdges
      18: invokestatic  #310                // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
      21: aload_0
      22: aload_1
      23: aload_2
      24: invokestatic  #314                // Method topologicalSort:(Ljava/util/List;Ljava/util/List;Ljava/util/List;)Ljava/util/List;
      27: astore_3
      28: aload_3
      29: invokestatic  #317                // Method kotlin/collections/CollectionsKt.asReversed:(Ljava/util/List;)Ljava/util/List;
      32: checkcast     #40                 // class java/lang/Iterable
      35: astore        4
      37: iconst_0
      38: istore        5
      40: aload         4
      42: invokeinterface #118,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      47: astore        6
      49: aload         6
      51: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      56: ifeq          182
      59: aload         6
      61: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      66: astore        8
      68: aload         8
      70: checkcast     #120                // class Job
      73: astore        10
      75: iconst_0
      76: istore        11
      78: aload_1
      79: aload         10
      81: invokevirtual #320                // Method Job.getIndex:()I
      84: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      89: checkcast     #40                 // class java/lang/Iterable
      92: invokestatic  #44                 // Method kotlin/collections/CollectionsKt.asSequence:(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
      95: aload_0
      96: invokedynamic #330,  0            // InvokeDynamic #5:invoke:(Ljava/util/List;)Lkotlin/jvm/functions/Function1;
     101: invokestatic  #186                // Method kotlin/sequences/SequencesKt.map:(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
     104: astore        12
     106: nop
     107: iconst_0
     108: istore        13
     110: aload         12
     112: invokeinterface #76,  1           // InterfaceMethod kotlin/sequences/Sequence.iterator:()Ljava/util/Iterator;
     117: astore        14
     119: aload         14
     121: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     126: ifeq          176
     129: aload         14
     131: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     136: astore        15
     138: aload         15
     140: checkcast     #120                // class Job
     143: astore        16
     145: iconst_0
     146: istore        17
     148: aload         16
     150: aload         16
     152: invokevirtual #133                // Method Job.getRelease:()J
     155: aload         10
     157: invokevirtual #133                // Method Job.getRelease:()J
     160: aload         10
     162: invokevirtual #333                // Method Job.getTime:()J
     165: ladd
     166: invokestatic  #282                // Method java/lang/Math.max:(JJ)J
     169: invokevirtual #337                // Method Job.setRelease:(J)V
     172: nop
     173: goto          119
     176: nop
     177: nop
     178: nop
     179: goto          49
     182: nop
     183: aload_3
     184: checkcast     #40                 // class java/lang/Iterable
     187: astore        4
     189: iconst_0
     190: istore        5
     192: aload         4
     194: new           #339                // class H1PrecPmtnRFMaxKt$schedule1PrecPmtnRFMax$$inlined$sortedBy$1
     197: dup
     198: invokespecial #340                // Method H1PrecPmtnRFMaxKt$schedule1PrecPmtnRFMax$$inlined$sortedBy$1."<init>":()V
     201: checkcast     #342                // class java/util/Comparator
     204: invokestatic  #346                // Method kotlin/collections/CollectionsKt.sortedWith:(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/List;
     207: invokestatic  #233                // Method createBlocks:(Ljava/util/List;)Ljava/util/List;
     210: checkcast     #40                 // class java/lang/Iterable
     213: invokeinterface #118,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     218: astore        5
     220: aload         5
     222: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     227: ifne          238
     230: new           #198                // class java/util/NoSuchElementException
     233: dup
     234: invokespecial #199                // Method java/util/NoSuchElementException."<init>":()V
     237: athrow
     238: aload         5
     240: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     245: checkcast     #126                // class Block
     248: astore        6
     250: iconst_0
     251: istore        8
     253: aload_1
     254: aload         6
     256: invokestatic  #276                // Method decompose:(Ljava/util/List;LBlock;)J
     259: lstore        6
     261: aload         5
     263: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     268: ifeq          309
     271: aload         5
     273: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     278: checkcast     #126                // class Block
     281: astore        8
     283: iconst_0
     284: istore        10
     286: aload_1
     287: aload         8
     289: invokestatic  #276                // Method decompose:(Ljava/util/List;LBlock;)J
     292: lstore        8
     294: lload         6
     296: lload         8
     298: lcmp
     299: ifge          261
     302: lload         8
     304: lstore        6
     306: goto          261
     309: lload         6
     311: lreturn

  public static final void main();
    Code:
       0: new           #357                // class java/util/Scanner
       3: dup
       4: new           #359                // class java/io/File
       7: dup
       8: ldc_w         #361                // String p1precpmtnrifmax.in
      11: invokespecial #364                // Method java/io/File."<init>":(Ljava/lang/String;)V
      14: astore_1
      15: getstatic     #370                // Field kotlin/text/Charsets.UTF_8:Ljava/nio/charset/Charset;
      18: astore_2
      19: sipush        8192
      22: istore_3
      23: aload_1
      24: astore        4
      26: new           #372                // class java/io/InputStreamReader
      29: dup
      30: new           #374                // class java/io/FileInputStream
      33: dup
      34: aload         4
      36: invokespecial #377                // Method java/io/FileInputStream."<init>":(Ljava/io/File;)V
      39: checkcast     #379                // class java/io/InputStream
      42: aload_2
      43: invokespecial #382                // Method java/io/InputStreamReader."<init>":(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
      46: checkcast     #384                // class java/io/Reader
      49: astore        4
      51: aload         4
      53: instanceof    #386                // class java/io/BufferedReader
      56: ifeq          67
      59: aload         4
      61: checkcast     #386                // class java/io/BufferedReader
      64: goto          77
      67: new           #386                // class java/io/BufferedReader
      70: dup
      71: aload         4
      73: iload_3
      74: invokespecial #389                // Method java/io/BufferedReader."<init>":(Ljava/io/Reader;I)V
      77: checkcast     #391                // class java/lang/Readable
      80: invokespecial #394                // Method java/util/Scanner."<init>":(Ljava/lang/Readable;)V
      83: astore_0
      84: aload_0
      85: invokevirtual #397                // Method java/util/Scanner.nextInt:()I
      88: istore_1
      89: new           #23                 // class java/util/ArrayList
      92: dup
      93: iload_1
      94: invokespecial #400                // Method java/util/ArrayList."<init>":(I)V
      97: astore_3
      98: iconst_0
      99: istore        4
     101: iload         4
     103: iload_1
     104: if_icmpge     141
     107: iload         4
     109: istore        5
     111: aload_3
     112: iload         5
     114: istore        6
     116: astore        27
     118: iconst_0
     119: istore        7
     121: aload_0
     122: invokevirtual #403                // Method java/util/Scanner.nextLong:()J
     125: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     128: aload         27
     130: swap
     131: invokevirtual #404                // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
     134: pop
     135: iinc          4, 1
     138: goto          101
     141: aload_3
     142: checkcast     #29                 // class java/util/List
     145: astore_2
     146: new           #23                 // class java/util/ArrayList
     149: dup
     150: iload_1
     151: invokespecial #400                // Method java/util/ArrayList."<init>":(I)V
     154: astore        4
     156: iconst_0
     157: istore        5
     159: iload         5
     161: iload_1
     162: if_icmpge     200
     165: iload         5
     167: istore        6
     169: aload         4
     171: iload         6
     173: istore        7
     175: astore        27
     177: iconst_0
     178: istore        8
     180: aload_0
     181: invokevirtual #403                // Method java/util/Scanner.nextLong:()J
     184: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     187: aload         27
     189: swap
     190: invokevirtual #404                // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
     193: pop
     194: iinc          5, 1
     197: goto          159
     200: aload         4
     202: checkcast     #29                 // class java/util/List
     205: astore_3
     206: aload_0
     207: invokevirtual #397                // Method java/util/Scanner.nextInt:()I
     210: istore        4
     212: new           #23                 // class java/util/ArrayList
     215: dup
     216: iload_1
     217: invokespecial #400                // Method java/util/ArrayList."<init>":(I)V
     220: astore        6
     222: iconst_0
     223: istore        7
     225: iload         7
     227: iload_1
     228: if_icmpge     270
     231: iload         7
     233: istore        8
     235: aload         6
     237: iload         8
     239: istore        9
     241: astore        27
     243: iconst_0
     244: istore        10
     246: new           #23                 // class java/util/ArrayList
     249: dup
     250: invokespecial #27                 // Method java/util/ArrayList."<init>":()V
     253: checkcast     #29                 // class java/util/List
     256: nop
     257: aload         27
     259: swap
     260: invokevirtual #404                // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
     263: pop
     264: iinc          7, 1
     267: goto          225
     270: aload         6
     272: checkcast     #29                 // class java/util/List
     275: astore        5
     277: new           #23                 // class java/util/ArrayList
     280: dup
     281: iload_1
     282: invokespecial #400                // Method java/util/ArrayList."<init>":(I)V
     285: astore        7
     287: iconst_0
     288: istore        8
     290: iload         8
     292: iload_1
     293: if_icmpge     335
     296: iload         8
     298: istore        9
     300: aload         7
     302: iload         9
     304: istore        10
     306: astore        27
     308: iconst_0
     309: istore        11
     311: new           #23                 // class java/util/ArrayList
     314: dup
     315: invokespecial #27                 // Method java/util/ArrayList."<init>":()V
     318: checkcast     #29                 // class java/util/List
     321: nop
     322: aload         27
     324: swap
     325: invokevirtual #404                // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
     328: pop
     329: iinc          8, 1
     332: goto          290
     335: aload         7
     337: checkcast     #29                 // class java/util/List
     340: astore        6
     342: iconst_0
     343: istore        7
     345: iload         7
     347: iload         4
     349: if_icmpge     520
     352: iload         7
     354: istore        8
     356: iconst_0
     357: istore        9
     359: iconst_2
     360: istore        10
     362: new           #23                 // class java/util/ArrayList
     365: dup
     366: iload         10
     368: invokespecial #400                // Method java/util/ArrayList."<init>":(I)V
     371: astore        11
     373: iconst_0
     374: istore        12
     376: iload         12
     378: iload         10
     380: if_icmpge     420
     383: iload         12
     385: istore        13
     387: aload         11
     389: iload         13
     391: istore        14
     393: astore        15
     395: iconst_0
     396: istore        16
     398: aload_0
     399: invokevirtual #397                // Method java/util/Scanner.nextInt:()I
     402: iconst_1
     403: isub
     404: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
     407: aload         15
     409: swap
     410: invokevirtual #404                // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
     413: pop
     414: iinc          12, 1
     417: goto          376
     420: aload         11
     422: checkcast     #29                 // class java/util/List
     425: astore        17
     427: aload         17
     429: iconst_0
     430: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     435: checkcast     #88                 // class java/lang/Number
     438: invokevirtual #92                 // Method java/lang/Number.intValue:()I
     441: istore        10
     443: aload         17
     445: iconst_1
     446: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     451: checkcast     #88                 // class java/lang/Number
     454: invokevirtual #92                 // Method java/lang/Number.intValue:()I
     457: istore        11
     459: iload         11
     461: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
     464: astore        13
     466: aload         5
     468: iload         10
     470: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     475: checkcast     #9                  // class java/util/Collection
     478: aload         13
     480: invokeinterface #410,  2          // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
     485: pop
     486: iload         10
     488: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
     491: astore        13
     493: aload         6
     495: iload         11
     497: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     502: checkcast     #9                  // class java/util/Collection
     505: aload         13
     507: invokeinterface #410,  2          // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
     512: pop
     513: nop
     514: iinc          7, 1
     517: goto          345
     520: new           #23                 // class java/util/ArrayList
     523: dup
     524: iload_1
     525: invokespecial #400                // Method java/util/ArrayList."<init>":(I)V
     528: astore        8
     530: iconst_0
     531: istore        9
     533: iload         9
     535: iload_1
     536: if_icmpge     733
     539: iload         9
     541: istore        10
     543: aload         8
     545: iload         10
     547: istore        11
     549: astore        27
     551: iconst_0
     552: istore        12
     554: iconst_3
     555: istore        13
     557: new           #23                 // class java/util/ArrayList
     560: dup
     561: iload         13
     563: invokespecial #400                // Method java/util/ArrayList."<init>":(I)V
     566: astore        14
     568: iconst_0
     569: istore        15
     571: iload         15
     573: iload         13
     575: if_icmpge     613
     578: iload         15
     580: istore        16
     582: aload         14
     584: iload         16
     586: istore        17
     588: astore        18
     590: iconst_0
     591: istore        19
     593: aload_0
     594: invokevirtual #403                // Method java/util/Scanner.nextLong:()J
     597: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
     600: aload         18
     602: swap
     603: invokevirtual #404                // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
     606: pop
     607: iinc          15, 1
     610: goto          571
     613: aload         14
     615: checkcast     #29                 // class java/util/List
     618: astore        20
     620: aload         20
     622: iconst_0
     623: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     628: checkcast     #88                 // class java/lang/Number
     631: invokevirtual #221                // Method java/lang/Number.longValue:()J
     634: lstore        21
     636: aload         20
     638: iconst_1
     639: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     644: checkcast     #88                 // class java/lang/Number
     647: invokevirtual #221                // Method java/lang/Number.longValue:()J
     650: lstore        23
     652: aload         20
     654: iconst_2
     655: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     660: checkcast     #88                 // class java/lang/Number
     663: invokevirtual #221                // Method java/lang/Number.longValue:()J
     666: lstore        25
     668: new           #120                // class Job
     671: dup
     672: aload_2
     673: iload         11
     675: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     680: checkcast     #88                 // class java/lang/Number
     683: invokevirtual #221                // Method java/lang/Number.longValue:()J
     686: aload_3
     687: iload         11
     689: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     694: checkcast     #88                 // class java/lang/Number
     697: invokevirtual #221                // Method java/lang/Number.longValue:()J
     700: iload         11
     702: lload         21
     704: lload         23
     706: lload         25
     708: invokedynamic #420,  0            // InvokeDynamic #6:invoke:(JJJ)Lkotlin/jvm/functions/Function1;
     713: aconst_null
     714: bipush        16
     716: aconst_null
     717: invokespecial #423                // Method Job."<init>":(JJILkotlin/jvm/functions/Function1;Ljava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
     720: aload         27
     722: swap
     723: invokevirtual #404                // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
     726: pop
     727: iinc          9, 1
     730: goto          533
     733: aload         8
     735: checkcast     #29                 // class java/util/List
     738: astore        7
     740: aload         7
     742: aload         5
     744: aload         6
     746: invokestatic  #425                // Method schedule1PrecPmtnRFMax:(Ljava/util/List;Ljava/util/List;Ljava/util/List;)J
     749: lstore        8
     751: new           #359                // class java/io/File
     754: dup
     755: ldc_w         #427                // String p1precpmtnrifmax.out
     758: invokespecial #364                // Method java/io/File."<init>":(Ljava/lang/String;)V
     761: astore        10
     763: getstatic     #370                // Field kotlin/text/Charsets.UTF_8:Ljava/nio/charset/Charset;
     766: astore        11
     768: new           #429                // class java/io/PrintWriter
     771: dup
     772: aload         10
     774: astore        12
     776: sipush        8192
     779: istore        13
     781: aload         12
     783: astore        14
     785: new           #431                // class java/io/OutputStreamWriter
     788: dup
     789: new           #433                // class java/io/FileOutputStream
     792: dup
     793: aload         14
     795: invokespecial #434                // Method java/io/FileOutputStream."<init>":(Ljava/io/File;)V
     798: checkcast     #436                // class java/io/OutputStream
     801: aload         11
     803: invokespecial #439                // Method java/io/OutputStreamWriter."<init>":(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
     806: checkcast     #441                // class java/io/Writer
     809: astore        14
     811: aload         14
     813: instanceof    #443                // class java/io/BufferedWriter
     816: ifeq          827
     819: aload         14
     821: checkcast     #443                // class java/io/BufferedWriter
     824: goto          838
     827: new           #443                // class java/io/BufferedWriter
     830: dup
     831: aload         14
     833: iload         13
     835: invokespecial #446                // Method java/io/BufferedWriter."<init>":(Ljava/io/Writer;I)V
     838: checkcast     #441                // class java/io/Writer
     841: invokespecial #449                // Method java/io/PrintWriter."<init>":(Ljava/io/Writer;)V
     844: checkcast     #451                // class java/io/Closeable
     847: astore        10
     849: aconst_null
     850: astore        11
     852: nop
     853: aload         10
     855: checkcast     #429                // class java/io/PrintWriter
     858: astore        12
     860: iconst_0
     861: istore        13
     863: aload         12
     865: lload         8
     867: invokevirtual #454                // Method java/io/PrintWriter.println:(J)V
     870: aload         7
     872: checkcast     #40                 // class java/lang/Iterable
     875: astore        14
     877: iconst_0
     878: istore        15
     880: aload         14
     882: invokeinterface #118,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     887: astore        16
     889: aload         16
     891: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     896: ifeq          1047
     899: aload         16
     901: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     906: astore        17
     908: aload         17
     910: checkcast     #120                // class Job
     913: astore        18
     915: iconst_0
     916: istore        19
     918: aload         12
     920: new           #456                // class java/lang/StringBuilder
     923: dup
     924: invokespecial #457                // Method java/lang/StringBuilder."<init>":()V
     927: aload         18
     929: invokevirtual #239                // Method Job.getTimes:()Ljava/util/List;
     932: invokeinterface #460,  1          // InterfaceMethod java/util/List.size:()I
     937: iconst_2
     938: idiv
     939: invokevirtual #464                // Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
     942: bipush        32
     944: invokevirtual #467                // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
     947: invokevirtual #471                // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
     950: invokevirtual #474                // Method java/io/PrintWriter.write:(Ljava/lang/String;)V
     953: aload         18
     955: invokevirtual #239                // Method Job.getTimes:()Ljava/util/List;
     958: checkcast     #40                 // class java/lang/Iterable
     961: astore        20
     963: iconst_0
     964: istore        21
     966: aload         20
     968: invokeinterface #118,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     973: astore        22
     975: aload         22
     977: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     982: ifeq          1036
     985: aload         22
     987: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     992: astore        23
     994: aload         23
     996: checkcast     #88                 // class java/lang/Number
     999: invokevirtual #221                // Method java/lang/Number.longValue:()J
    1002: lstore        24
    1004: iconst_0
    1005: istore        26
    1007: aload         12
    1009: new           #456                // class java/lang/StringBuilder
    1012: dup
    1013: invokespecial #457                // Method java/lang/StringBuilder."<init>":()V
    1016: lload         24
    1018: invokevirtual #477                // Method java/lang/StringBuilder.append:(J)Ljava/lang/StringBuilder;
    1021: bipush        32
    1023: invokevirtual #467                // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
    1026: invokevirtual #471                // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
    1029: invokevirtual #480                // Method java/io/PrintWriter.print:(Ljava/lang/String;)V
    1032: nop
    1033: goto          975
    1036: nop
    1037: aload         12
    1039: invokevirtual #482                // Method java/io/PrintWriter.println:()V
    1042: nop
    1043: nop
    1044: goto          889
    1047: nop
    1048: nop
    1049: getstatic     #488                // Field kotlin/Unit.INSTANCE:Lkotlin/Unit;
    1052: astore        12
    1054: aload         10
    1056: aload         11
    1058: invokestatic  #494                // Method kotlin/io/CloseableKt.closeFinally:(Ljava/io/Closeable;Ljava/lang/Throwable;)V
    1061: goto          1085
    1064: astore        13
    1066: aload         13
    1068: astore        11
    1070: aload         13
    1072: athrow
    1073: astore        13
    1075: aload         10
    1077: aload         11
    1079: invokestatic  #494                // Method kotlin/io/CloseableKt.closeFinally:(Ljava/io/Closeable;Ljava/lang/Throwable;)V
    1082: aload         13
    1084: athrow
    1085: return
    Exception table:
       from    to  target type
         852  1054  1064   Class java/lang/Throwable
         852  1054  1073   any
        1064  1073  1073   any
        1073  1075  1073   any

  public static void main(java.lang.String[]);
    Code:
       0: invokestatic  #524                // Method main:()V
       3: return

  private static final boolean topologicalSort$depthFirstSearch$lambda$0(java.util.Set, int);
    Code:
       0: aload_0
       1: iload_1
       2: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
       5: invokeinterface #531,  2          // InterfaceMethod java/util/Set.contains:(Ljava/lang/Object;)Z
      10: ifne          17
      13: iconst_1
      14: goto          18
      17: iconst_0
      18: ireturn

  private static final void topologicalSort$depthFirstSearch(java.util.List<? extends java.util.List<java.lang.Integer>>, java.util.List<Job>, int, java.util.List<Job>, java.util.Set<java.lang.Integer>);
    Code:
       0: aload         4
       2: iload_2
       3: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
       6: invokeinterface #531,  2          // InterfaceMethod java/util/Set.contains:(Ljava/lang/Object;)Z
      11: ifeq          15
      14: return
      15: iload_2
      16: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
      19: astore        6
      21: aload         4
      23: checkcast     #9                  // class java/util/Collection
      26: aload         6
      28: invokeinterface #410,  2          // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
      33: pop
      34: aload_0
      35: iload_2
      36: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      41: checkcast     #40                 // class java/lang/Iterable
      44: invokestatic  #44                 // Method kotlin/collections/CollectionsKt.asSequence:(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
      47: aload         4
      49: invokedynamic #539,  0            // InvokeDynamic #7:invoke:(Ljava/util/Set;)Lkotlin/jvm/functions/Function1;
      54: invokestatic  #70                 // Method kotlin/sequences/SequencesKt.filter:(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
      57: astore        5
      59: nop
      60: iconst_0
      61: istore        6
      63: aload         5
      65: invokeinterface #76,  1           // InterfaceMethod kotlin/sequences/Sequence.iterator:()Ljava/util/Iterator;
      70: astore        7
      72: aload         7
      74: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      79: ifeq          118
      82: aload         7
      84: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      89: astore        8
      91: aload         8
      93: checkcast     #88                 // class java/lang/Number
      96: invokevirtual #92                 // Method java/lang/Number.intValue:()I
      99: istore        9
     101: iconst_0
     102: istore        10
     104: aload_0
     105: aload_1
     106: iload         9
     108: aload_3
     109: aload         4
     111: invokestatic  #96                 // Method topologicalSort$depthFirstSearch:(Ljava/util/List;Ljava/util/List;ILjava/util/List;Ljava/util/Set;)V
     114: nop
     115: goto          72
     118: nop
     119: aload_3
     120: checkcast     #9                  // class java/util/Collection
     123: aload_1
     124: iload_2
     125: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     130: invokeinterface #410,  2          // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
     135: pop
     136: return

  private static final boolean topologicalSort$lambda$2(java.util.Set, java.util.List, int);
    Code:
       0: aload_0
       1: iload_2
       2: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
       5: invokeinterface #531,  2          // InterfaceMethod java/util/Set.contains:(Ljava/lang/Object;)Z
      10: ifne          35
      13: aload_1
      14: iload_2
      15: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      20: checkcast     #29                 // class java/util/List
      23: invokeinterface #236,  1          // InterfaceMethod java/util/List.isEmpty:()Z
      28: ifeq          35
      31: iconst_1
      32: goto          36
      35: iconst_0
      36: ireturn

  private static final kotlin.Pair decompose$lambda$8(Block, int);
    Code:
       0: iload_1
       1: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
       4: aload_0
       5: invokevirtual #165                // Method Block.getJobs:()Ljava/util/List;
       8: iload_1
       9: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      14: invokestatic  #545                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      17: areturn

  private static final boolean decompose$lambda$11(java.util.List, java.util.Set, kotlin.Pair);
    Code:
       0: aload_2
       1: ldc_w         #548                // String <destruct>
       4: invokestatic  #310                // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       7: aload_2
       8: invokevirtual #204                // Method kotlin/Pair.component2:()Ljava/lang/Object;
      11: checkcast     #120                // class Job
      14: astore_3
      15: aload_0
      16: aload_3
      17: invokevirtual #320                // Method Job.getIndex:()I
      20: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      25: checkcast     #40                 // class java/lang/Iterable
      28: astore        4
      30: iconst_0
      31: istore        5
      33: aload         4
      35: instanceof    #9                  // class java/util/Collection
      38: ifeq          58
      41: aload         4
      43: checkcast     #9                  // class java/util/Collection
      46: invokeinterface #549,  1          // InterfaceMethod java/util/Collection.isEmpty:()Z
      51: ifeq          58
      54: iconst_1
      55: goto          118
      58: aload         4
      60: invokeinterface #118,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      65: astore        6
      67: aload         6
      69: invokeinterface #82,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      74: ifeq          117
      77: aload         6
      79: invokeinterface #86,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      84: astore        7
      86: aload         7
      88: checkcast     #88                 // class java/lang/Number
      91: invokevirtual #92                 // Method java/lang/Number.intValue:()I
      94: istore        8
      96: iconst_0
      97: istore        9
      99: aload_1
     100: iload         8
     102: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
     105: invokeinterface #531,  2          // InterfaceMethod java/util/Set.contains:(Ljava/lang/Object;)Z
     110: ifeq          67
     113: iconst_0
     114: goto          118
     117: iconst_1
     118: istore        4
     120: iload         4
     122: istore        5
     124: iconst_0
     125: istore        6
     127: aload_1
     128: checkcast     #9                  // class java/util/Collection
     131: aload_3
     132: invokevirtual #320                // Method Job.getIndex:()I
     135: invokestatic  #409                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
     138: invokeinterface #410,  2          // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
     143: pop
     144: nop
     145: iload         4
     147: ireturn

  private static final kotlin.Pair decompose$lambda$13(java.util.List);
    Code:
       0: aload_0
       1: ldc_w         #548                // String <destruct>
       4: invokestatic  #310                // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       7: aload_0
       8: iconst_0
       9: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      14: checkcast     #126                // class Block
      17: astore_1
      18: aload_0
      19: iconst_1
      20: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      25: checkcast     #126                // class Block
      28: astore_2
      29: aload_1
      30: invokevirtual #130                // Method Block.getEnd:()J
      33: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
      36: aload_2
      37: invokevirtual #242                // Method Block.getStart:()J
      40: invokestatic  #214                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
      43: invokestatic  #545                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      46: areturn

  private static final boolean decompose$lambda$14(kotlin.Pair);
    Code:
       0: aload_0
       1: ldc_w         #548                // String <destruct>
       4: invokestatic  #310                // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       7: aload_0
       8: invokevirtual #560                // Method kotlin/Pair.component1:()Ljava/lang/Object;
      11: checkcast     #88                 // class java/lang/Number
      14: invokevirtual #221                // Method java/lang/Number.longValue:()J
      17: lstore_1
      18: aload_0
      19: invokevirtual #204                // Method kotlin/Pair.component2:()Ljava/lang/Object;
      22: checkcast     #88                 // class java/lang/Number
      25: invokevirtual #221                // Method java/lang/Number.longValue:()J
      28: lstore_3
      29: lload_1
      30: lload_3
      31: lcmp
      32: ifge          39
      35: iconst_1
      36: goto          40
      39: iconst_0
      40: ireturn

  private static final Job schedule1PrecPmtnRFMax$lambda$19$lambda$17(java.util.List, int);
    Code:
       0: aload_0
       1: iload_1
       2: invokeinterface #228,  2          // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
       7: checkcast     #120                // class Job
      10: areturn

  private static final long main$lambda$30$lambda$29(long, long, long, long);
    Code:
       0: lload_0
       1: lload         6
       3: lmul
       4: lload         6
       6: lmul
       7: lload_2
       8: lload         6
      10: lmul
      11: ladd
      12: lload         4
      14: ladd
      15: lreturn
}