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

import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
import androidx.compose.runtime.key
import androidx.compose.runtime.NonRestartableComposable


@NonRestartableComposable @Composable
fun Example(x: Int): Int {
    return if (x > 0) {
        if (B()) 1
        else if (B()) 2
        else 3
    } else 4
}

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

@NonRestartableComposable
@Composable
@FunctionKeyMeta(key = -170087108, startOffset = 227, endOffset = 350)
fun Example(x: Int, %composer: Composer?, %changed: Int): Int {
  sourceInformationMarkerStart(%composer, <>, "C(Example):Test.kt")
  if (isTraceInProgress()) {
    traceEventStart(<>, %changed, -1, <>)
  }
  val tmp0 = if (x > 0) {
    %composer.startReplaceGroup(<>)
    sourceInformation(%composer, "<B()>,<B()>")
    val tmp2_group = <block>{
      val tmp1_group = if (B(%composer, 0)) 1 else if (B(%composer, 0)) 2 else 3
      tmp1_group
    }
    %composer.endReplaceGroup()
    tmp2_group
  } else {
    %composer.startReplaceGroup(<>)
    %composer.endReplaceGroup()
    4
  }
  if (isTraceInProgress()) {
    traceEventEnd()
  }
  sourceInformationMarkerEnd(%composer)
  return tmp0
}
