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

import androidx.compose.runtime.*

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

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

@Composable
@FunctionKeyMeta(key = -1794342280, startOffset = 95, endOffset = 188)
fun Test(%composer: Composer?, %changed: Int) {
  %composer = %composer.startRestartGroup(<>)
  if (%composer.shouldExecute(%changed != 0, %changed and 0b0001)) {
    ReceiveValue(if (when {
      state -> {
        %composer.startReplaceGroup(<>)
        val tmp0_group = getCondition(%composer, 0)
        %composer.endReplaceGroup()
        tmp0_group
      }
      else -> {
        %composer.startReplaceGroup(<>)
        %composer.endReplaceGroup()
        false
      }
    }
    ) 0 else 1, %composer, 0)
  } else {
    %composer.skipToGroupEnd()
  }
  %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
    Test(%composer, updateChangedFlags(%changed or 0b0001))
  }
}
