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

import androidx.compose.runtime.Composable


context(foo: Foo, bar: Bar)
@Composable
fun String.A() { }

context(foo: Foo, bar: Bar, fooBar: FooBar)
@Composable
fun String.B() { }

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

@Composable
@FunctionKeyMeta(key = 1899537321, startOffset = 85, endOffset = 103)
context(foo: Foo, bar: Bar)
fun String.A(%composer: Composer?, %changed: Int) {
  %composer = %composer.startRestartGroup(<>)
  sourceInformation(%composer, "C(A)N(foo,bar):Test.kt")
  if (%composer.shouldExecute(%changed and 0b0001 != 0, %changed and 0b0001)) {
    if (isTraceInProgress()) {
      traceEventStart(<>, %changed, -1, <>)
    }
    if (isTraceInProgress()) {
      traceEventEnd()
    }
  } else {
    %composer.skipToGroupEnd()
  }
  %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
    A(foo, bar, %composer, updateChangedFlags(%changed or 0b0001))
  }
}
@Composable
@FunctionKeyMeta(key = 784865119, startOffset = 161, endOffset = 179)
context(foo: Foo, bar: Bar, fooBar: FooBar)
fun String.B(%composer: Composer?, %changed: Int) {
  %composer = %composer.startRestartGroup(<>)
  sourceInformation(%composer, "C(B)N(foo,bar,fooBar):Test.kt")
  if (%composer.shouldExecute(%changed and 0b0001 != 0, %changed and 0b0001)) {
    if (isTraceInProgress()) {
      traceEventStart(<>, %changed, -1, <>)
    }
    if (isTraceInProgress()) {
      traceEventEnd()
    }
  } else {
    %composer.skipToGroupEnd()
  }
  %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
    B(foo, bar, fooBar, %composer, updateChangedFlags(%changed or 0b0001))
  }
}
