Skip to content

Instantly share code, notes, and snippets.

@PaulWoitaschek
Created July 17, 2019 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulWoitaschek/3164e15d091b0fd0704c77530a069ddc to your computer and use it in GitHub Desktop.
Save PaulWoitaschek/3164e15d091b0fd0704c77530a069ddc to your computer and use it in GitHub Desktop.
Error:Kotlin: [Internal Error] java.lang.IllegalStateException: Backend Internal error: Exception during code generation
Cause: Back-end (JVM) Internal error: wrong code generated
org.jetbrains.kotlin.codegen.CompilationException Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
L1
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L2
LINENUMBER 32 L2
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L3
DUP
ALOAD 6
IF_ACMPNE L4
L5
LINENUMBER 31 L5
ALOAD 6
ARETURN
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L7
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L4
LINENUMBER 33 L4
POP
L8
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L9
L10
LINENUMBER 35 L10
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L11
L12
LINENUMBER 40 L12
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L13
L14
LINENUMBER 53 L14
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L15
DUP
ALOAD 6
IF_ACMPNE L16
L17
LINENUMBER 31 L17
ALOAD 6
ARETURN
L18
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L16
LINENUMBER 54 L16
POP
L20
L21
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L22
L23
L24
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L25
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L13 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L11 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L9 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L22 0
LOCALVARIABLE result Ljava/lang/Object; L0 L22 1
MAXSTACK = 6
MAXLOCALS = 6
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
L7
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L8
LINENUMBER 32 L8
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L9
DUP
ALOAD 6
IF_ACMPNE L10
L11
LINENUMBER 31 L11
ALOAD 6
ARETURN
L12
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L13
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L10
LINENUMBER 33 L10
POP
L14
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L15
L16
LINENUMBER 35 L16
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L17
L18
LINENUMBER 40 L18
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L19
L20
LINENUMBER 53 L20
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L21
DUP
ALOAD 6
IF_ACMPNE L22
L23
LINENUMBER 31 L23
ALOAD 6
ARETURN
L24
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L25
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L22
LINENUMBER 54 L22
POP
L26
L27
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L28
L29
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L30
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L19 L26 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L17 L26 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L15 L26 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L30 0
LOCALVARIABLE result Ljava/lang/Object; L0 L30 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L7
LINENUMBER 32 L7
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L8
DUP
ALOAD 6
IF_ACMPNE L9
L10
LINENUMBER 31 L10
ALOAD 6
ARETURN
L3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L11
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L9
LINENUMBER 33 L9
POP
L12
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L13
LINENUMBER 35 L13
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L14
LINENUMBER 40 L14
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L15
LINENUMBER 53 L15
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L16
DUP
ALOAD 6
IF_ACMPNE L17
L18
LINENUMBER 31 L18
ALOAD 6
ARETURN
L4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L17
LINENUMBER 54 L17
POP
L20
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L21
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L15 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L14 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L13 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L21 0
LOCALVARIABLE result Ljava/lang/Object; L0 L21 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: AFTER mandatory stack transformations: incorrect bytecode
Element is unknownThe root cause was thrown at: MethodVerifier.kt:28
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
bytecode:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
L1
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L2
LINENUMBER 32 L2
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L3
DUP
ALOAD 6
IF_ACMPNE L4
L5
LINENUMBER 31 L5
ALOAD 6
ARETURN
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L7
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L4
LINENUMBER 33 L4
POP
L8
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L9
L10
LINENUMBER 35 L10
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L11
L12
LINENUMBER 40 L12
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L13
L14
LINENUMBER 53 L14
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L15
DUP
ALOAD 6
IF_ACMPNE L16
L17
LINENUMBER 31 L17
ALOAD 6
ARETURN
L18
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L16
LINENUMBER 54 L16
POP
L20
L21
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L22
L23
L24
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L25
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L13 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L11 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L9 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L22 0
LOCALVARIABLE result Ljava/lang/Object; L0 L22 1
MAXSTACK = 6
MAXLOCALS = 6
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
L1
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L2
LINENUMBER 32 L2
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L3
DUP
ALOAD 6
IF_ACMPNE L4
L5
LINENUMBER 31 L5
ALOAD 6
ARETURN
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L7
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L4
LINENUMBER 33 L4
POP
L8
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L9
L10
LINENUMBER 35 L10
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L11
L12
LINENUMBER 40 L12
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L13
L14
LINENUMBER 53 L14
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L15
DUP
ALOAD 6
IF_ACMPNE L16
L17
LINENUMBER 31 L17
ALOAD 6
ARETURN
L18
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L16
LINENUMBER 54 L16
POP
L20
L21
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L22
L23
L24
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L25
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L13 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L11 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L9 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L22 0
LOCALVARIABLE result Ljava/lang/Object; L0 L22 1
MAXSTACK = 6
MAXLOCALS = 6
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
L7
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L8
LINENUMBER 32 L8
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L9
DUP
ALOAD 6
IF_ACMPNE L10
L11
LINENUMBER 31 L11
ALOAD 6
ARETURN
L12
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L13
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L10
LINENUMBER 33 L10
POP
L14
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L15
L16
LINENUMBER 35 L16
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L17
L18
LINENUMBER 40 L18
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L19
L20
LINENUMBER 53 L20
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L21
DUP
ALOAD 6
IF_ACMPNE L22
L23
LINENUMBER 31 L23
ALOAD 6
ARETURN
L24
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L25
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L22
LINENUMBER 54 L22
POP
L26
L27
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L28
L29
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L30
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L19 L26 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L17 L26 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L15 L26 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L30 0
LOCALVARIABLE result Ljava/lang/Object; L0 L30 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L7
LINENUMBER 32 L7
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L8
DUP
ALOAD 6
IF_ACMPNE L9
L10
LINENUMBER 31 L10
ALOAD 6
ARETURN
L3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L11
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L9
LINENUMBER 33 L9
POP
L12
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L13
LINENUMBER 35 L13
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L14
LINENUMBER 40 L14
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L15
LINENUMBER 53 L15
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L16
DUP
ALOAD 6
IF_ACMPNE L17
L18
LINENUMBER 31 L18
ALOAD 6
ARETURN
L4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L17
LINENUMBER 54 L17
POP
L20
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L21
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L15 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L14 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L13 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L21 0
LOCALVARIABLE result Ljava/lang/Object; L0 L21 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: AFTER mandatory stack transformations: incorrect bytecode
Element is unknownThe root cause was thrown at: MethodVerifier.kt:28
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
File being compiled at position: (31,15) in /home/ph1b/Dev/playground/src/main/java/my/something/t/FlowTest.kt
The root cause was thrown at: TransformationMethodVisitor.kt:92
File being compiled at position: file:///home/ph1b/Dev/playground/src/main/java/my/something/t/FlowTest.kt
The root cause was thrown at: FunctionCodegen.java:1038
at org.jetbrains.kotlin.codegen.CompilationErrorHandler.lambda$static$0(CompilationErrorHandler.java:24)
at org.jetbrains.kotlin.codegen.PackageCodegenImpl.generate(PackageCodegenImpl.java:75)
at org.jetbrains.kotlin.codegen.DefaultCodegenFactory.generatePackage(CodegenFactory.kt:99)
at org.jetbrains.kotlin.codegen.DefaultCodegenFactory.generateModule(CodegenFactory.kt:70)
at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:47)
at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:39)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:455)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:154)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:131)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:54)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:84)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:42)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:103)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$1.invoke(CompileServiceImpl.kt:436)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$1.invoke(CompileServiceImpl.kt:102)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:1023)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:102)
at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:1065)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:1022)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:434)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: wrong code generated
org.jetbrains.kotlin.codegen.CompilationException Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
L1
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L2
LINENUMBER 32 L2
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L3
DUP
ALOAD 6
IF_ACMPNE L4
L5
LINENUMBER 31 L5
ALOAD 6
ARETURN
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L7
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L4
LINENUMBER 33 L4
POP
L8
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L9
L10
LINENUMBER 35 L10
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L11
L12
LINENUMBER 40 L12
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L13
L14
LINENUMBER 53 L14
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L15
DUP
ALOAD 6
IF_ACMPNE L16
L17
LINENUMBER 31 L17
ALOAD 6
ARETURN
L18
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L16
LINENUMBER 54 L16
POP
L20
L21
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L22
L23
L24
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L25
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L13 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L11 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L9 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L22 0
LOCALVARIABLE result Ljava/lang/Object; L0 L22 1
MAXSTACK = 6
MAXLOCALS = 6
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
L7
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L8
LINENUMBER 32 L8
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L9
DUP
ALOAD 6
IF_ACMPNE L10
L11
LINENUMBER 31 L11
ALOAD 6
ARETURN
L12
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L13
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L10
LINENUMBER 33 L10
POP
L14
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L15
L16
LINENUMBER 35 L16
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L17
L18
LINENUMBER 40 L18
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L19
L20
LINENUMBER 53 L20
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L21
DUP
ALOAD 6
IF_ACMPNE L22
L23
LINENUMBER 31 L23
ALOAD 6
ARETURN
L24
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L25
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L22
LINENUMBER 54 L22
POP
L26
L27
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L28
L29
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L30
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L19 L26 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L17 L26 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L15 L26 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L30 0
LOCALVARIABLE result Ljava/lang/Object; L0 L30 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L7
LINENUMBER 32 L7
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L8
DUP
ALOAD 6
IF_ACMPNE L9
L10
LINENUMBER 31 L10
ALOAD 6
ARETURN
L3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L11
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L9
LINENUMBER 33 L9
POP
L12
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L13
LINENUMBER 35 L13
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L14
LINENUMBER 40 L14
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L15
LINENUMBER 53 L15
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L16
DUP
ALOAD 6
IF_ACMPNE L17
L18
LINENUMBER 31 L18
ALOAD 6
ARETURN
L4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L17
LINENUMBER 54 L17
POP
L20
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L21
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L15 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L14 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L13 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L21 0
LOCALVARIABLE result Ljava/lang/Object; L0 L21 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: AFTER mandatory stack transformations: incorrect bytecode
Element is unknownThe root cause was thrown at: MethodVerifier.kt:28
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
bytecode:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
L1
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L2
LINENUMBER 32 L2
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L3
DUP
ALOAD 6
IF_ACMPNE L4
L5
LINENUMBER 31 L5
ALOAD 6
ARETURN
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L7
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L4
LINENUMBER 33 L4
POP
L8
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L9
L10
LINENUMBER 35 L10
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L11
L12
LINENUMBER 40 L12
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L13
L14
LINENUMBER 53 L14
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L15
DUP
ALOAD 6
IF_ACMPNE L16
L17
LINENUMBER 31 L17
ALOAD 6
ARETURN
L18
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L16
LINENUMBER 54 L16
POP
L20
L21
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L22
L23
L24
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L25
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L13 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L11 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L9 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L22 0
LOCALVARIABLE result Ljava/lang/Object; L0 L22 1
MAXSTACK = 6
MAXLOCALS = 6
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
L1
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L2
LINENUMBER 32 L2
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L3
DUP
ALOAD 6
IF_ACMPNE L4
L5
LINENUMBER 31 L5
ALOAD 6
ARETURN
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L7
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L4
LINENUMBER 33 L4
POP
L8
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L9
L10
LINENUMBER 35 L10
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L11
L12
LINENUMBER 40 L12
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L13
L14
LINENUMBER 53 L14
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L15
DUP
ALOAD 6
IF_ACMPNE L16
L17
LINENUMBER 31 L17
ALOAD 6
ARETURN
L18
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L16
LINENUMBER 54 L16
POP
L20
L21
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L22
L23
L24
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L25
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L13 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L11 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L9 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L22 0
LOCALVARIABLE result Ljava/lang/Object; L0 L22 1
MAXSTACK = 6
MAXLOCALS = 6
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
L7
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L8
LINENUMBER 32 L8
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L9
DUP
ALOAD 6
IF_ACMPNE L10
L11
LINENUMBER 31 L11
ALOAD 6
ARETURN
L12
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L13
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L10
LINENUMBER 33 L10
POP
L14
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L15
L16
LINENUMBER 35 L16
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L17
L18
LINENUMBER 40 L18
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L19
L20
LINENUMBER 53 L20
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L21
DUP
ALOAD 6
IF_ACMPNE L22
L23
LINENUMBER 31 L23
ALOAD 6
ARETURN
L24
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L25
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L22
LINENUMBER 54 L22
POP
L26
L27
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L28
L29
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L30
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L19 L26 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L17 L26 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L15 L26 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L30 0
LOCALVARIABLE result Ljava/lang/Object; L0 L30 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L7
LINENUMBER 32 L7
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L8
DUP
ALOAD 6
IF_ACMPNE L9
L10
LINENUMBER 31 L10
ALOAD 6
ARETURN
L3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L11
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L9
LINENUMBER 33 L9
POP
L12
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L13
LINENUMBER 35 L13
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L14
LINENUMBER 40 L14
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L15
LINENUMBER 53 L15
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L16
DUP
ALOAD 6
IF_ACMPNE L17
L18
LINENUMBER 31 L18
ALOAD 6
ARETURN
L4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L17
LINENUMBER 54 L17
POP
L20
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L21
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L15 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L14 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L13 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L21 0
LOCALVARIABLE result Ljava/lang/Object; L0 L21 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: AFTER mandatory stack transformations: incorrect bytecode
Element is unknownThe root cause was thrown at: MethodVerifier.kt:28
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
File being compiled at position: (31,15) in /home/ph1b/Dev/playground/src/main/java/my/something/t/FlowTest.kt
The root cause was thrown at: TransformationMethodVisitor.kt:92
at org.jetbrains.kotlin.codegen.FunctionCodegen.endVisit(FunctionCodegen.java:1038)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:487)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:259)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:175)
at org.jetbrains.kotlin.codegen.coroutines.CoroutineCodegenForLambda.generateResumeImpl(CoroutineCodegen.kt:453)
at org.jetbrains.kotlin.codegen.coroutines.CoroutineCodegenForLambda.generateClosureBody(CoroutineCodegen.kt:237)
at org.jetbrains.kotlin.codegen.ClosureCodegen.generateBody(ClosureCodegen.java:169)
at org.jetbrains.kotlin.codegen.coroutines.CoroutineCodegenForLambda.generateBody(CoroutineCodegen.kt:245)
at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:129)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.genClosure(ExpressionCodegen.java:1025)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.genClosure(ExpressionCodegen.java:995)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.visitLambdaExpression(ExpressionCodegen.java:986)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.visitLambdaExpression(ExpressionCodegen.java:111)
at org.jetbrains.kotlin.psi.KtLambdaExpression.accept(KtLambdaExpression.java:39)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:299)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:281)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:354)
at org.jetbrains.kotlin.codegen.CallGenerator$DefaultCallGenerator.genValueAndPut(CallGenerator.kt:70)
at org.jetbrains.kotlin.codegen.CallBasedArgumentGenerator.generateExpression(CallBasedArgumentGenerator.kt:42)
at org.jetbrains.kotlin.codegen.ArgumentGenerator.generate(ArgumentGenerator.kt:68)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2490)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2462)
at org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:41)
at org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:13)
at org.jetbrains.kotlin.codegen.OperationStackValue.putSelector(StackValue.kt:79)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:118)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:107)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.putStackValue(ExpressionCodegen.java:378)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.lambda$visitReturnExpression$11(ExpressionCodegen.java:1598)
at org.jetbrains.kotlin.codegen.OperationStackValue.putSelector(StackValue.kt:79)
at org.jetbrains.kotlin.codegen.StackValueWithLeaveTask.putSelector(StackValue.kt:67)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:118)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:107)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.putStackValue(ExpressionCodegen.java:378)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:363)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.returnExpression(ExpressionCodegen.java:1687)
at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$FunctionDefault.doGenerateBody(FunctionGenerationStrategy.java:64)
at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$CodegenBased.generateBody(FunctionGenerationStrategy.java:84)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:666)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:473)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:259)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:175)
at org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:146)
at org.jetbrains.kotlin.codegen.MemberCodegen.genSimpleMember(MemberCodegen.java:197)
at org.jetbrains.kotlin.codegen.PackagePartCodegen.generateBody(PackagePartCodegen.java:95)
at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:129)
at org.jetbrains.kotlin.codegen.PackageCodegenImpl.generateFile(PackageCodegenImpl.java:141)
at org.jetbrains.kotlin.codegen.PackageCodegenImpl.generate(PackageCodegenImpl.java:67)
... 36 more
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
L1
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L2
LINENUMBER 32 L2
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L3
DUP
ALOAD 6
IF_ACMPNE L4
L5
LINENUMBER 31 L5
ALOAD 6
ARETURN
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L7
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L4
LINENUMBER 33 L4
POP
L8
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L9
L10
LINENUMBER 35 L10
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L11
L12
LINENUMBER 40 L12
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L13
L14
LINENUMBER 53 L14
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L15
DUP
ALOAD 6
IF_ACMPNE L16
L17
LINENUMBER 31 L17
ALOAD 6
ARETURN
L18
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L16
LINENUMBER 54 L16
POP
L20
L21
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L22
L23
L24
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L25
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L13 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L11 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L9 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L22 0
LOCALVARIABLE result Ljava/lang/Object; L0 L22 1
MAXSTACK = 6
MAXLOCALS = 6
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
L7
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L8
LINENUMBER 32 L8
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L9
DUP
ALOAD 6
IF_ACMPNE L10
L11
LINENUMBER 31 L11
ALOAD 6
ARETURN
L12
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L13
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L10
LINENUMBER 33 L10
POP
L14
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L15
L16
LINENUMBER 35 L16
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L17
L18
LINENUMBER 40 L18
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L19
L20
LINENUMBER 53 L20
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L21
DUP
ALOAD 6
IF_ACMPNE L22
L23
LINENUMBER 31 L23
ALOAD 6
ARETURN
L24
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L25
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L22
LINENUMBER 54 L22
POP
L26
L27
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L28
L29
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L30
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L19 L26 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L17 L26 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L15 L26 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L30 0
LOCALVARIABLE result Ljava/lang/Object; L0 L30 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L7
LINENUMBER 32 L7
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L8
DUP
ALOAD 6
IF_ACMPNE L9
L10
LINENUMBER 31 L10
ALOAD 6
ARETURN
L3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L11
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L9
LINENUMBER 33 L9
POP
L12
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L13
LINENUMBER 35 L13
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L14
LINENUMBER 40 L14
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L15
LINENUMBER 53 L15
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L16
DUP
ALOAD 6
IF_ACMPNE L17
L18
LINENUMBER 31 L18
ALOAD 6
ARETURN
L4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L17
LINENUMBER 54 L17
POP
L20
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L21
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L15 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L14 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L13 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L21 0
LOCALVARIABLE result Ljava/lang/Object; L0 L21 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: AFTER mandatory stack transformations: incorrect bytecode
Element is unknownThe root cause was thrown at: MethodVerifier.kt:28
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
at org.jetbrains.kotlin.codegen.TransformationMethodVisitor.visitEnd(TransformationMethodVisitor.kt:92)
at org.jetbrains.kotlin.codegen.FunctionCodegen.endVisit(FunctionCodegen.java:1026)
... 83 more
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
L7
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L8
LINENUMBER 32 L8
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L9
DUP
ALOAD 6
IF_ACMPNE L10
L11
LINENUMBER 31 L11
ALOAD 6
ARETURN
L12
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L13
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L10
LINENUMBER 33 L10
POP
L14
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L15
L16
LINENUMBER 35 L16
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L17
L18
LINENUMBER 40 L18
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L19
L20
LINENUMBER 53 L20
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L21
DUP
ALOAD 6
IF_ACMPNE L22
L23
LINENUMBER 31 L23
ALOAD 6
ARETURN
L24
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L25
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L22
LINENUMBER 54 L22
POP
L26
L27
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L28
L29
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L30
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L19 L26 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L17 L26 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L15 L26 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L30 0
LOCALVARIABLE result Ljava/lang/Object; L0 L30 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L7
LINENUMBER 32 L7
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L8
DUP
ALOAD 6
IF_ACMPNE L9
L10
LINENUMBER 31 L10
ALOAD 6
ARETURN
L3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L11
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L9
LINENUMBER 33 L9
POP
L12
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L13
LINENUMBER 35 L13
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L14
LINENUMBER 40 L14
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L15
LINENUMBER 53 L15
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L16
DUP
ALOAD 6
IF_ACMPNE L17
L18
LINENUMBER 31 L18
ALOAD 6
ARETURN
L4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L17
LINENUMBER 54 L17
POP
L20
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L21
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L15 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L14 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L13 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L21 0
LOCALVARIABLE result Ljava/lang/Object; L0 L21 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: AFTER mandatory stack transformations: incorrect bytecode
Element is unknownThe root cause was thrown at: MethodVerifier.kt:28
Element is unknownThe root cause was thrown at: TransformationMethodVisitor.kt:92
at org.jetbrains.kotlin.codegen.TransformationMethodVisitor.visitEnd(TransformationMethodVisitor.kt:92)
at org.jetbrains.kotlin.codegen.TransformationMethodVisitor.visitEnd(TransformationMethodVisitor.kt:90)
... 84 more
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't transform method node:
invokeSuspend (Ljava/lang/Object;)Ljava/lang/Object;:
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
L0
INVOKESTATIC kotlin/coroutines/intrinsics/IntrinsicsKt.getCOROUTINE_SUSPENDED ()Ljava/lang/Object;
L1
LINENUMBER 31 L1
ASTORE 6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.label : I
TABLESWITCH
0: L2
1: L3
2: L4
default: L5
L2
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
L6
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.p$ : Lkotlinx/coroutines/flow/FlowCollector;
ASTORE 2
L7
LINENUMBER 32 L7
ALOAD 2
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
ALOAD 0
ALOAD 0
ALOAD 2
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ICONST_1
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEINTERFACE kotlinx/coroutines/flow/FlowCollector.emit (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; (itf)
L8
DUP
ALOAD 6
IF_ACMPNE L9
L10
LINENUMBER 31 L10
ALOAD 6
ARETURN
L3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlinx/coroutines/flow/FlowCollector
ASTORE 2
L11
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L9
LINENUMBER 33 L9
POP
L12
NEW kotlin/jvm/internal/Ref$ObjectRef
DUP
INVOKESPECIAL kotlin/jvm/internal/Ref$ObjectRef.<init> ()V
ASTORE 3
ALOAD 3
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.$initialState : Lmy/something/t/ViewState;
PUTFIELD kotlin/jvm/internal/Ref$ObjectRef.element : Ljava/lang/Object;
L13
LINENUMBER 35 L13
NEW my/something/t/FlowTestKt$viewState$1$1
DUP
ALOAD 2
ALOAD 3
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$1.<init> (Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/coroutines/Continuation;)V
ASTORE 4
L14
LINENUMBER 40 L14
NEW my/something/t/FlowTestKt$viewState$1$2
DUP
ALOAD 0
ALOAD 4
ALOAD 5
ACONST_NULL
INVOKESPECIAL my/something/t/FlowTestKt$viewState$1$2.<init> (Lmy/something/t/FlowTestKt$viewState$1;Lmy/something/t/FlowTestKt$viewState$1$1;Lmy/something/t/FlowTestKt$viewState$1$2;Lkotlin/coroutines/Continuation;)V
ASTORE 5
L15
LINENUMBER 53 L15
ALOAD 5
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ALOAD 0
ALOAD 0
ALOAD 3
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
ALOAD 0
ALOAD 4
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
ALOAD 0
ALOAD 5
PUTFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
ALOAD 0
ICONST_2
PUTFIELD my/something/t/FlowTestKt$viewState$1.label : I
INVOKEVIRTUAL my/something/t/FlowTestKt$viewState$1$2.invoke (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
L16
DUP
ALOAD 6
IF_ACMPNE L17
L18
LINENUMBER 31 L18
ALOAD 6
ARETURN
L4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$2 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$2
ASTORE 5
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$1 : Ljava/lang/Object;
CHECKCAST my/something/t/FlowTestKt$viewState$1$1
ASTORE 4
ALOAD 0
GETFIELD my/something/t/FlowTestKt$viewState$1.L$0 : Ljava/lang/Object;
CHECKCAST kotlin/jvm/internal/Ref$ObjectRef
ASTORE 3
L19
ALOAD 1
INVOKESTATIC kotlin/ResultKt.throwOnFailure (Ljava/lang/Object;)V
ALOAD 1
L17
LINENUMBER 54 L17
POP
L20
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
ARETURN
L5
NEW java/lang/IllegalStateException
DUP
LDC "call to 'resume' before 'invoke' with coroutine"
INVOKESPECIAL java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
ATHROW
RETURN
L21
LOCALVARIABLE $fun$startContentFlow$2 Lmy/something/t/FlowTestKt$viewState$1$2; L15 L20 5
LOCALVARIABLE $fun$updateAndEmit$1 Lmy/something/t/FlowTestKt$viewState$1$1; L14 L20 4
LOCALVARIABLE lastState Lkotlin/jvm/internal/Ref$ObjectRef; L13 L20 3
LOCALVARIABLE this Lmy/something/t/FlowTestKt$viewState$1; L0 L21 0
LOCALVARIABLE result Ljava/lang/Object; L0 L21 1
MAXSTACK = 6
MAXLOCALS = 7
Cause: AFTER mandatory stack transformations: incorrect bytecode
Element is unknownThe root cause was thrown at: MethodVerifier.kt:28
at org.jetbrains.kotlin.codegen.TransformationMethodVisitor.visitEnd(TransformationMethodVisitor.kt:92)
at org.jetbrains.kotlin.codegen.TransformationMethodVisitor.visitEnd(TransformationMethodVisitor.kt:90)
... 85 more
Caused by: java.lang.AssertionError: AFTER mandatory stack transformations: incorrect bytecode
at org.jetbrains.kotlin.codegen.optimization.MethodVerifier.transform(MethodVerifier.kt:28)
at org.jetbrains.kotlin.codegen.optimization.transformer.CompositeMethodTransformer.transform(CompositeMethodTransformer.kt:25)
at org.jetbrains.kotlin.codegen.optimization.OptimizationMethodVisitor.performTransformations(OptimizationMethodVisitor.kt:62)
at org.jetbrains.kotlin.codegen.TransformationMethodVisitor.visitEnd(TransformationMethodVisitor.kt:70)
... 86 more
Caused by: java.lang.RuntimeException: org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 72: Expected an object reference, but found .
at org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.runAnalyzer(MethodTransformer.java:34)
at org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.analyze(MethodTransformer.java:44)
at org.jetbrains.kotlin.codegen.optimization.MethodVerifier.transform(MethodVerifier.kt:26)
... 89 more
Caused by: org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 72: Expected an object reference, but found .
at org.jetbrains.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:291)
at org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.runAnalyzer(MethodTransformer.java:31)
... 91 more
Caused by: org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Expected an object reference, but found .
at org.jetbrains.org.objectweb.asm.tree.analysis.BasicVerifier.copyOperation(BasicVerifier.java:90)
at org.jetbrains.org.objectweb.asm.tree.analysis.BasicVerifier.copyOperation(BasicVerifier.java:43)
at org.jetbrains.org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:288)
at org.jetbrains.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:187)
... 92 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment