blob: 1fcc7705dc54083a598b953d6ccb7a78ece1f31b [file]
FILE fqName:<root> fileName:/crossinlineLambdaAllocation.kt
PROPERTY name:globalCounter visibility:public modality:FINAL [var]
FIELD PROPERTY_BACKING_FIELD name:globalCounter type:kotlin.Int visibility:private [static]
EXPRESSION_BODY
CONST Int type=kotlin.Int value=0
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-globalCounter> visibility:public modality:FINAL returnType:kotlin.Int
correspondingProperty: PROPERTY name:globalCounter visibility:public modality:FINAL [var]
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-globalCounter> (): kotlin.Int declared in <root>'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:globalCounter type:kotlin.Int visibility:private [static]' type=kotlin.Int origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-globalCounter> visibility:public modality:FINAL returnType:kotlin.Unit
VALUE_PARAMETER kind:Regular name:<set-?> index:0 type:kotlin.Int
correspondingProperty: PROPERTY name:globalCounter visibility:public modality:FINAL [var]
BLOCK_BODY
SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:globalCounter type:kotlin.Int visibility:private [static]' type=kotlin.Unit origin=null
value: GET_VAR '<set-?>: kotlin.Int declared in <root>.<set-globalCounter>' type=kotlin.Int origin=null
CLASS CLASS name:Pair modality:FINAL visibility:public superTypes:[kotlin.Any]
thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.Pair<T of <root>.Pair>
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
PROPERTY name:first visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:first type:T of <root>.Pair visibility:private [final]
EXPRESSION_BODY
GET_VAR 'first: T of <root>.Pair declared in <root>.Pair.<init>' type=T of <root>.Pair origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-first> visibility:public modality:FINAL returnType:T of <root>.Pair
VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.Pair<T of <root>.Pair>
correspondingProperty: PROPERTY name:first visibility:public modality:FINAL [val]
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-first> (): T of <root>.Pair declared in <root>.Pair'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:first type:T of <root>.Pair visibility:private [final]' type=T of <root>.Pair origin=null
receiver: GET_VAR '<this>: <root>.Pair<T of <root>.Pair> declared in <root>.Pair.<get-first>' type=<root>.Pair<T of <root>.Pair> origin=null
PROPERTY name:second visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:second type:T of <root>.Pair visibility:private [final]
EXPRESSION_BODY
GET_VAR 'second: T of <root>.Pair declared in <root>.Pair.<init>' type=T of <root>.Pair origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-second> visibility:public modality:FINAL returnType:T of <root>.Pair
VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.Pair<T of <root>.Pair>
correspondingProperty: PROPERTY name:second visibility:public modality:FINAL [val]
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-second> (): T of <root>.Pair declared in <root>.Pair'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:second type:T of <root>.Pair visibility:private [final]' type=T of <root>.Pair origin=null
receiver: GET_VAR '<this>: <root>.Pair<T of <root>.Pair> declared in <root>.Pair.<get-second>' type=<root>.Pair<T of <root>.Pair> origin=null
CONSTRUCTOR visibility:public returnType:<root>.Pair<T of <root>.Pair> [primary]
VALUE_PARAMETER kind:Regular name:first index:0 type:T of <root>.Pair
VALUE_PARAMETER kind:Regular name:second index:1 type:T of <root>.Pair
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Pair modality:FINAL visibility:public superTypes:[kotlin.Any]' 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 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
FUN name:bar visibility:public 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.Int [var]
CONST Int type=kotlin.Int value=0
VAR name:x type:<root>.Pair<<root>.bar.<anonymous>.<no name provided>> [val]
CALL 'public final fun runTwice <T> (f: kotlin.Function0<T of <root>.runTwice>): <root>.Pair<T of <root>.runTwice> declared in <root>' type=<root>.Pair<<root>.bar.<anonymous>.<no name provided>> origin=null
TYPE_ARG T: <root>.bar.<anonymous>.<no name provided>
ARG f: FUN_EXPR type=kotlin.Function0<<root>.bar.<anonymous>.<no name provided>> origin=LAMBDA
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:<root>.bar.<anonymous>.<no name provided>
BLOCK_BODY
VAR name:insideCounter type:kotlin.Int [var]
CONST Int type=kotlin.Int value=0
VAR name:r type:<root>.bar.<anonymous>.<no name provided> [val]
BLOCK type=<root>.bar.<anonymous>.<no name provided> origin=OBJECT_LITERAL
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.<anonymous>.<no name provided>
CONSTRUCTOR visibility:public returnType:<root>.bar.<anonymous>.<no name provided> [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () 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 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
FUN name:count visibility:public modality:FINAL returnType:kotlin.Unit
VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.bar.<anonymous>.<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
BLOCK type=kotlin.Int origin=POSTFIX_INCR
VAR IR_TEMPORARY_VARIABLE name:tmp_0 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 declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR
ARG <this>: GET_VAR 'val tmp_0: kotlin.Int declared in <root>.bar.<anonymous>.<no name provided>.count' type=kotlin.Int origin=null
GET_VAR 'val tmp_0: kotlin.Int declared in <root>.bar.<anonymous>.<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:tmp_1 type:kotlin.Int [val]
GET_VAR 'var outsideCounter: kotlin.Int declared in <root>.bar' type=kotlin.Int origin=POSTFIX_INCR
SET_VAR 'var outsideCounter: kotlin.Int declared in <root>.bar' type=kotlin.Unit origin=POSTFIX_INCR
CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR
ARG <this>: GET_VAR 'val tmp_1: kotlin.Int declared in <root>.bar.<anonymous>.<no name provided>.count' type=kotlin.Int origin=null
GET_VAR 'val tmp_1: kotlin.Int declared in <root>.bar.<anonymous>.<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:tmp_2 type:kotlin.Int [val]
GET_VAR 'var insideCounter: kotlin.Int declared in <root>.bar.<anonymous>' type=kotlin.Int origin=POSTFIX_INCR
SET_VAR 'var insideCounter: kotlin.Int declared in <root>.bar.<anonymous>' type=kotlin.Unit origin=POSTFIX_INCR
CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR
ARG <this>: GET_VAR 'val tmp_2: kotlin.Int declared in <root>.bar.<anonymous>.<no name provided>.count' type=kotlin.Int origin=null
GET_VAR 'val tmp_2: kotlin.Int declared in <root>.bar.<anonymous>.<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.<anonymous>.<no name provided>
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Int declared in <root>.bar.<anonymous>.<no name provided>'
CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Int origin=INVOKE
ARG <this>: GET_VAR 'test: kotlin.Function0<kotlin.Int> declared in <root>.bar' type=kotlin.Function0<kotlin.Int> origin=VARIABLE_AS_FUNCTION
CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.bar.<anonymous>.<no name provided>' type=<root>.bar.<anonymous>.<no name provided> origin=OBJECT_LITERAL
CALL 'public final fun count (): kotlin.Unit declared in <root>.bar.<anonymous>.<no name provided>' type=kotlin.Unit origin=null
ARG <this>: GET_VAR 'val r: <root>.bar.<anonymous>.<no name provided> declared in <root>.bar.<anonymous>' type=<root>.bar.<anonymous>.<no name provided> origin=null
SET_VAR 'var outsideCounter: kotlin.Int declared in <root>.bar' type=kotlin.Unit origin=PLUSEQ
CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ
ARG <this>: GET_VAR 'var outsideCounter: kotlin.Int declared in <root>.bar' type=kotlin.Int origin=PLUSEQ
ARG other: GET_VAR 'var insideCounter: kotlin.Int declared in <root>.bar.<anonymous>' type=kotlin.Int origin=null
RETURN type=kotlin.Nothing from='local final fun <anonymous> (): <root>.bar.<anonymous>.<no name provided> declared in <root>.bar'
GET_VAR 'val r: <root>.bar.<anonymous>.<no name provided> declared in <root>.bar.<anonymous>' type=<root>.bar.<anonymous>.<no name provided> origin=null
BLOCK type=kotlin.Unit origin=PLUSEQ
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 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: GET_VAR 'var outsideCounter: kotlin.Int declared in <root>.bar' type=kotlin.Int origin=null
RETURN type=kotlin.Nothing from='public final fun bar (test: kotlin.Function0<kotlin.Int>): kotlin.Int declared in <root>'
CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS
ARG <this>: CALL 'public final fun foo (): kotlin.Int declared in <root>.bar.<anonymous>.<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.<anonymous>.<no name provided> origin=GET_PROPERTY
ARG <this>: GET_VAR 'val x: <root>.Pair<<root>.bar.<anonymous>.<no name provided>> declared in <root>.bar' type=<root>.Pair<<root>.bar.<anonymous>.<no name provided>> origin=null
ARG other: CALL 'public final fun foo (): kotlin.Int declared in <root>.bar.<anonymous>.<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.<anonymous>.<no name provided> origin=GET_PROPERTY
ARG <this>: GET_VAR 'val x: <root>.Pair<<root>.bar.<anonymous>.<no name provided>> declared in <root>.bar' type=<root>.Pair<<root>.bar.<anonymous>.<no name provided>> origin=null
FUN name:box visibility:public modality:FINAL returnType:kotlin.String
BLOCK_BODY
VAR name:result type:kotlin.Int [val]
CALL 'public final fun bar (test: kotlin.Function0<kotlin.Int>): kotlin.Int declared in <root>' type=kotlin.Int origin=null
ARG test: FUN_EXPR type=kotlin.Function0<kotlin.Int> origin=LAMBDA
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='local final fun <anonymous> (): kotlin.Int declared in <root>.box'
CONST Int type=kotlin.Int value=5
WHEN type=kotlin.Unit origin=IF
BRANCH
if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
ARG <this>: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ
ARG arg0: GET_VAR 'val result: kotlin.Int declared in <root>.box' type=kotlin.Int origin=null
ARG arg1: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS
ARG <this>: CONST Int type=kotlin.Int value=5
ARG other: CONST Int type=kotlin.Int value=5
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="result = "
GET_VAR 'val result: kotlin.Int declared in <root>.box' type=kotlin.Int 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=EXCLEQ
ARG <this>: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ
ARG arg0: CALL 'public final fun <get-globalCounter> (): kotlin.Int declared in <root>' type=kotlin.Int origin=GET_PROPERTY
ARG arg1: CONST Int type=kotlin.Int value=6
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="globalCounter = "
CALL 'public final fun <get-globalCounter> (): kotlin.Int declared in <root>' type=kotlin.Int origin=GET_PROPERTY
RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
CONST String type=kotlin.String value="OK"
FUN name:runTwice visibility:public modality:FINAL returnType:<root>.Pair<T of <root>.runTwice> [inline]
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
VALUE_PARAMETER kind:Regular name:f index:0 type:kotlin.Function0<T of <root>.runTwice>
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun runTwice <T> (f: kotlin.Function0<T of <root>.runTwice>): <root>.Pair<T of <root>.runTwice> declared in <root>'
CONSTRUCTOR_CALL 'public constructor <init> (first: T of <root>.Pair, second: T of <root>.Pair) declared in <root>.Pair' type=<root>.Pair<T of <root>.runTwice> origin=null
TYPE_ARG (of class) T: T of <root>.runTwice
ARG first: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of <root>.runTwice origin=INVOKE
ARG <this>: GET_VAR 'f: kotlin.Function0<T of <root>.runTwice> declared in <root>.runTwice' type=kotlin.Function0<T of <root>.runTwice> origin=VARIABLE_AS_FUNCTION
ARG second: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of <root>.runTwice origin=INVOKE
ARG <this>: GET_VAR 'f: kotlin.Function0<T of <root>.runTwice> declared in <root>.runTwice' type=kotlin.Function0<T of <root>.runTwice> origin=VARIABLE_AS_FUNCTION