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

import androidx.compose.runtime.*


@Composable fun Main() {
    Impl.B()
}

interface A {
    @Composable
    fun A(
        default: () -> Float = { 0f },
    ) { }
}

interface B {
    @Composable
    fun B(param: String = "") = Impl.A()
}

interface Combined : A, B
object Impl : Combined

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

@Composable
@FunctionKeyMeta(key = 578291039, startOffset = 48, endOffset = 75)
fun Main(%composer: Composer?, %changed: Int) {
  %composer = %composer.startRestartGroup(<>)
  sourceInformation(%composer, "C(Main)<B()>:Test.kt")
  if (%composer.shouldExecute(%changed != 0, %changed and 0b0001)) {
    if (isTraceInProgress()) {
      traceEventStart(<>, %changed, -1, <>)
    }
    B%default(null, Impl, %composer, 0b00110000, 0b0001)
    if (isTraceInProgress()) {
      traceEventEnd()
    }
  } else {
    %composer.skipToGroupEnd()
  }
  %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
    Main(%composer, updateChangedFlags(%changed or 0b0001))
  }
}
interface A {
  @Composable
  @FunctionKeyMeta(key = 2080335258, startOffset = 111, endOffset = 166)
  open fun A(default: Function0<Float>, %composer: Composer?, %changed: Int) {
    %composer.startReplaceGroup(<>)
    sourceInformation(%composer, "C(A)N(default):Test.kt")
    if (isTraceInProgress()) {
      traceEventStart(<>, %changed, -1, <>)
    }
    if (isTraceInProgress()) {
      traceEventEnd()
    }
    %composer.endReplaceGroup()
  }
  class ComposeDefaultImpls {
    @Composable
    fun A%default(default: Function0<Float>?, %this%: A, %composer: Composer?, %changed: Int, %default: Int) {
      %composer = %composer.startRestartGroup(<>)
      sourceInformation(%composer, "C(A%default)N(default)<{>:Test.kt")
      val %dirty = %changed
      if (%default and 0b0001 != 0) {
        %dirty = %dirty or 0b0110
      } else if (%changed and 0b0110 == 0) {
        %dirty = %dirty or if (%composer.changedInstance(default)) 0b0100 else 0b0010
      }
      if (%changed and 0b00110000 == 0) {
        %dirty = %dirty or if (if (%changed and 0b01000000 == 0) {
          %composer.changed(%this%)
        } else {
          %composer.changedInstance(%this%)
        }
        ) 0b00100000 else 0b00010000
      }
      if (%composer.shouldExecute(%dirty and 0b00010011 != 0b00010010, %dirty and 0b0001)) {
        if (%default and 0b0001 != 0) {
          default = <block>{
            sourceInformationMarkerStart(%composer, <>, "CC(remember):Test.kt#9igjgp")
            val tmp0_group = %composer.cache(false) {
              {
                0.0f
              }
            }
            sourceInformationMarkerEnd(%composer)
            tmp0_group
          }
        }
        if (isTraceInProgress()) {
          traceEventStart(<>, %dirty, -1, <>)
        }
        %this%.A(default as Function0<Float>, %composer, 0b1110 and %dirty or 0b01110000 and %dirty)
        if (isTraceInProgress()) {
          traceEventEnd()
        }
      } else {
        %composer.skipToGroupEnd()
      }
      %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
        A%default(default, %this%, %composer, updateChangedFlags(%changed or 0b0001), %default)
      }
    }
  }
  @Composable
  @JvmSynthetic
  @Deprecated(message = "Binary compatibility stub for default parameters", level = DeprecationLevel.HIDDEN)
  open fun A(default: Function0<Float>?, %composer: Composer?, %changed: Int, %default: Int) {
    return A%default(default, <this>, %composer, %changed, %default)
  }
}
interface B {
  @Composable
  @FunctionKeyMeta(key = 215550777, startOffset = 204, endOffset = 240)
  open fun B(param: String, %composer: Composer?, %changed: Int) {
    %composer.startReplaceGroup(<>)
    sourceInformation(%composer, "C(B)N(param)<A()>:Test.kt")
    if (isTraceInProgress()) {
      traceEventStart(<>, %changed, -1, <>)
    }
    A%default(null, Impl, %composer, 0b00110000, 0b0001)
    if (isTraceInProgress()) {
      traceEventEnd()
    }
    %composer.endReplaceGroup()
  }
  class ComposeDefaultImpls {
    @Composable
    fun B%default(param: String?, %this%: B, %composer: Composer?, %changed: Int, %default: Int) {
      %composer = %composer.startRestartGroup(<>)
      sourceInformation(%composer, "C(B%default)N(param):Test.kt")
      val %dirty = %changed
      if (%default and 0b0001 != 0) {
        %dirty = %dirty or 0b0110
      } else if (%changed and 0b0110 == 0) {
        %dirty = %dirty or if (%composer.changed(param)) 0b0100 else 0b0010
      }
      if (%changed and 0b00110000 == 0) {
        %dirty = %dirty or if (if (%changed and 0b01000000 == 0) {
          %composer.changed(%this%)
        } else {
          %composer.changedInstance(%this%)
        }
        ) 0b00100000 else 0b00010000
      }
      if (%composer.shouldExecute(%dirty and 0b00010011 != 0b00010010, %dirty and 0b0001)) {
        if (%default and 0b0001 != 0) {
          param = ""
        }
        if (isTraceInProgress()) {
          traceEventStart(<>, %dirty, -1, <>)
        }
        %this%.B(param as String, %composer, 0b1110 and %dirty or 0b01110000 and %dirty)
        if (isTraceInProgress()) {
          traceEventEnd()
        }
      } else {
        %composer.skipToGroupEnd()
      }
      %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
        B%default(param, %this%, %composer, updateChangedFlags(%changed or 0b0001), %default)
      }
    }
  }
  @Composable
  @JvmSynthetic
  @Deprecated(message = "Binary compatibility stub for default parameters", level = DeprecationLevel.HIDDEN)
  open fun B(param: String?, %composer: Composer?, %changed: Int, %default: Int) {
    return B%default(param, <this>, %composer, %changed, %default)
  }
}
interface Combined : A, B
@StabilityInferred(parameters = 1)
object Impl : Combined {
  static val %stable: Int = 0
}
