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

import androidx.compose.runtime.Composable


    context(Foo)
    @Composable
    fun Test(a: String, b: @Composable (String) -> Unit) {
        b("yay")
    }

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

@Composable
@ComposableInferredTarget(scheme = "[0[0]]")
@FunctionKeyMeta(key = -374528927, startOffset = 82, endOffset = 159)
context(%context_receiver_0: Foo)
fun Test(a: String, b: Function3<String, Composer, Int, Unit>, %composer: Composer?, %changed: Int) {
  %composer = %composer.startRestartGroup(<>)
  sourceInformation(%composer, "C(Test)N(a,b)<b("yay...>:Test.kt")
  val %dirty = %changed
  if (%changed and 0b000110000000 == 0) {
    %dirty = %dirty or if (%composer.changedInstance(b)) 0b000100000000 else 0b10000000
  }
  if (%composer.shouldExecute(%dirty and 0b10000001 != 0b10000000, %dirty and 0b0001)) {
    if (isTraceInProgress()) {
      traceEventStart(<>, %dirty, -1, <>)
    }
    b("yay", %composer, 0b0110 or 0b01110000 and %dirty shr 0b0011)
    if (isTraceInProgress()) {
      traceEventEnd()
    }
  } else {
    %composer.skipToGroupEnd()
  }
  %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
    Test(%context_receiver_0, a, b, %composer, updateChangedFlags(%changed or 0b0001))
  }
}
