//
// 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 {
    if (x > 0) {
        A()
        return 1
    }
    return 2
}

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

@NonRestartableComposable
@Composable
@FunctionKeyMeta(key = -170087108, startOffset = 227, endOffset = 320)
fun Example(x: Int, %composer: Composer?, %changed: Int): Int {
  %composer.startReplaceGroup(<>)
  sourceInformation(%composer, "C(Example)N(x):Test.kt")
  if (isTraceInProgress()) {
    traceEventStart(<>, %changed, -1, <>)
  }
  if (x > 0) {
    %composer.startReplaceGroup(<>)
    sourceInformation(%composer, "<A()>")
    A(%composer, 0)
    val tmp1_return = 1
    %composer.endReplaceGroup()
    if (isTraceInProgress()) {
      traceEventEnd()
    }
    %composer.endReplaceGroup()
    return tmp1_return
  } else {
    %composer.startReplaceGroup(<>)
    %composer.endReplaceGroup()
  }
  val tmp0 = 2
  if (isTraceInProgress()) {
    traceEventEnd()
  }
  %composer.endReplaceGroup()
  return tmp0
}
