From af247c33444ae21434f0acd95d834e3cc0192edd Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Mon, 18 Dec 2023 16:20:48 +0100 Subject: [PATCH] IR text tests: Unmute tests that have `main` function Don't use `main` function in these tests, because `main` function has specific mangling rules in JVM. Use other function name. ^KT-57755 --- .../argumentMappedWithError.ir.txt | 4 +- .../expressions/argumentMappedWithError.kt | 5 +- .../argumentMappedWithError.kt.txt | 2 +- .../argumentMappedWithError.sig.kt.txt | 18 +- ...dConversionForExtensionFunction.fir.ir.txt | 14 +- ...spendConversionForExtensionFunction.ir.txt | 14 +- .../suspendConversionForExtensionFunction.kt | 5 +- ...dConversionForExtensionFunction.sig.kt.txt | 18 +- .../firProblems/AssignmentOperator.fir.ir.txt | 214 ++++++++-------- .../firProblems/AssignmentOperator.fir.kt.txt | 2 +- .../firProblems/AssignmentOperator.ir.txt | 234 +++++++++--------- .../irText/firProblems/AssignmentOperator.kt | 4 +- .../firProblems/AssignmentOperator.kt.txt | 2 +- .../firProblems/AssignmentOperator.sig.kt.txt | 19 +- .../ir/irText/firProblems/kt55458.fir.ir.txt | 6 +- .../ir/irText/firProblems/kt55458.fir.kt.txt | 2 +- .../ir/irText/firProblems/kt55458.ir.txt | 6 +- .../testData/ir/irText/firProblems/kt55458.kt | 5 +- .../ir/irText/firProblems/kt55458.kt.txt | 2 +- .../ir/irText/firProblems/kt55458.sig.kt.txt | 18 +- .../irText/firProblems/localCompanion.ir.txt | 18 +- .../ir/irText/firProblems/localCompanion.kt | 5 +- .../irText/firProblems/localCompanion.kt.txt | 2 +- .../firProblems/localCompanion.sig.kt.txt | 18 +- .../ir/irText/types/definitelyNonNull.ir.txt | 2 +- .../ir/irText/types/definitelyNonNull.kt | 5 +- .../ir/irText/types/definitelyNonNull.kt.txt | 2 +- .../irText/types/definitelyNonNull.sig.kt.txt | 18 +- .../types/dontLeaveStubTypesInSetter.ir.txt | 8 +- .../types/dontLeaveStubTypesInSetter.kt | 5 +- .../types/dontLeaveStubTypesInSetter.kt.txt | 2 +- .../dontLeaveStubTypesInSetter.sig.kt.txt | 18 +- 32 files changed, 325 insertions(+), 372 deletions(-) diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt index 01b069d485c..ac4b68fcb69 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/argumentMappedWithError.kt FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Number) returnType:kotlin.Unit VALUE_PARAMETER name:arg index:0 type:kotlin.Number BLOCK_BODY - FUN name:main visibility:public modality:FINAL <> (args:kotlin.Array) returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> (args:kotlin.Array) returnType:kotlin.Unit VALUE_PARAMETER name:args index:0 type:kotlin.Array BLOCK_BODY VAR name:x type:kotlin.Int [val] @@ -16,4 +16,4 @@ FILE fqName: fileName:/argumentMappedWithError.kt CALL 'public final fun foo (arg: kotlin.Number): kotlin.Unit declared in ' type=kotlin.Unit origin=null arg: CALL 'public final fun convert (): R of .convert declared in ' type=kotlin.Number origin=null : kotlin.Number - $receiver: GET_VAR 'val x: kotlin.Int declared in .main' type=kotlin.Int origin=null + $receiver: GET_VAR 'val x: kotlin.Int declared in .runMe' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt index 3ab8ddb3a8b..7a5fb283d86 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt @@ -1,14 +1,11 @@ // FIR_IDENTICAL -// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR -// ^ KT-57755 : Fix computing a mangled name for the `main` function - fun Number.convert(): R = TODO() fun foo(arg: Number) { } -fun main(args: Array) { +fun runMe(args: Array) { val x: Int = 0 foo(x.convert()) } diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt.txt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt.txt index f74e529006e..d1baa44dfe7 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt.txt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt.txt @@ -5,7 +5,7 @@ fun Number.convert(): R { fun foo(arg: Number) { } -fun main(args: Array) { +fun runMe(args: Array) { val x: Int = 0 foo(arg = x.convert()) } diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.sig.kt.txt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.sig.kt.txt index f9ae24d0254..b57b8b5aa73 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.sig.kt.txt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.sig.kt.txt @@ -15,16 +15,12 @@ fun Number.convert(): R fun foo(arg: Number): Unit // CHECK JVM_IR: -// Mangled name: #main(kotlin.Array){} -// Mangled name for the signature computed from Ir: main(kotlin.Array){} -// Mangled name for the signature computed from Descriptor: main(kotlin.Array){}%argumentMappedWithError.kt -// Public signature by IR: /main|5976701115139892152[0] -// Public signature by IR debug description: main(kotlin.Array){} -// Public signature by Frontend: /main|5561668743171252170[0] -// Public signature by Frontend debug description: main(kotlin.Array){}%argumentMappedWithError.kt +// Mangled name: #runMe(kotlin.Array){} +// Public signature: /runMe|-242509563910791110[0] +// Public signature debug description: runMe(kotlin.Array){} // CHECK JS_IR NATIVE: -// Mangled name: #main(kotlin.Array){} -// Public signature: /main|5976701115139892152[0] -// Public signature debug description: main(kotlin.Array){} -fun main(args: Array): Unit +// Mangled name: #runMe(kotlin.Array){} +// Public signature: /runMe|-242509563910791110[0] +// Public signature debug description: runMe(kotlin.Array){} +fun runMe(args: Array): Unit diff --git a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.fir.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.fir.ir.txt index 3fe260287e6..64ec3943618 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.fir.ir.txt @@ -1,5 +1,5 @@ FILE fqName: fileName:/suspendConversionForExtensionFunction.kt - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:foo type:@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> [val] FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=LAMBDA @@ -7,22 +7,22 @@ FILE fqName: fileName:/suspendConversionForExtensionFunction.kt $receiver: VALUE_PARAMETER name: type:kotlin.String VALUE_PARAMETER name:it index:0 type:kotlin.coroutines.SuspendFunction0 BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (it: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in .main' + RETURN type=kotlin.Nothing from='local final fun (it: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in .runMe' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit VAR name:f type:kotlin.Function0 [val] FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .main' + RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .runMe' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE - $this: GET_VAR 'val foo: @[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> declared in .main' type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=VARIABLE_AS_FUNCTION + $this: GET_VAR 'val foo: @[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> declared in .runMe' type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="" p2: BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null - $this: GET_VAR 'callee: kotlin.Function0 declared in .main.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .main' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null - $receiver: GET_VAR 'val f: kotlin.Function0 declared in .main' type=kotlin.Function0 origin=null + $this: GET_VAR 'callee: kotlin.Function0 declared in .runMe.suspendConversion' type=kotlin.Function0 origin=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .runMe' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + $receiver: GET_VAR 'val f: kotlin.Function0 declared in .runMe' type=kotlin.Function0 origin=null diff --git a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.ir.txt index f0868d78529..d3893901a94 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.ir.txt @@ -1,5 +1,5 @@ FILE fqName: fileName:/suspendConversionForExtensionFunction.kt - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:foo type:@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> [val] FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=LAMBDA @@ -7,22 +7,22 @@ FILE fqName: fileName:/suspendConversionForExtensionFunction.kt $receiver: VALUE_PARAMETER name:$this$null type:kotlin.String VALUE_PARAMETER name:it index:0 type:kotlin.coroutines.SuspendFunction0 BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (it: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in .main' + RETURN type=kotlin.Nothing from='local final fun (it: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in .runMe' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit VAR name:f type:kotlin.Function0 [val] FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .main' + RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .runMe' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE - $this: GET_VAR 'val foo: @[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> declared in .main' type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=VARIABLE_AS_FUNCTION + $this: GET_VAR 'val foo: @[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> declared in .runMe' type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="" p2: BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null - $this: GET_VAR 'callee: kotlin.Function0 declared in .main.suspendConversion0' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .main' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null - $receiver: GET_VAR 'val f: kotlin.Function0 declared in .main' type=kotlin.Function0 origin=null + $this: GET_VAR 'callee: kotlin.Function0 declared in .runMe.suspendConversion0' type=kotlin.Function0 origin=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .runMe' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + $receiver: GET_VAR 'val f: kotlin.Function0 declared in .runMe' type=kotlin.Function0 origin=null diff --git a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.kt b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.kt index 1f7e701c79e..17a37ae9288 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.kt +++ b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.kt @@ -1,10 +1,7 @@ // SKIP_KT_DUMP // !LANGUAGE: +SuspendConversion -// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR -// ^ KT-57755: Fix computing a mangled name for the `main` function - -fun main() { +fun runMe() { val foo: String.(suspend () -> Unit) -> Unit = {} val f: () -> Unit = {} "".foo(f) diff --git a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.sig.kt.txt b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.sig.kt.txt index 319060375c2..04aaf0ff8c8 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.sig.kt.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.sig.kt.txt @@ -1,14 +1,10 @@ // CHECK JVM_IR: -// Mangled name: #main(){} -// Mangled name for the signature computed from Ir: main(){} -// Mangled name for the signature computed from Descriptor: main(){}%suspendConversionForExtensionFunction.kt -// Public signature by IR: /main|-4284757841571462650[0] -// Public signature by IR debug description: main(){} -// Public signature by Frontend: /main|8952895695315889943[0] -// Public signature by Frontend debug description: main(){}%suspendConversionForExtensionFunction.kt +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} // CHECK JS_IR NATIVE: -// Mangled name: #main(){} -// Public signature: /main|-4284757841571462650[0] -// Public signature debug description: main(){} -fun main(): Unit +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} +fun runMe(): Unit diff --git a/compiler/testData/ir/irText/firProblems/AssignmentOperator.fir.ir.txt b/compiler/testData/ir/irText/firProblems/AssignmentOperator.fir.ir.txt index 6890558c564..4dbd6bc4f2c 100644 --- a/compiler/testData/ir/irText/firProblems/AssignmentOperator.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AssignmentOperator.fir.ir.txt @@ -93,124 +93,124 @@ FILE fqName:foo fileName:/AssignmentOperator.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun id (t: T of foo.id): T of foo.id declared in foo' GET_VAR 't: T of foo.id declared in foo.id' type=T of foo.id origin=null - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a type:foo.A [val] CONSTRUCTOR_CALL 'public constructor () declared in foo.A' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ $this: CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null : CONST Int type=kotlin.Int value=10 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_0: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_0: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_0: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=20 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_1: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_1: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_1: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_1: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=20 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_2: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_2: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_2: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_2: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=2 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_3: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_3: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_3: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_3: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=5 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_4: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_4: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_4: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_4: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=3 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_5: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_5: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_5: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_5: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_6: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_6: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_8 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_7: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_7: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_7: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_7: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_8: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_8: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_8: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_8: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_9: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_9: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_9: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_9: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_9: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_9: foo.A declared in foo.runMe' type=foo.A origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_10: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_10: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_10: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_10: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_10: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_10: foo.A declared in foo.runMe' type=foo.A origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_11 type:kotlin.Int [val] @@ -219,8 +219,8 @@ FILE fqName:foo fileName:/AssignmentOperator.kt CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.B' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' type=foo.B : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_11: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_11: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_11: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_11: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_12 type:kotlin.Int [val] @@ -229,8 +229,8 @@ FILE fqName:foo fileName:/AssignmentOperator.kt CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.B' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' type=foo.B : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_12: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_12: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_12: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_12: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.B' type=kotlin.Unit origin=EQ @@ -263,12 +263,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_14 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_13: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_14: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_13: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_14: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_13: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_14: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_13: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_14: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=20 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_15 type:kotlin.Array [val] @@ -278,12 +278,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_16 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_15: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_16: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_15: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_16: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_15: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_16: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_15: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_16: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=20 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_17 type:kotlin.Array [val] @@ -293,12 +293,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_18 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_17: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_18: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_17: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_18: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_17: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_18: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_17: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_18: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=2 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_19 type:kotlin.Array [val] @@ -308,12 +308,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_20 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_19: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_20: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_19: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_20: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_19: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_20: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_19: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_20: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=5 BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_21 type:kotlin.Array [val] @@ -323,12 +323,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_22 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_21: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_22: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_21: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_22: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_21: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_22: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_21: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_22: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=3 VAR IR_TEMPORARY_VARIABLE name:tmp_23 type:kotlin.Array [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=kotlin.Array origin=null @@ -338,15 +338,15 @@ FILE fqName:foo fileName:/AssignmentOperator.kt CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_25 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_23: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_24: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_23: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_24: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_23: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_24: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_23: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_24: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_25: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_25: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - GET_VAR 'val tmp_25: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + GET_VAR 'val tmp_25: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_26 type:kotlin.Array [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=kotlin.Array origin=null : kotlin.Array @@ -355,15 +355,15 @@ FILE fqName:foo fileName:/AssignmentOperator.kt CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_28 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_26: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_27: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_26: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_27: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_26: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_27: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_26: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_27: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_28: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_28: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - GET_VAR 'val tmp_28: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + GET_VAR 'val tmp_28: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_29 type:kotlin.Array [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=kotlin.Array origin=null : kotlin.Array @@ -371,16 +371,16 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_30 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_29: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_30: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_29: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_30: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_29: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_30: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_29: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_30: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_29: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_30: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_29: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_30: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_31 type:kotlin.Array [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=kotlin.Array origin=null : kotlin.Array @@ -388,73 +388,73 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_32 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_31: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_32: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_31: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_32: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_31: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_32: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_31: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_32: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_31: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_32: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_31: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_32: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_33 type:kotlin.Array [val] CALL 'public final fun (): kotlin.Array declared in foo' type=kotlin.Array origin=GET_PROPERTY VAR IR_TEMPORARY_VARIABLE name:tmp_34 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_35 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_35: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_35: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - GET_VAR 'val tmp_35: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + GET_VAR 'val tmp_35: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_36 type:kotlin.Array [val] CALL 'public final fun (): kotlin.Array declared in foo' type=kotlin.Array origin=GET_PROPERTY VAR IR_TEMPORARY_VARIABLE name:tmp_37 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_38 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_36: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_37: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_36: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_37: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_36: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_37: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_36: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_37: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_38: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_38: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - GET_VAR 'val tmp_38: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + GET_VAR 'val tmp_38: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_39 type:kotlin.Array [val] CALL 'public final fun (): kotlin.Array declared in foo' type=kotlin.Array origin=GET_PROPERTY VAR IR_TEMPORARY_VARIABLE name:tmp_40 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_39: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_40: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_39: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_40: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_39: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_40: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_39: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_40: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_39: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_40: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_39: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_40: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_41 type:kotlin.Array [val] CALL 'public final fun (): kotlin.Array declared in foo' type=kotlin.Array origin=GET_PROPERTY VAR IR_TEMPORARY_VARIABLE name:tmp_42 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_41: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_42: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_41: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_42: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_41: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_42: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_41: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_42: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_41: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_42: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_41: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_42: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/firProblems/AssignmentOperator.fir.kt.txt b/compiler/testData/ir/irText/firProblems/AssignmentOperator.fir.kt.txt index 0af99456531..4cc9ec804bb 100644 --- a/compiler/testData/ir/irText/firProblems/AssignmentOperator.fir.kt.txt +++ b/compiler/testData/ir/irText/firProblems/AssignmentOperator.fir.kt.txt @@ -36,7 +36,7 @@ fun id(t: T): T { return t } -fun main() { +fun runMe() { val a: A = A() id(t = a).( = 10) { // BLOCK diff --git a/compiler/testData/ir/irText/firProblems/AssignmentOperator.ir.txt b/compiler/testData/ir/irText/firProblems/AssignmentOperator.ir.txt index 5ee48a23099..01ace2f0ef4 100644 --- a/compiler/testData/ir/irText/firProblems/AssignmentOperator.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AssignmentOperator.ir.txt @@ -93,128 +93,128 @@ FILE fqName:foo fileName:/AssignmentOperator.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun id (t: T of foo.id): T of foo.id declared in foo' GET_VAR 't: T of foo.id declared in foo.id' type=T of foo.id origin=null - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a type:foo.A [val] CONSTRUCTOR_CALL 'public constructor () declared in foo.A' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ $this: CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null : CONST Int type=kotlin.Int value=10 BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_0: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_0: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_0: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_0: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=20 BLOCK type=kotlin.Unit origin=MINUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=MINUSEQ - $this: GET_VAR 'val tmp_1: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_1: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=MINUSEQ - $this: GET_VAR 'val tmp_1: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_1: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=20 BLOCK type=kotlin.Unit origin=MULTEQ VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=MULTEQ - $this: GET_VAR 'val tmp_2: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_2: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MULTEQ $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=MULTEQ - $this: GET_VAR 'val tmp_2: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_2: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=2 BLOCK type=kotlin.Unit origin=DIVEQ VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=DIVEQ - $this: GET_VAR 'val tmp_3: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_3: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIVEQ $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=DIVEQ - $this: GET_VAR 'val tmp_3: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_3: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=5 BLOCK type=kotlin.Unit origin=PERCEQ VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=PERCEQ - $this: GET_VAR 'val tmp_4: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_4: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PERCEQ $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=PERCEQ - $this: GET_VAR 'val tmp_4: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_4: foo.A declared in foo.runMe' type=foo.A origin=null other: CONST Int type=kotlin.Int value=3 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_5 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_5: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_5: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_5: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_5: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_6: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_6: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_8 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_7: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_7: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_7: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_7: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_8: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_8: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_8: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_8: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null BLOCK type=kotlin.Int origin=PREFIX_INCR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_9: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_9: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_9: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_9: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_9: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_9: foo.A declared in foo.runMe' type=foo.A origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:foo.A [val] CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=foo.A origin=null : foo.A - t: GET_VAR 'val a: foo.A declared in foo.main' type=foo.A origin=null + t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null BLOCK type=kotlin.Int origin=PREFIX_DECR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_10: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_10: foo.A declared in foo.runMe' type=foo.A origin=null : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_10: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_10: foo.A declared in foo.runMe' type=foo.A origin=null CALL 'public final fun (): kotlin.Int declared in foo.A' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_10: foo.A declared in foo.main' type=foo.A origin=null + $this: GET_VAR 'val tmp_10: foo.A declared in foo.runMe' type=foo.A 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_11 type:foo.B [val] @@ -222,12 +222,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_12 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in foo.B' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_11: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_11: foo.B declared in foo.runMe' type=foo.B origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.B' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_11: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_11: foo.B declared in foo.runMe' type=foo.B origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_12: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_12: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_12: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_12: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_13 type:foo.B [val] @@ -235,36 +235,36 @@ FILE fqName:foo fileName:/AssignmentOperator.kt BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_14 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in foo.B' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_13: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_13: foo.B declared in foo.runMe' type=foo.B origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.B' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_13: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_13: foo.B declared in foo.runMe' type=foo.B origin=null : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_14: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_14: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_14: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_14: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_15 type:foo.B [val] GET_OBJECT 'CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' type=foo.B BLOCK type=kotlin.Int origin=PREFIX_INCR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.B' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_15: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_15: foo.B declared in foo.runMe' type=foo.B origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR $this: CALL 'public final fun (): kotlin.Int declared in foo.B' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_15: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_15: foo.B declared in foo.runMe' type=foo.B origin=null CALL 'public final fun (): kotlin.Int declared in foo.B' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_15: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_15: foo.B declared in foo.runMe' type=foo.B origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_16 type:foo.B [val] GET_OBJECT 'CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' type=foo.B BLOCK type=kotlin.Int origin=PREFIX_DECR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in foo.B' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_16: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_16: foo.B declared in foo.runMe' type=foo.B origin=null : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL 'public final fun (): kotlin.Int declared in foo.B' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_16: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_16: foo.B declared in foo.runMe' type=foo.B origin=null CALL 'public final fun (): kotlin.Int declared in foo.B' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_16: foo.B declared in foo.main' type=foo.B origin=null + $this: GET_VAR 'val tmp_16: foo.B declared in foo.runMe' type=foo.B origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=EQ $this: CALL 'public final fun id (t: T of foo.id): T of foo.id declared in foo' type=kotlin.Array origin=null : kotlin.Array @@ -279,12 +279,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_18 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_17: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_18: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_17: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_18: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_17: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_18: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_17: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_18: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=20 BLOCK type=kotlin.Unit origin=MINUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_19 type:kotlin.Array [val] @@ -294,12 +294,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_20 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=MINUSEQ - $this: GET_VAR 'val tmp_19: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_20: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_19: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_20: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=MINUSEQ - $this: GET_VAR 'val tmp_19: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_20: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_19: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_20: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=20 BLOCK type=kotlin.Unit origin=MULTEQ VAR IR_TEMPORARY_VARIABLE name:tmp_21 type:kotlin.Array [val] @@ -309,12 +309,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_22 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=MULTEQ - $this: GET_VAR 'val tmp_21: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_22: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_21: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_22: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MULTEQ $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=MULTEQ - $this: GET_VAR 'val tmp_21: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_22: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_21: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_22: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=2 BLOCK type=kotlin.Unit origin=DIVEQ VAR IR_TEMPORARY_VARIABLE name:tmp_23 type:kotlin.Array [val] @@ -324,12 +324,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_24 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=DIVEQ - $this: GET_VAR 'val tmp_23: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_24: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_23: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_24: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIVEQ $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=DIVEQ - $this: GET_VAR 'val tmp_23: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_24: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_23: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_24: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=5 BLOCK type=kotlin.Unit origin=PERCEQ VAR IR_TEMPORARY_VARIABLE name:tmp_25 type:kotlin.Array [val] @@ -339,12 +339,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_26 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=PERCEQ - $this: GET_VAR 'val tmp_25: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_26: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_25: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_26: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PERCEQ $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PERCEQ - $this: GET_VAR 'val tmp_25: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_26: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_25: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_26: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=3 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR @@ -356,14 +356,14 @@ FILE fqName:foo fileName:/AssignmentOperator.kt CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_29 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_27: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_28: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_27: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_28: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_27: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_28: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_27: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_28: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_29: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_29: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_29: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_29: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_30 type:kotlin.Array [val] @@ -374,14 +374,14 @@ FILE fqName:foo fileName:/AssignmentOperator.kt CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_32 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_30: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_31: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_30: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_31: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_30: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_31: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_30: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_31: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_32: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_32: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_32: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_32: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_33 type:kotlin.Array [val] @@ -391,15 +391,15 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_34 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_33: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_34: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_35 type:kotlin.Array [val] @@ -409,15 +409,15 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_36 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_35: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_36: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_35: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_36: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_35: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_36: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_35: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_36: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_35: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_36: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_35: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_36: kotlin.Int declared in foo.runMe' 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_37 type:kotlin.Array [val] @@ -426,14 +426,14 @@ FILE fqName:foo fileName:/AssignmentOperator.kt CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_39 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_37: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_38: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_37: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_38: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_37: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_38: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_37: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_38: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_39: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_39: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_39: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_39: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_40 type:kotlin.Array [val] @@ -442,14 +442,14 @@ FILE fqName:foo fileName:/AssignmentOperator.kt CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_42 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_40: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_41: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_40: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_41: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_40: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_41: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_40: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_41: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_42: kotlin.Int declared in foo.main' type=kotlin.Int origin=null - GET_VAR 'val tmp_42: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_42: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null + GET_VAR 'val tmp_42: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_43 type:kotlin.Array [val] @@ -457,15 +457,15 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_44 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_43: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_44: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_43: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_44: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_43: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_44: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_43: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_44: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_43: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_44: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_43: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_44: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_45 type:kotlin.Array [val] @@ -473,12 +473,12 @@ FILE fqName:foo fileName:/AssignmentOperator.kt VAR IR_TEMPORARY_VARIABLE name:tmp_46 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_45: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_46: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_45: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_46: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_45: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_46: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_45: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_46: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_45: kotlin.Array declared in foo.main' type=kotlin.Array origin=null - index: GET_VAR 'val tmp_46: kotlin.Int declared in foo.main' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_45: kotlin.Array declared in foo.runMe' type=kotlin.Array origin=null + index: GET_VAR 'val tmp_46: kotlin.Int declared in foo.runMe' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/firProblems/AssignmentOperator.kt b/compiler/testData/ir/irText/firProblems/AssignmentOperator.kt index 502faef21b3..456afb8c907 100644 --- a/compiler/testData/ir/irText/firProblems/AssignmentOperator.kt +++ b/compiler/testData/ir/irText/firProblems/AssignmentOperator.kt @@ -1,5 +1,3 @@ -// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR -// ^ KT-57755: Fix computing a mangled name for the `main` function package foo class A { @@ -16,7 +14,7 @@ fun id(t: T): T { return t } -fun main() { +fun runMe() { val a = A() id(a).prop = 10 diff --git a/compiler/testData/ir/irText/firProblems/AssignmentOperator.kt.txt b/compiler/testData/ir/irText/firProblems/AssignmentOperator.kt.txt index 1a28583687b..194c1128c20 100644 --- a/compiler/testData/ir/irText/firProblems/AssignmentOperator.kt.txt +++ b/compiler/testData/ir/irText/firProblems/AssignmentOperator.kt.txt @@ -36,7 +36,7 @@ fun id(t: T): T { return t } -fun main() { +fun runMe() { val a: A = A() id(t = a).( = 10) { // BLOCK diff --git a/compiler/testData/ir/irText/firProblems/AssignmentOperator.sig.kt.txt b/compiler/testData/ir/irText/firProblems/AssignmentOperator.sig.kt.txt index 6a8f2f0688b..aeade5e7b66 100644 --- a/compiler/testData/ir/irText/firProblems/AssignmentOperator.sig.kt.txt +++ b/compiler/testData/ir/irText/firProblems/AssignmentOperator.sig.kt.txt @@ -90,15 +90,12 @@ object B { fun id(t: T): T // CHECK JVM_IR: -// Mangled name: foo#main(){} -// Mangled name for the signature computed from Ir: main(){} -// Mangled name for the signature computed from Descriptor: main(){}%AssignmentOperator.kt -// Public signature by IR: foo/main|-4284757841571462650[0] -// Public signature by IR debug description: main(){} -// Public signature by Frontend: foo/main|7392120756922895329[0] -// Public signature by Frontend debug description: main(){}%AssignmentOperator.kt +// Mangled name: foo#runMe(){} +// Public signature: foo/runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} // CHECK JS_IR NATIVE: -// Mangled name: foo#main(){} -// Public signature: foo/main|-4284757841571462650[0] -// Public signature debug description: main(){} -fun main(): Unit +// Mangled name: foo#runMe(){} +// Public signature: foo/runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} +fun runMe(): Unit + diff --git a/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt b/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt index 7d883350206..f1885f020d8 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt @@ -1,5 +1,5 @@ FILE fqName: fileName:/kt55458.kt - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Pair [val] CALL 'public final fun to (that: B of kotlin.to): kotlin.Pair declared in kotlin' type=kotlin.Pair origin=null @@ -9,6 +9,6 @@ FILE fqName: fileName:/kt55458.kt that: CONST Int type=kotlin.Int value=2 VAR name:a type:kotlin.Int [val] CALL 'public final fun component1 (): A of kotlin.Pair declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_0: kotlin.Pair declared in .main' type=kotlin.Pair origin=null + $this: GET_VAR 'val tmp_0: kotlin.Pair declared in .runMe' type=kotlin.Pair origin=null CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val a: kotlin.Int declared in .main' type=kotlin.Int origin=null + message: GET_VAR 'val a: kotlin.Int declared in .runMe' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/firProblems/kt55458.fir.kt.txt b/compiler/testData/ir/irText/firProblems/kt55458.fir.kt.txt index 8830e3da709..3a41bbbe5df 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.fir.kt.txt +++ b/compiler/testData/ir/irText/firProblems/kt55458.fir.kt.txt @@ -1,4 +1,4 @@ -fun main() { +fun runMe() { val tmp_0: Pair = 1.to(that = 2) val a: Int = tmp_0.component1() println(message = a) diff --git a/compiler/testData/ir/irText/firProblems/kt55458.ir.txt b/compiler/testData/ir/irText/firProblems/kt55458.ir.txt index 9d0eb5bb427..69ce012a4e0 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt55458.ir.txt @@ -1,5 +1,5 @@ FILE fqName: fileName:/kt55458.kt - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Pair [val] @@ -10,6 +10,6 @@ FILE fqName: fileName:/kt55458.kt that: CONST Int type=kotlin.Int value=2 VAR name:a type:kotlin.Int [val] CALL 'public final fun component1 (): A of kotlin.Pair declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_0: kotlin.Pair declared in .main' type=kotlin.Pair origin=null + $this: GET_VAR 'val tmp_0: kotlin.Pair declared in .runMe' type=kotlin.Pair origin=null CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val a: kotlin.Int declared in .main' type=kotlin.Int origin=null + message: GET_VAR 'val a: kotlin.Int declared in .runMe' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/firProblems/kt55458.kt b/compiler/testData/ir/irText/firProblems/kt55458.kt index 044729809cc..3bde0ab3032 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.kt +++ b/compiler/testData/ir/irText/firProblems/kt55458.kt @@ -1,13 +1,10 @@ // WITH_STDLIB // IGNORE_BACKEND_K1: JS_IR -// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR -// ^ KT-57755: Fix computing a mangled name for the `main` function - // KT-61141: `println (message: kotlin.Any?)` instead of `println (message: kotlin.Int)` // IGNORE_BACKEND_K1: NATIVE -fun main() { +fun runMe() { val (a: Any, _) = 1 to 2 println(a) } diff --git a/compiler/testData/ir/irText/firProblems/kt55458.kt.txt b/compiler/testData/ir/irText/firProblems/kt55458.kt.txt index c1c3436eebd..9d998a7d477 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.kt.txt +++ b/compiler/testData/ir/irText/firProblems/kt55458.kt.txt @@ -1,4 +1,4 @@ -fun main() { +fun runMe() { // COMPOSITE { val tmp_0: Pair = 1.to(that = 2) val a: Int = tmp_0.component1() diff --git a/compiler/testData/ir/irText/firProblems/kt55458.sig.kt.txt b/compiler/testData/ir/irText/firProblems/kt55458.sig.kt.txt index 3ea515f1def..04aaf0ff8c8 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.sig.kt.txt +++ b/compiler/testData/ir/irText/firProblems/kt55458.sig.kt.txt @@ -1,14 +1,10 @@ // CHECK JVM_IR: -// Mangled name: #main(){} -// Mangled name for the signature computed from Ir: main(){} -// Mangled name for the signature computed from Descriptor: main(){}%kt55458.kt -// Public signature by IR: /main|-4284757841571462650[0] -// Public signature by IR debug description: main(){} -// Public signature by Frontend: /main|-1793468409000137506[0] -// Public signature by Frontend debug description: main(){}%kt55458.kt +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} // CHECK JS_IR NATIVE: -// Mangled name: #main(){} -// Public signature: /main|-4284757841571462650[0] -// Public signature debug description: main(){} -fun main(): Unit +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} +fun runMe(): Unit diff --git a/compiler/testData/ir/irText/firProblems/localCompanion.ir.txt b/compiler/testData/ir/irText/firProblems/localCompanion.ir.txt index 210feb0d52e..17a729fc6f1 100644 --- a/compiler/testData/ir/irText/firProblems/localCompanion.ir.txt +++ b/compiler/testData/ir/irText/firProblems/localCompanion.ir.txt @@ -1,22 +1,22 @@ FILE fqName: fileName:/localCompanion.kt - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CLASS CLASS name:Foo modality:FINAL visibility:local superTypes:[kotlin.Any] - $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.main.Foo - CONSTRUCTOR visibility:public <> () returnType:.main.Foo [primary] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.runMe.Foo + CONSTRUCTOR visibility:public <> () returnType:.runMe.Foo [primary] BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:local superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:local [companion] superTypes:[kotlin.Any] annotations: Suppress(names = ["WRONG_MODIFIER_CONTAINING_DECLARATION"]) - $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.main.Foo.Companion - CONSTRUCTOR visibility:private <> () returnType:.main.Foo.Companion [primary] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.runMe.Foo.Companion + CONSTRUCTOR visibility:private <> () returnType:.runMe.Foo.Companion [primary] BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:local [companion] superTypes:[kotlin.Any]' - FUN name:bar visibility:public modality:FINAL <> ($this:.main.Foo.Companion) returnType:kotlin.Unit - $this: VALUE_PARAMETER name: type:.main.Foo.Companion + FUN name:bar visibility:public modality:FINAL <> ($this:.runMe.Foo.Companion) returnType:kotlin.Unit + $this: VALUE_PARAMETER name: type:.runMe.Foo.Companion BLOCK_BODY FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: @@ -44,5 +44,5 @@ FILE fqName: fileName:/localCompanion.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CALL 'public final fun bar (): kotlin.Unit declared in .main.Foo.Companion' type=kotlin.Unit origin=null - $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:local [companion] superTypes:[kotlin.Any]' type=.main.Foo.Companion + CALL 'public final fun bar (): kotlin.Unit declared in .runMe.Foo.Companion' type=kotlin.Unit origin=null + $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:local [companion] superTypes:[kotlin.Any]' type=.runMe.Foo.Companion diff --git a/compiler/testData/ir/irText/firProblems/localCompanion.kt b/compiler/testData/ir/irText/firProblems/localCompanion.kt index e6185a295f2..f5427cccd85 100644 --- a/compiler/testData/ir/irText/firProblems/localCompanion.kt +++ b/compiler/testData/ir/irText/firProblems/localCompanion.kt @@ -1,9 +1,6 @@ // FIR_IDENTICAL -// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR -// ^ KT-57755: Fix computing a mangled name for the `main` function - -fun main() { +fun runMe() { class Foo { @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") companion object { diff --git a/compiler/testData/ir/irText/firProblems/localCompanion.kt.txt b/compiler/testData/ir/irText/firProblems/localCompanion.kt.txt index edff7a62f7e..fe405b97eab 100644 --- a/compiler/testData/ir/irText/firProblems/localCompanion.kt.txt +++ b/compiler/testData/ir/irText/firProblems/localCompanion.kt.txt @@ -1,4 +1,4 @@ -fun main() { +fun runMe() { local class Foo { constructor() /* primary */ { super/*Any*/() diff --git a/compiler/testData/ir/irText/firProblems/localCompanion.sig.kt.txt b/compiler/testData/ir/irText/firProblems/localCompanion.sig.kt.txt index 9beb7f3e4fc..04aaf0ff8c8 100644 --- a/compiler/testData/ir/irText/firProblems/localCompanion.sig.kt.txt +++ b/compiler/testData/ir/irText/firProblems/localCompanion.sig.kt.txt @@ -1,14 +1,10 @@ // CHECK JVM_IR: -// Mangled name: #main(){} -// Mangled name for the signature computed from Ir: main(){} -// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt -// Public signature by IR: /main|-4284757841571462650[0] -// Public signature by IR debug description: main(){} -// Public signature by Frontend: /main|1798078925369608927[0] -// Public signature by Frontend debug description: main(){}%localCompanion.kt +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} // CHECK JS_IR NATIVE: -// Mangled name: #main(){} -// Public signature: /main|-4284757841571462650[0] -// Public signature debug description: main(){} -fun main(): Unit +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} +fun runMe(): Unit diff --git a/compiler/testData/ir/irText/types/definitelyNonNull.ir.txt b/compiler/testData/ir/irText/types/definitelyNonNull.ir.txt index e13ced597cb..761342cf3da 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNull.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNull.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/definitelyNonNull.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'val tmp_0: T of .elvisLike declared in .elvisLike' type=T of .elvisLike origin=null - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/types/definitelyNonNull.kt b/compiler/testData/ir/irText/types/definitelyNonNull.kt index a2099972ff3..dd2cdf1239a 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNull.kt +++ b/compiler/testData/ir/irText/types/definitelyNonNull.kt @@ -1,12 +1,9 @@ // FIR_IDENTICAL //!LANGUAGE: +DefinitelyNonNullableTypes -// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR -// ^ KT-57755: Fix computing a mangled name for the `main` function - fun elvisLike(x: T, y: T & Any): T & Any = x ?: y -fun main() { +fun runMe() { elvisLike("", "").length // OK elvisLike(null, "").length // OK diff --git a/compiler/testData/ir/irText/types/definitelyNonNull.kt.txt b/compiler/testData/ir/irText/types/definitelyNonNull.kt.txt index 97d4b886296..5f0c42742e4 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNull.kt.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNull.kt.txt @@ -8,7 +8,7 @@ fun elvisLike(x: T, y: (T & Any)): (T & Any) { } } -fun main() { +fun runMe() { elvisLike(x = "", y = "").() /*~> Unit */ elvisLike(x = null, y = "").() /*~> Unit */ elvisLike(x = "", y = "").() /*~> Unit */ diff --git a/compiler/testData/ir/irText/types/definitelyNonNull.sig.kt.txt b/compiler/testData/ir/irText/types/definitelyNonNull.sig.kt.txt index a04c3ee696e..7a51c68d6d9 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNull.sig.kt.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNull.sig.kt.txt @@ -9,16 +9,12 @@ fun elvisLike(x: T, y: (T & Any)): (T & Any) // CHECK JVM_IR: -// Mangled name: #main(){} -// Mangled name for the signature computed from Ir: main(){} -// Mangled name for the signature computed from Descriptor: main(){}%definitelyNonNull.kt -// Public signature by IR: /main|-4284757841571462650[0] -// Public signature by IR debug description: main(){} -// Public signature by Frontend: /main|536315142565162436[0] -// Public signature by Frontend debug description: main(){}%definitelyNonNull.kt +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} // CHECK JS_IR NATIVE: -// Mangled name: #main(){} -// Public signature: /main|-4284757841571462650[0] -// Public signature debug description: main(){} -fun main(): Unit +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} +fun runMe(): Unit diff --git a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt index 56779db656e..0c9bb29c422 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt @@ -45,7 +45,7 @@ FILE fqName: fileName:/dontLeaveStubTypesInSetter.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (x: kotlin.collections.MutableList.foo>): .Foo.foo> declared in ' CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null - FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + FUN name:runMe visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:x type:kotlin.collections.List [val] CALL 'public final fun buildList (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null @@ -56,12 +56,12 @@ FILE fqName: fileName:/dontLeaveStubTypesInSetter.kt BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public abstract fun add (element: E of kotlin.collections.MutableList): kotlin.Boolean declared in kotlin.collections.MutableList' type=kotlin.Boolean origin=null - $this: GET_VAR '$this$buildList: kotlin.collections.MutableList declared in .main.' type=kotlin.collections.MutableList origin=null + $this: GET_VAR '$this$buildList: kotlin.collections.MutableList declared in .runMe.' type=kotlin.collections.MutableList origin=null element: CONST String type=kotlin.String value="" VAR name:foo type:.Foo [val] CALL 'public final fun foo (x: kotlin.collections.MutableList.foo>): .Foo.foo> declared in ' type=.Foo origin=null : kotlin.String - x: GET_VAR '$this$buildList: kotlin.collections.MutableList declared in .main.' type=kotlin.collections.MutableList origin=null + x: GET_VAR '$this$buildList: kotlin.collections.MutableList declared in .runMe.' type=kotlin.collections.MutableList origin=null CALL 'public final fun (: T of .Foo): kotlin.Unit declared in .Foo' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val foo: .Foo declared in .main.' type=.Foo origin=null + $this: GET_VAR 'val foo: .Foo declared in .runMe.' type=.Foo origin=null : CONST String type=kotlin.String value="" diff --git a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt index 728ad67678a..0bc99fd25a3 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt @@ -1,14 +1,11 @@ // FIR_IDENTICAL // WITH_STDLIB -// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR -// ^KT-57755: Fix computing a mangled name for the `main` function - class Foo(var x: T) fun foo(x: MutableList): Foo = TODO() -fun main() { +fun runMe() { val x = buildList { add("") val foo = foo(this) diff --git a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt.txt b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt.txt index 3ae57d294e2..3f98d789639 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt.txt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt.txt @@ -16,7 +16,7 @@ fun foo(x: MutableList): Foo { return TODO() } -fun main() { +fun runMe() { val x: List = buildList(builderAction = local fun MutableList.() { $this$buildList.add(element = "") /*~> Unit */ val foo: Foo = foo(x = $this$buildList) diff --git a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.sig.kt.txt b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.sig.kt.txt index a2b362480b5..a12c0bc6258 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.sig.kt.txt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.sig.kt.txt @@ -41,16 +41,12 @@ class Foo { fun foo(x: MutableList): Foo // CHECK JVM_IR: -// Mangled name: #main(){} -// Mangled name for the signature computed from Ir: main(){} -// Mangled name for the signature computed from Descriptor: main(){}%dontLeaveStubTypesInSetter.kt -// Public signature by IR: /main|-4284757841571462650[0] -// Public signature by IR debug description: main(){} -// Public signature by Frontend: /main|-2535684763027974809[0] -// Public signature by Frontend debug description: main(){}%dontLeaveStubTypesInSetter.kt +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} // CHECK JS_IR NATIVE: -// Mangled name: #main(){} -// Public signature: /main|-4284757841571462650[0] -// Public signature debug description: main(){} -fun main(): Unit +// Mangled name: #runMe(){} +// Public signature: /runMe|1754039929145531074[0] +// Public signature debug description: runMe(){} +fun runMe(): Unit