//
// Source
// ------------------------------------------

import androidx.compose.runtime.Composable
import androidx.compose.runtime.NonRestartableComposable
import androidx.compose.runtime.ReadOnlyComposable


class Holder<T> {
    @Composable
    fun Test(vararg x: T) {
        A(x as Int)
    }
}

//
// Transformed IR
// ------------------------------------------

@StabilityInferred(parameters = 2)
class Holder<T>  {
  @Composable
  @FunctionKeyMeta(key = 2062208359, startOffset = 276, endOffset = 349)
  fun Test(x: Array<out T>, %composer: Composer?, %changed: Int) {
    %composer = %composer.startRestartGroup(<>)
    val %dirty = %changed
    %composer.startMovableGroup(<>, x.size)
    %dirty = %dirty or if (%composer.changed(x.size)) 0b0100 else 0
    val <iterator> = x.iterator()
    while (<iterator>.hasNext()) {
      val value = <iterator>.next()
      %dirty = %dirty or if (if (%changed and 0b1000 == 0) {
        %composer.changed(value)
      } else {
        %composer.changedInstance(value)
      }
      ) 0b0100 else 0
    }
    %composer.endMovableGroup()
    if (%dirty and 0b1110 == 0) {
      %dirty = %dirty or 0b0010
    }
    if (%composer.shouldExecute(%dirty and 0b0011 != 0b0010, %dirty and 0b0001)) {
      if (isTraceInProgress()) {
        traceEventStart(<>, %dirty, -1, <>)
      }
      A(x as Int, %composer, 0b1110 and %dirty)
      if (isTraceInProgress()) {
        traceEventEnd()
      }
    } else {
      %composer.skipToGroupEnd()
    }
    val tmp0_rcvr = <this>
    %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
      tmp0_rcvr.Test(x, %composer, updateChangedFlags(%changed or 0b0001))
    }
  }
  static val %stable: Int = 0
}
