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

import androidx.compose.runtime.Composable


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

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

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

@Composable
@FunctionKeyMeta(key = -253164760, startOffset = 85, endOffset = 96)
context(foo: Foo, bar: Bar)
fun 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 = -1049355520, startOffset = 154, endOffset = 165)
context(foo: Foo, bar: Bar, fooBar: FooBar)
fun 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))
  }
}
