Module: m1
FILE fqName:<root> fileName:/m1.kt
  CLASS CLASS name:K modality:FINAL visibility:public superTypes:[<root>.S]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.K
    CONSTRUCTOR visibility:public returnType:<root>.K [primary]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K modality:FINAL visibility:public superTypes:[<root>.S]' type=kotlin.Unit
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.S
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in <root>.S
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in <root>.S
  CLASS INTERFACE name:S modality:SEALED visibility:public superTypes:[kotlin.Any]
    sealedSubclasses:
      CLASS CLASS name:K modality:FINAL visibility:public superTypes:[<root>.S]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.S
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
Module: m12
FILE fqName:<root> fileName:2/m1.kt
  CLASS CLASS name:K modality:FINAL visibility:public superTypes:[<root>.S]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.K
    CONSTRUCTOR visibility:public returnType:<root>.K [primary]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K modality:FINAL visibility:public superTypes:[<root>.S]' type=kotlin.Unit
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.S
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in <root>.S
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in <root>.S
  CLASS CLASS name:K2 modality:FINAL visibility:public superTypes:[<root>.S]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.K2
    CONSTRUCTOR visibility:public returnType:<root>.K2 [primary]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K2 modality:FINAL visibility:public superTypes:[<root>.S]' type=kotlin.Unit
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.S
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in <root>.S
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in <root>.S
  CLASS INTERFACE name:S modality:SEALED visibility:public superTypes:[kotlin.Any]
    sealedSubclasses:
      CLASS CLASS name:K modality:FINAL visibility:public superTypes:[<root>.S]
      CLASS CLASS name:K2 modality:FINAL visibility:public superTypes:[<root>.S]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.S
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
Module: m2
FILE fqName:<root> fileName:/m2.kt
  FUN name:test visibility:public modality:FINAL returnType:kotlin.String
    VALUE_PARAMETER kind:Regular name:s index:0 type:<root>.S?
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='public final fun test (s: <root>.S?): kotlin.String declared in <root>'
        BLOCK type=kotlin.String origin=WHEN
          VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:<root>.S? [val]
            GET_VAR 's: <root>.S? declared in <root>.test' type=<root>.S? origin=null
          WHEN type=kotlin.String origin=WHEN
            BRANCH
              if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=<root>.K
                GET_VAR 'val tmp_0: <root>.S? declared in <root>.test' type=<root>.S? origin=null
              then: CONST String type=kotlin.String value=""
            BRANCH
              if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ
                ARG arg0: GET_VAR 'val tmp_0: <root>.S? declared in <root>.test' type=<root>.S? origin=null
                ARG arg1: CONST Null type=kotlin.Nothing? value=null
              then: CONST String type=kotlin.String value=""
            BRANCH
              if: CONST Boolean type=kotlin.Boolean value=true
              then: CALL 'internal final fun throwNoWhenBranchMatchedException (subject: kotlin.Any): kotlin.Nothing declared in kotlin.internal' type=kotlin.Nothing origin=null
                ARG subject: TYPE_OP type=kotlin.Any origin=IMPLICIT_CAST typeOperand=kotlin.Any
                  GET_VAR 'val tmp_0: <root>.S? declared in <root>.test' type=<root>.S? origin=null
Module: m3
FILE fqName:<root> fileName:/box.kt
  FUN name:box visibility:public modality:FINAL returnType:kotlin.String
    BLOCK_BODY
      TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
        TRY type=kotlin.String
          try: BLOCK type=kotlin.String origin=null
            CALL 'public final fun test (s: <root>.S?): kotlin.String declared in <root>' type=kotlin.String origin=null
              ARG s: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.K2' type=<root>.K2 origin=null
          CATCH parameter=val e: java.lang.Exception declared in <root>.box
            VAR CATCH_PARAMETER name:e type:java.lang.Exception [val]
            BLOCK type=kotlin.Nothing origin=null
              VAR name:m type:kotlin.String [val]
                CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.String origin=EXCLEXCL
                  TYPE_ARG T0: kotlin.String
                  ARG arg0: CALL 'public open fun <get-message> (): kotlin.String? declared in java.lang.Exception' type=kotlin.String? origin=GET_PROPERTY
                    ARG <this>: GET_VAR 'val e: java.lang.Exception declared in <root>.box' type=java.lang.Exception origin=null
              WHEN type=kotlin.Unit origin=IF
                BRANCH
                  if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null
                    ARG <this>: CALL 'public final fun startsWith (<this>: kotlin.String, prefix: kotlin.String, ignoreCase: kotlin.Boolean): kotlin.Boolean declared in kotlin.text' type=kotlin.Boolean origin=null
                      ARG <this>: GET_VAR 'val m: kotlin.String declared in <root>.box' type=kotlin.String origin=null
                      ARG prefix: CONST String type=kotlin.String value="No branch matched for subject: K2"
                  then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
                    STRING_CONCATENATION type=kotlin.String
                      CONST String type=kotlin.String value="wrong message: "
                      GET_VAR 'val m: kotlin.String declared in <root>.box' type=kotlin.String origin=null
              RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
                CONST String type=kotlin.String value="OK"
      RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
        CONST String type=kotlin.String value="exception was expected"
