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

import androidx.compose.runtime.Composable

@Composable
fun SimpleAnimatedContentSample() {
    @Composable fun Foo() {}

    AnimatedContent(1f) {
        Foo()
    }
}

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

@Composable
@FunctionKeyMeta(key = 2072212184, startOffset = 93, endOffset = 266)
fun SimpleAnimatedContentSample(%composer: Composer?, %changed: Int) {
  %composer = %composer.startRestartGroup(<>)
  sourceInformation(%composer, "C(SimpleAnimatedContentSample)<{>,<Animat...>:Test.kt")
  if (%composer.shouldExecute(%changed != 0, %changed and 0b0001)) {
    if (isTraceInProgress()) {
      traceEventStart(<>, %changed, -1, <>)
    }
    @Composable
    @FunctionKeyMeta(key = -1209627706, startOffset = 157, endOffset = 169)
    fun Foo(%composer: Composer?, %changed: Int) {
      sourceInformationMarkerStart(%composer, <>, "C(Foo):Test.kt")
      if (isTraceInProgress()) {
        traceEventStart(<>, %changed, -1, <>)
      }
      if (isTraceInProgress()) {
        traceEventEnd()
      }
      sourceInformationMarkerEnd(%composer)
    }
    AnimatedContent(1.0f, rememberComposableLambda(<>, false, { it: Float, %composer: Composer?, %changed: Int ->
      sourceInformation(%composer, "C<Foo()>:Test.kt")
      if (isTraceInProgress()) {
        traceEventStart(<>, %changed, -1, <>)
      }
      Foo(%composer, 0)
      if (isTraceInProgress()) {
        traceEventEnd()
      }
    }, %composer, 0b00110110), %composer, 0b00110110)
    if (isTraceInProgress()) {
      traceEventEnd()
    }
  } else {
    %composer.skipToGroupEnd()
  }
  %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
    SimpleAnimatedContentSample(%composer, updateChangedFlags(%changed or 0b0001))
  }
}
