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

import androidx.compose.runtime.*

@Composable
fun Test() {
    ReceiveValue(if (state && getCondition()) 0 else 1)
}

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

@Composable
@FunctionKeyMeta(key = -1794342280, startOffset = 96, endOffset = 198)
fun Test(%composer: Composer?, %changed: Int) {
  %composer = %composer.startRestartGroup(<>)
  sourceInformation(%composer, "C(Test)<Receiv...>:Test.kt")
  if (%composer.shouldExecute(%changed != 0, %changed and 0b0001)) {
    if (isTraceInProgress()) {
      traceEventStart(<>, %changed, -1, <>)
    }
    ReceiveValue(if (when {
      state -> {
        %composer.startReplaceGroup(<>)
        sourceInformation(%composer, "<getCon...>")
        val tmp0_group = getCondition(%composer, 0)
        %composer.endReplaceGroup()
        tmp0_group
      }
      else -> {
        %composer.startReplaceGroup(<>)
        %composer.endReplaceGroup()
        false
      }
    }
    ) 0 else 1, %composer, 0)
    if (isTraceInProgress()) {
      traceEventEnd()
    }
  } else {
    %composer.skipToGroupEnd()
  }
  %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
    Test(%composer, updateChangedFlags(%changed or 0b0001))
  }
}
