//
// 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) {
    // Composable calls in the result blocks, so we can determine static number of
    // groups executed. This means we put a group around the "then" and the
    // "else" blocks
    if (x > 0) {
        A(a)
    } else {
        A(b)
    }
}

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

@NonRestartableComposable
@Composable
@FunctionKeyMeta(key = -1008580451, startOffset = 227, endOffset = 492)
fun Example(x: Int, %composer: Composer?, %changed: Int) {
  sourceInformationMarkerStart(%composer, <>, "C(Example)N(x):Test.kt")
  if (isTraceInProgress()) {
    traceEventStart(<>, %changed, -1, <>)
  }
  if (x > 0) {
    %composer.startReplaceGroup(<>)
    sourceInformation(%composer, "<A(a)>")
    A(a, %composer, 0)
    %composer.endReplaceGroup()
  } else {
    %composer.startReplaceGroup(<>)
    sourceInformation(%composer, "<A(b)>")
    A(b, %composer, 0)
    %composer.endReplaceGroup()
  }
  if (isTraceInProgress()) {
    traceEventEnd()
  }
  sourceInformationMarkerEnd(%composer)
}
