Module: main
// CallableId=/runTwice
FUN name:runTwice visibility:private modality:FINAL returnType:<root>.Pair<kotlin.Any?> [inline]
  TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
  VALUE_PARAMETER kind:Regular name:f index:0 type:kotlin.Function0<kotlin.Any?>
  BLOCK_BODY
    RETURN type=kotlin.Nothing from='private final fun runTwice <T> (f: kotlin.Function0<kotlin.Any?>): <root>.Pair<kotlin.Any?> [inline] declared in <root>'
      CONSTRUCTOR_CALL 'public constructor <init> (first: T of <root>.Pair, second: T of <root>.Pair) [primary] declared in <root>.Pair' type=<root>.Pair<kotlin.Any?> origin=null
        TYPE_ARG (of class) T: kotlin.Any?
        ARG first: CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE
          ARG <this>: GET_VAR 'f: kotlin.Function0<kotlin.Any?> declared in <root>.runTwice' type=kotlin.Function0<kotlin.Any?> origin=VARIABLE_AS_FUNCTION
        ARG second: CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE
          ARG <this>: GET_VAR 'f: kotlin.Function0<kotlin.Any?> declared in <root>.runTwice' type=kotlin.Function0<kotlin.Any?> origin=VARIABLE_AS_FUNCTION
// CallableId=/bar
FUN name:bar visibility:private modality:FINAL returnType:kotlin.Int [inline]
  VALUE_PARAMETER kind:Regular name:test index:0 type:kotlin.Function0<kotlin.Int> [crossinline]
  BLOCK_BODY
    VAR name:outsideCounter type:kotlin.internal.SharedVariableBox<kotlin.Int> [val]
      CONSTRUCTOR_CALL 'public constructor <init> (element: T of kotlin.internal.SharedVariableBox) [primary] declared in kotlin.internal.SharedVariableBox' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
        TYPE_ARG (of class) T: kotlin.Int
        ARG element: CONST Int type=kotlin.Int value=0
    VAR name:x type:<root>.Pair<<root>.bar.<no name provided>> [val]
      BLOCK type=<root>.Pair<<root>.bar.<no name provided>> origin=null
        CLASS CLASS name:<no name provided> modality:FINAL visibility:local superTypes:[kotlin.Any]
          thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.bar.<no name provided>
          CONSTRUCTOR visibility:private returnType:<root>.bar.<no name provided> [primary]
            VALUE_PARAMETER BOUND_VALUE_PARAMETER kind:Regular name:$insideCounter index:0 type:kotlin.internal.SharedVariableBox<kotlin.Int>
            BLOCK_BODY
              SET_FIELD 'FIELD FIELD_FOR_CAPTURED_VALUE name:$insideCounter type:kotlin.internal.SharedVariableBox<kotlin.Int> visibility:private [final] declared in <root>.bar.<no name provided>' type=kotlin.Unit origin=INITIALIZER_OF_FIELD_FOR_CAPTURED_VALUE
                receiver: GET_VAR '<this>: <root>.bar.<no name provided> declared in <root>.bar.<no name provided>' type=<root>.bar.<no name provided> origin=null
                value: GET_VAR '$insideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> declared in <root>.bar.<no name provided>.<init>' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
              DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
              INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:<no name provided> modality:FINAL visibility:local superTypes:[kotlin.Any]' type=kotlin.Unit
          FUN name:count visibility:public modality:FINAL returnType:kotlin.Unit
            VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.bar.<no name provided>
            BLOCK_BODY
              TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
                BLOCK type=kotlin.Int origin=POSTFIX_INCR
                  VAR IR_TEMPORARY_VARIABLE name:<unary> type:kotlin.Int [val]
                    CALL 'public final fun <get-globalCounter> (): kotlin.Int declared in <root>' type=kotlin.Int origin=POSTFIX_INCR
                  CALL 'public final fun <set-globalCounter> (<set-?>: kotlin.Int): kotlin.Unit declared in <root>' type=kotlin.Unit origin=POSTFIX_INCR
                    ARG <set-?>: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR
                      ARG <this>: GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.bar.<no name provided>.count' type=kotlin.Int origin=null
                  GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.bar.<no name provided>.count' type=kotlin.Int origin=null
              TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
                BLOCK type=kotlin.Int origin=POSTFIX_INCR
                  VAR IR_TEMPORARY_VARIABLE name:<unary> type:kotlin.Int [val]
                    CALL 'public final fun <get-element> (): T of kotlin.internal.SharedVariableBox declared in kotlin.internal.SharedVariableBox' type=kotlin.Int origin=POSTFIX_INCR
                      ARG <this>: GET_VAR 'val outsideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                  CALL 'public final fun <set-element> (<set-?>: T of kotlin.internal.SharedVariableBox): kotlin.Unit declared in kotlin.internal.SharedVariableBox' type=kotlin.Unit origin=POSTFIX_INCR
                    ARG <this>: GET_VAR 'val outsideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                    ARG <set-?>: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR
                      ARG <this>: GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.bar.<no name provided>.count' type=kotlin.Int origin=null
                  GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.bar.<no name provided>.count' type=kotlin.Int origin=null
              TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
                BLOCK type=kotlin.Int origin=POSTFIX_INCR
                  VAR IR_TEMPORARY_VARIABLE name:<unary> type:kotlin.Int [val]
                    CALL 'public final fun <get-element> (): T of kotlin.internal.SharedVariableBox declared in kotlin.internal.SharedVariableBox' type=kotlin.Int origin=POSTFIX_INCR
                      ARG <this>: GET_FIELD 'FIELD FIELD_FOR_CAPTURED_VALUE name:$insideCounter type:kotlin.internal.SharedVariableBox<kotlin.Int> visibility:private [final] declared in <root>.bar.<no name provided>' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                        receiver: GET_VAR '<this>: <root>.bar.<no name provided> declared in <root>.bar.<no name provided>.count' type=<root>.bar.<no name provided> origin=null
                  CALL 'public final fun <set-element> (<set-?>: T of kotlin.internal.SharedVariableBox): kotlin.Unit declared in kotlin.internal.SharedVariableBox' type=kotlin.Unit origin=POSTFIX_INCR
                    ARG <this>: GET_FIELD 'FIELD FIELD_FOR_CAPTURED_VALUE name:$insideCounter type:kotlin.internal.SharedVariableBox<kotlin.Int> visibility:private [final] declared in <root>.bar.<no name provided>' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                      receiver: GET_VAR '<this>: <root>.bar.<no name provided> declared in <root>.bar.<no name provided>.count' type=<root>.bar.<no name provided> origin=null
                    ARG <set-?>: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR
                      ARG <this>: GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.bar.<no name provided>.count' type=kotlin.Int origin=null
                  GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.bar.<no name provided>.count' type=kotlin.Int origin=null
          FUN name:foo visibility:public modality:FINAL returnType:kotlin.Int
            VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.bar.<no name provided>
            BLOCK_BODY
              RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Int declared in <root>.bar.<no name provided>'
                CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Int origin=INVOKE
                  ARG <this>: GET_VAR 'test: kotlin.Function0<kotlin.Int> [crossinline] declared in <root>.bar' type=kotlin.Function0<kotlin.Int> origin=VARIABLE_AS_FUNCTION
          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 [operator] 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
          FIELD FIELD_FOR_CAPTURED_VALUE name:$insideCounter type:kotlin.internal.SharedVariableBox<kotlin.Int> visibility:private [final]
        RETURNABLE_BLOCK type=<root>.Pair<<root>.bar.<no name provided>> origin=null
          INLINED_BLOCK type=<root>.Pair<<root>.bar.<no name provided>> origin=null
            inlinedFunctionSymbol: public final fun runTwice <T> (f: kotlin.Function0<T of <root>.runTwice>): <root>.Pair<T of <root>.runTwice> [inline] declared in <root>
            inlinedFunctionFileEntry: FILE_ENTRY path:lib.kt
            RETURN type=kotlin.Nothing from='{IrReturnableBlockImpl}'
              TYPE_OP type=<root>.Pair<<root>.bar.<no name provided>> origin=IMPLICIT_CAST typeOperand=<root>.Pair<<root>.bar.<no name provided>>
                CONSTRUCTOR_CALL 'public constructor <init> (first: T of <root>.Pair, second: T of <root>.Pair) [primary] declared in <root>.Pair' type=<root>.Pair<kotlin.Any?> origin=null
                  TYPE_ARG (of class) T: kotlin.Any?
                  ARG first: RETURNABLE_BLOCK type=kotlin.Any? origin=null
                    INLINED_BLOCK type=kotlin.Any? origin=null
                      inlinedFunctionFileEntry: FILE_ENTRY path:lib.kt
                      VAR name:insideCounter type:kotlin.internal.SharedVariableBox<kotlin.Int> [val]
                        CONSTRUCTOR_CALL 'public constructor <init> (element: T of kotlin.internal.SharedVariableBox) [primary] declared in kotlin.internal.SharedVariableBox' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                          TYPE_ARG (of class) T: kotlin.Int
                          ARG element: CONST Int type=kotlin.Int value=0
                      VAR name:r type:<root>.bar.<no name provided> [val]
                        BLOCK type=<root>.bar.<no name provided> origin=OBJECT_LITERAL
                          COMPOSITE type=kotlin.Unit origin=null
                          CONSTRUCTOR_CALL 'private constructor <init> ($insideCounter: kotlin.internal.SharedVariableBox<kotlin.Int>) [primary] declared in <root>.bar.<no name provided>' type=<root>.bar.<no name provided> origin=OBJECT_LITERAL
                            ARG $insideCounter: GET_VAR 'val insideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                      CALL 'public final fun count (): kotlin.Unit declared in <root>.bar.<no name provided>' type=kotlin.Unit origin=null
                        ARG <this>: GET_VAR 'val r: <root>.bar.<no name provided> [val] declared in <root>.bar' type=<root>.bar.<no name provided> origin=null
                      CALL 'public final fun <set-element> (<set-?>: T of kotlin.internal.SharedVariableBox): kotlin.Unit declared in kotlin.internal.SharedVariableBox' type=kotlin.Unit origin=PLUSEQ
                        ARG <this>: GET_VAR 'val outsideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                        ARG <set-?>: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ
                          ARG <this>: CALL 'public final fun <get-element> (): T of kotlin.internal.SharedVariableBox declared in kotlin.internal.SharedVariableBox' type=kotlin.Int origin=PLUSEQ
                            ARG <this>: GET_VAR 'val outsideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                          ARG other: CALL 'public final fun <get-element> (): T of kotlin.internal.SharedVariableBox declared in kotlin.internal.SharedVariableBox' type=kotlin.Int origin=null
                            ARG <this>: GET_VAR 'val insideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                      RETURN type=kotlin.Nothing from='{IrReturnableBlockImpl}'
                        TYPE_OP type=kotlin.Any? origin=IMPLICIT_CAST typeOperand=kotlin.Any?
                          GET_VAR 'val r: <root>.bar.<no name provided> [val] declared in <root>.bar' type=<root>.bar.<no name provided> origin=null
                  ARG second: RETURNABLE_BLOCK type=kotlin.Any? origin=null
                    INLINED_BLOCK type=kotlin.Any? origin=null
                      inlinedFunctionFileEntry: FILE_ENTRY path:lib.kt
                      VAR name:insideCounter type:kotlin.internal.SharedVariableBox<kotlin.Int> [val]
                        CONSTRUCTOR_CALL 'public constructor <init> (element: T of kotlin.internal.SharedVariableBox) [primary] declared in kotlin.internal.SharedVariableBox' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                          TYPE_ARG (of class) T: kotlin.Int
                          ARG element: CONST Int type=kotlin.Int value=0
                      VAR name:r type:<root>.bar.<no name provided> [val]
                        BLOCK type=<root>.bar.<no name provided> origin=OBJECT_LITERAL
                          COMPOSITE type=kotlin.Unit origin=null
                          CONSTRUCTOR_CALL 'private constructor <init> ($insideCounter: kotlin.internal.SharedVariableBox<kotlin.Int>) [primary] declared in <root>.bar.<no name provided>' type=<root>.bar.<no name provided> origin=OBJECT_LITERAL
                            ARG $insideCounter: GET_VAR 'val insideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                      CALL 'public final fun count (): kotlin.Unit declared in <root>.bar.<no name provided>' type=kotlin.Unit origin=null
                        ARG <this>: GET_VAR 'val r: <root>.bar.<no name provided> [val] declared in <root>.bar' type=<root>.bar.<no name provided> origin=null
                      CALL 'public final fun <set-element> (<set-?>: T of kotlin.internal.SharedVariableBox): kotlin.Unit declared in kotlin.internal.SharedVariableBox' type=kotlin.Unit origin=PLUSEQ
                        ARG <this>: GET_VAR 'val outsideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                        ARG <set-?>: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ
                          ARG <this>: CALL 'public final fun <get-element> (): T of kotlin.internal.SharedVariableBox declared in kotlin.internal.SharedVariableBox' type=kotlin.Int origin=PLUSEQ
                            ARG <this>: GET_VAR 'val outsideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                          ARG other: CALL 'public final fun <get-element> (): T of kotlin.internal.SharedVariableBox declared in kotlin.internal.SharedVariableBox' type=kotlin.Int origin=null
                            ARG <this>: GET_VAR 'val insideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
                      RETURN type=kotlin.Nothing from='{IrReturnableBlockImpl}'
                        TYPE_OP type=kotlin.Any? origin=IMPLICIT_CAST typeOperand=kotlin.Any?
                          GET_VAR 'val r: <root>.bar.<no name provided> [val] declared in <root>.bar' type=<root>.bar.<no name provided> origin=null
    CALL 'public final fun <set-globalCounter> (<set-?>: kotlin.Int): kotlin.Unit declared in <root>' type=kotlin.Unit origin=PLUSEQ
      ARG <set-?>: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ
        ARG <this>: CALL 'public final fun <get-globalCounter> (): kotlin.Int declared in <root>' type=kotlin.Int origin=PLUSEQ
        ARG other: CALL 'public final fun <get-element> (): T of kotlin.internal.SharedVariableBox declared in kotlin.internal.SharedVariableBox' type=kotlin.Int origin=null
          ARG <this>: GET_VAR 'val outsideCounter: kotlin.internal.SharedVariableBox<kotlin.Int> [val] declared in <root>.bar' type=kotlin.internal.SharedVariableBox<kotlin.Int> origin=null
    RETURN type=kotlin.Nothing from='private final fun bar (test: kotlin.Function0<kotlin.Int>): kotlin.Int [inline] declared in <root>'
      CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS
        ARG <this>: CALL 'public final fun foo (): kotlin.Int declared in <root>.bar.<no name provided>' type=kotlin.Int origin=null
          ARG <this>: CALL 'public final fun <get-first> (): T of <root>.Pair declared in <root>.Pair' type=<root>.bar.<no name provided> origin=GET_PROPERTY
            ARG <this>: GET_VAR 'val x: <root>.Pair<<root>.bar.<no name provided>> [val] declared in <root>.bar' type=<root>.Pair<<root>.bar.<no name provided>> origin=null
        ARG other: CALL 'public final fun foo (): kotlin.Int declared in <root>.bar.<no name provided>' type=kotlin.Int origin=null
          ARG <this>: CALL 'public final fun <get-second> (): T of <root>.Pair declared in <root>.Pair' type=<root>.bar.<no name provided> origin=GET_PROPERTY
            ARG <this>: GET_VAR 'val x: <root>.Pair<<root>.bar.<no name provided>> [val] declared in <root>.bar' type=<root>.Pair<<root>.bar.<no name provided>> origin=null
