From 733c7579aabcc03c34f6ff3bea532c161ed30d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Sch=C3=A4fer?= Date: Fri, 1 Nov 2019 12:35:22 +0100 Subject: [PATCH] Normalize names of temporary variables in IrTextTests --- .../jetbrains/kotlin/ir/util/DumpIrTree.kt | 18 ++-- .../kotlin/ir/util/RenderIrElement.kt | 17 +++- .../ir/irJsText/dynamic/dynamicCall.txt | 6 +- .../irJsText/dynamic/dynamicElvisOperator.txt | 6 +- .../irJsText/dynamic/dynamicMemberAccess.txt | 6 +- .../dynamic/dynamicMemberAssignment.txt | 6 +- .../dynamicMemberAugmentedAssignment.txt | 30 +++---- .../dynamicMemberIncrementDecrement.txt | 24 +++--- .../ir/irJsText/scripting/safeCalls.txt | 36 ++++---- ...tReorderingInDelegatingConstructorCall.txt | 24 +++--- .../classes/dataClassWithArrayMembers.txt | 28 +++--- .../ir/irText/classes/dataClasses.txt | 22 ++--- .../ir/irText/classes/dataClassesGeneric.txt | 16 ++-- .../ir/irText/classes/inlineClass.txt | 4 +- .../lambdaInDataClassDefaultParameter.txt | 8 +- .../ir/irText/classes/localClasses.fir.txt | 0 .../declarations/localDelegatedProperties.txt | 6 +- .../parameters/dataClassMembers.txt | 6 +- .../expressions/arrayAugmentedAssignment1.txt | 42 ++++----- .../expressions/arrayAugmentedAssignment2.txt | 12 +-- .../ir/irText/expressions/bangbang.txt | 6 +- .../expressions/breakContinueInLoopHeader.txt | 36 ++++---- .../expressions/breakContinueInWhen.txt | 12 +-- .../callWithReorderedArguments.txt | 16 ++-- .../irText/expressions/chainOfSafeCalls.txt | 24 +++--- .../ir/irText/expressions/coercionToUnit.txt | 12 +-- .../complexAugmentedAssignment.txt | 66 +++++++------- .../ir/irText/expressions/destructuring1.txt | 6 +- .../destructuringWithUnderscore.txt | 6 +- .../ir/irText/expressions/dotQualified.txt | 6 +- .../testData/ir/irText/expressions/elvis.txt | 30 +++---- .../irText/expressions/extFunSafeInvoke.txt | 6 +- .../nullableAnyAsIntToDouble.txt | 6 +- .../nullableFloatingPointEqeq.txt | 18 ++-- .../whenByFloatingPoint.fir.txt | 26 +++--- .../whenByFloatingPoint.txt | 26 +++--- .../testData/ir/irText/expressions/for.txt | 30 +++---- .../expressions/forWithBreakContinue.txt | 36 ++++---- .../expressions/forWithImplicitReceivers.txt | 18 ++-- .../irText/expressions/incrementDecrement.txt | 86 +++++++++---------- .../javaSyntheticPropertyAccess.txt | 18 ++-- .../ir/irText/expressions/kt16904.txt | 10 +-- .../ir/irText/expressions/kt28456.txt | 42 ++++----- .../ir/irText/expressions/kt28456b.txt | 30 +++---- .../ir/irText/expressions/kt30020.txt | 16 ++-- .../ir/irText/expressions/kt30796.txt | 72 ++++++++-------- .../ir/irText/expressions/lambdaInCAO.txt | 30 +++---- .../ir/irText/expressions/safeAssignment.txt | 6 +- .../safeCallWithIncrementDecrement.txt | 48 +++++------ .../ir/irText/expressions/safeCalls.txt | 36 ++++---- .../smartCastsWithDestructuring.txt | 6 +- .../temporaryInEnumEntryInitializer.txt | 6 +- .../expressions/temporaryInInitBlock.txt | 6 +- .../expressions/variableAsFunctionCall.txt | 12 +-- .../ir/irText/expressions/when.fir.txt | 32 +++---- .../testData/ir/irText/expressions/when.txt | 32 +++---- .../expressions/whenCoercedToUnit.fir.txt | 4 +- .../irText/expressions/whenCoercedToUnit.txt | 4 +- .../ir/irText/expressions/whenReturn.fir.txt | 10 +-- .../ir/irText/expressions/whenReturn.txt | 10 +-- .../ir/irText/expressions/whenReturnUnit.txt | 6 +- .../expressions/whenUnusedExpression.fir.txt | 4 +- .../expressions/whenUnusedExpression.txt | 4 +- .../ir/irText/expressions/whileDoWhile.txt | 24 +++--- .../irText/lambdas/destructuringInLambda.txt | 6 +- .../ir/irText/lambdas/localFunction.txt | 6 +- .../ir/irText/regressions/coercionInLoop.txt | 6 +- .../ir/irText/regressions/kt24114.fir.txt | 16 ++-- .../ir/irText/regressions/kt24114.txt | 16 ++-- .../testData/ir/irText/stubs/builtinMap.txt | 2 +- .../testData/ir/irText/types/kt30796.fir.txt | 37 -------- .../kotlin/ir/AbstractIrGeneratorTestCase.kt | 11 --- .../kotlin/ir/AbstractIrTextTestCase.kt | 10 +-- 73 files changed, 666 insertions(+), 701 deletions(-) delete mode 100644 compiler/testData/ir/irText/classes/localClasses.fir.txt delete mode 100644 compiler/testData/ir/irText/types/kt30796.fir.txt diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt index 258b1ab307a..1906552ab33 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt @@ -27,23 +27,24 @@ import org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid import org.jetbrains.kotlin.ir.visitors.acceptChildrenVoid import org.jetbrains.kotlin.utils.Printer -fun IrElement.dump(): String = +fun IrElement.dump(normalizeNames: Boolean = false): String = StringBuilder().also { sb -> - accept(DumpIrTreeVisitor(sb), "") + accept(DumpIrTreeVisitor(sb, normalizeNames), "") }.toString() -fun IrFile.dumpTreesFromLineNumber(lineNumber: Int): String { +fun IrFile.dumpTreesFromLineNumber(lineNumber: Int, normalizeNames: Boolean = false): String { val sb = StringBuilder() - accept(DumpTreeFromSourceLineVisitor(fileEntry, lineNumber, sb), null) + accept(DumpTreeFromSourceLineVisitor(fileEntry, lineNumber, sb, normalizeNames), null) return sb.toString() } class DumpIrTreeVisitor( - out: Appendable + out: Appendable, + normalizeNames: Boolean = false ) : IrElementVisitor { private val printer = Printer(out, " ") - private val elementRenderer = RenderIrElementVisitor() + private val elementRenderer = RenderIrElementVisitor(normalizeNames) private fun IrType.render() = elementRenderer.renderType(this) override fun visitElement(element: IrElement, data: String) { @@ -355,9 +356,10 @@ class DumpIrTreeVisitor( class DumpTreeFromSourceLineVisitor( val fileEntry: SourceManager.FileEntry, private val lineNumber: Int, - out: Appendable + out: Appendable, + normalizeNames: Boolean = false ) : IrElementVisitorVoid { - private val dumper = DumpIrTreeVisitor(out) + private val dumper = DumpIrTreeVisitor(out, normalizeNames) override fun visitElement(element: IrElement) { if (fileEntry.getLineNumber(element.startOffset) == lineNumber) { diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt index 7f105bc68c2..9dd8395e19d 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt @@ -25,6 +25,7 @@ import org.jetbrains.kotlin.ir.expressions.* import org.jetbrains.kotlin.ir.symbols.IrClassifierSymbol import org.jetbrains.kotlin.ir.symbols.IrSymbol import org.jetbrains.kotlin.ir.symbols.IrTypeAliasSymbol +import org.jetbrains.kotlin.ir.symbols.IrVariableSymbol import org.jetbrains.kotlin.ir.types.* import org.jetbrains.kotlin.ir.visitors.IrElementVisitor import org.jetbrains.kotlin.renderer.DescriptorRenderer @@ -35,7 +36,17 @@ import org.jetbrains.kotlin.utils.addIfNotNull fun IrElement.render() = accept(RenderIrElementVisitor(), null) -class RenderIrElementVisitor : IrElementVisitor { +class RenderIrElementVisitor(private val normalizeNames: Boolean = false) : IrElementVisitor { + private val nameMap: MutableMap = mutableMapOf() + private var temporaryIndex: Int = 0 + + private val IrVariable.normalizedName: String + get() { + if (!normalizeNames || (origin != IrDeclarationOrigin.IR_TEMPORARY_VARIABLE && origin != IrDeclarationOrigin.FOR_LOOP_ITERATOR)) + return name.asString() + + return nameMap.getOrPut(symbol) { "tmp_${temporaryIndex++}" } + } fun renderType(type: IrType) = type.render() @@ -179,7 +190,7 @@ class RenderIrElementVisitor : IrElementVisitor { buildTrimEnd { if (declaration.isVar) append("var ") else append("val ") - append(declaration.name.asString()) + append(declaration.normalizedName) append(": ") append(declaration.type.render()) append(' ') @@ -455,7 +466,7 @@ class RenderIrElementVisitor : IrElementVisitor { override fun visitVariable(declaration: IrVariable, data: Nothing?): String = declaration.runTrimEnd { - "VAR ${renderOriginIfNonTrivial()}name:$name type:${type.render()} ${renderVariableFlags()}" + "VAR ${renderOriginIfNonTrivial()}name:$normalizedName type:${type.render()} ${renderVariableFlags()}" } diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicCall.txt b/compiler/testData/ir/irJsText/dynamic/dynamicCall.txt index e04cefb6b3d..48e177593ba 100644 --- a/compiler/testData/ir/irJsText/dynamic/dynamicCall.txt +++ b/compiler/testData/ir/irJsText/dynamic/dynamicCall.txt @@ -14,19 +14,19 @@ FILE fqName: fileName:/dynamicCall.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (d: dynamic): dynamic declared in ' BLOCK type=dynamic origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] GET_VAR 'd: dynamic declared in .test2' type=dynamic origin=null WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .test2' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .test2' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=INVOKE type=dynamic receiver: DYN_MEMBER memberName='member' type=dynamic - GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .test2' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic [val] declared in .test2' type=dynamic origin=null 0: CONST Int type=kotlin.Int value=1 1: CONST Int type=kotlin.Int value=2 2: CONST Int type=kotlin.Int value=3 diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.txt b/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.txt index 31b0e3f83a6..c1455578729 100644 --- a/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.txt +++ b/compiler/testData/ir/irJsText/dynamic/dynamicElvisOperator.txt @@ -4,14 +4,14 @@ FILE fqName: fileName:/dynamicElvisOperator.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (d: dynamic): dynamic declared in ' BLOCK type=dynamic origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] GET_VAR 'd: dynamic declared in .test' type=dynamic origin=null WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: dynamic [val] declared in .test' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .test' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="other" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: dynamic [val] declared in .test' type=dynamic origin=null + then: GET_VAR 'val tmp_0: dynamic [val] declared in .test' type=dynamic origin=null diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.txt b/compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.txt index c947a601aae..af86f363c62 100644 --- a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.txt +++ b/compiler/testData/ir/irJsText/dynamic/dynamicMemberAccess.txt @@ -10,15 +10,15 @@ FILE fqName: fileName:/dynamicMemberAccess.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (d: dynamic): dynamic declared in ' BLOCK type=dynamic origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] GET_VAR 'd: dynamic declared in .test2' type=dynamic origin=null WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .test2' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .test2' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_MEMBER memberName='member' type=dynamic - GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .test2' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic [val] declared in .test2' type=dynamic origin=null diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.txt b/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.txt index 600653ff228..73e3bb4474a 100644 --- a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.txt +++ b/compiler/testData/ir/irJsText/dynamic/dynamicMemberAssignment.txt @@ -10,12 +10,12 @@ FILE fqName: fileName:/dynamicMemberAssignment.kt VALUE_PARAMETER name:d index:0 type:dynamic BLOCK_BODY BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeMemberAssignment' type=dynamic origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -23,5 +23,5 @@ FILE fqName: fileName:/dynamicMemberAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=EQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=kotlin.Unit - GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null 0: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.txt b/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.txt index 2c034329fd0..895604dcc6d 100644 --- a/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.txt +++ b/compiler/testData/ir/irJsText/dynamic/dynamicMemberAugmentedAssignment.txt @@ -26,12 +26,12 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt VALUE_PARAMETER name:d index:0 type:dynamic BLOCK_BODY BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -39,15 +39,15 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=PLUSEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="+=" BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -55,15 +55,15 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MINUSEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp1_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="-=" BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp2_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp2_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -71,15 +71,15 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MULEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp2_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="*=" BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp3_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp3_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -87,15 +87,15 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=DIVEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp3_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="/=" BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp4_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp4_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_4: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -103,5 +103,5 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MODEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp4_safe_receiver: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_4: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="%=" diff --git a/compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.txt b/compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.txt index ab00f9ed16f..c4ad7dd4613 100644 --- a/compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.txt +++ b/compiler/testData/ir/irJsText/dynamic/dynamicMemberIncrementDecrement.txt @@ -23,61 +23,61 @@ FILE fqName: fileName:/dynamicMemberIncrementDecrement.kt BLOCK_BODY VAR name:t1 type:dynamic [val] BLOCK type=dynamic origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=PREFIX_INCREMENT type=dynamic receiver: DYN_MEMBER memberName='prefixIncr' type=dynamic - GET_VAR 'val tmp0_safe_receiver: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null VAR name:t2 type:dynamic [val] BLOCK type=dynamic origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_safe_receiver: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + arg0: GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=PREFIX_DECREMENT type=dynamic receiver: DYN_MEMBER memberName='prefixDecr' type=dynamic - GET_VAR 'val tmp1_safe_receiver: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null VAR name:t3 type:dynamic [val] BLOCK type=dynamic origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp2_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp2_safe_receiver: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + arg0: GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=POSTFIX_INCREMENT type=dynamic receiver: DYN_MEMBER memberName='postfixIncr' type=dynamic - GET_VAR 'val tmp2_safe_receiver: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null VAR name:t4 type:dynamic [val] BLOCK type=dynamic origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp3_safe_receiver type:dynamic [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:dynamic [val] GET_VAR 'd: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp3_safe_receiver: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + arg0: GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=POSTFIX_DECREMENT type=dynamic receiver: DYN_MEMBER memberName='postfixDecr' type=dynamic - GET_VAR 'val tmp3_safe_receiver: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null diff --git a/compiler/testData/ir/irJsText/scripting/safeCalls.txt b/compiler/testData/ir/irJsText/scripting/safeCalls.txt index 949f59460b6..6846f68e864 100644 --- a/compiler/testData/ir/irJsText/scripting/safeCalls.txt +++ b/compiler/testData/ir/irJsText/scripting/safeCalls.txt @@ -67,36 +67,36 @@ FILE fqName: fileName:/safeCalls.kts BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (x: kotlin.String?): kotlin.Int? declared in .SafeCalls' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.String? [val] GET_VAR 'x: kotlin.String? declared in .SafeCalls.test1' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .SafeCalls.test1' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .SafeCalls.test1' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .SafeCalls.test1' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .SafeCalls.test1' type=kotlin.String? origin=null FUN name:test2 visibility:public modality:FINAL <> ($this:.SafeCalls, x:kotlin.String?) returnType:kotlin.Int? $this: VALUE_PARAMETER name: type:.SafeCalls VALUE_PARAMETER name:x index:0 type:kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (x: kotlin.String?): kotlin.Int? declared in .SafeCalls' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String? [val] GET_VAR 'x: kotlin.String? declared in .SafeCalls.test2' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .SafeCalls.test2' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .SafeCalls.test2' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .SafeCalls.test2' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .SafeCalls.test2' type=kotlin.String? origin=null FUN name:test3 visibility:public modality:FINAL <> ($this:.SafeCalls, x:kotlin.String?, y:kotlin.Any?) returnType:kotlin.Boolean? $this: VALUE_PARAMETER name: type:.SafeCalls VALUE_PARAMETER name:x index:0 type:kotlin.String? @@ -104,37 +104,37 @@ FILE fqName: fileName:/safeCalls.kts BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (x: kotlin.String?, y: kotlin.Any?): kotlin.Boolean? declared in .SafeCalls' BLOCK type=kotlin.Boolean? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.String? [val] GET_VAR 'x: kotlin.String? declared in .SafeCalls.test3' type=kotlin.String? origin=null WHEN type=kotlin.Boolean? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .SafeCalls.test3' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .SafeCalls.test3' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override] declared in kotlin.String' type=kotlin.Boolean origin=null - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .SafeCalls.test3' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .SafeCalls.test3' type=kotlin.String? origin=null other: GET_VAR 'y: kotlin.Any? declared in .SafeCalls.test3' type=kotlin.Any? origin=null FUN name:test4 visibility:public modality:FINAL <> ($this:.SafeCalls, x:.SafeCalls.Ref?) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.SafeCalls VALUE_PARAMETER name:x index:0 type:.SafeCalls.Ref? BLOCK_BODY BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:.SafeCalls.Ref? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.SafeCalls.Ref? [val] GET_VAR 'x: .SafeCalls.Ref? declared in .SafeCalls.test4' type=.SafeCalls.Ref? origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: .SafeCalls.Ref? [val] declared in .SafeCalls.test4' type=.SafeCalls.Ref? origin=null + arg0: GET_VAR 'val tmp_3: .SafeCalls.Ref? [val] declared in .SafeCalls.test4' type=.SafeCalls.Ref? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .SafeCalls.Ref' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp0_safe_receiver: .SafeCalls.Ref? [val] declared in .SafeCalls.test4' type=.SafeCalls.Ref? origin=null + $this: GET_VAR 'val tmp_3: .SafeCalls.Ref? [val] declared in .SafeCalls.test4' type=.SafeCalls.Ref? origin=null : CONST Int type=kotlin.Int value=0 FUN name:test5 visibility:public modality:FINAL <> ($this:.SafeCalls, $receiver:.SafeCalls.IHost, s:kotlin.String?) returnType:kotlin.Int? $this: VALUE_PARAMETER name: type:.SafeCalls @@ -143,19 +143,19 @@ FILE fqName: fileName:/safeCalls.kts BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test5 (s: kotlin.String?): kotlin.Int? declared in .SafeCalls' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.String? [val] GET_VAR 's: kotlin.String? declared in .SafeCalls.test5' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .SafeCalls.test5' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_4: kotlin.String? [val] declared in .SafeCalls.test5' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun extLength (): kotlin.Int declared in .SafeCalls.IHost' type=kotlin.Int origin=null $this: GET_VAR ': .SafeCalls.IHost declared in .SafeCalls.test5' type=.SafeCalls.IHost origin=null - $receiver: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .SafeCalls.test5' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_4: kotlin.String? [val] declared in .SafeCalls.test5' type=kotlin.String? origin=null FUN name:foo visibility:public modality:FINAL <> ($this:.SafeCalls, $receiver:kotlin.Int) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.SafeCalls $receiver: VALUE_PARAMETER name: type:kotlin.Int @@ -167,17 +167,17 @@ FILE fqName: fileName:/safeCalls.kts BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=42 WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Int [val] declared in .SafeCalls.box' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .SafeCalls.box' type=kotlin.Int origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): kotlin.Int declared in .SafeCalls' type=kotlin.Int origin=null $this: GET_VAR ': .SafeCalls declared in .SafeCalls.box' type=.SafeCalls origin=null - $receiver: GET_VAR 'val tmp0_safe_receiver: kotlin.Int [val] declared in .SafeCalls.box' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .SafeCalls.box' type=kotlin.Int origin=null VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SafeCalls diff --git a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt index dd5bcdf3d00..972e26efc40 100644 --- a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt +++ b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt @@ -49,13 +49,13 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt VALUE_PARAMETER name:yy index:1 type:kotlin.Int BLOCK_BODY BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_y type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'yy: kotlin.Int declared in .Test1.' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_x type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] GET_VAR 'xx: kotlin.Int declared in .Test1.' type=kotlin.Int origin=null DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .Base' - x: GET_VAR 'val tmp1_x: kotlin.Int [val] declared in .Test1.' type=kotlin.Int origin=null - y: GET_VAR 'val tmp0_y: kotlin.Int [val] declared in .Test1.' type=kotlin.Int origin=null + x: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .Test1.' type=kotlin.Int origin=null + y: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .Test1.' type=kotlin.Int origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.Base]' PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Int [fake_override] @@ -89,13 +89,13 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt VALUE_PARAMETER name:yy index:1 type:kotlin.Int BLOCK_BODY BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_y type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] GET_VAR 'yy: kotlin.Int declared in .Test2.' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_x type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] GET_VAR 'xx: kotlin.Int declared in .Test2.' type=kotlin.Int origin=null DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .Base' - x: GET_VAR 'val tmp1_x: kotlin.Int [val] declared in .Test2.' type=kotlin.Int origin=null - y: GET_VAR 'val tmp0_y: kotlin.Int [val] declared in .Test2.' type=kotlin.Int origin=null + x: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .Test2.' type=kotlin.Int origin=null + y: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .Test2.' type=kotlin.Int origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.Base]' CONSTRUCTOR visibility:public <> (xxx:kotlin.Int, yyy:kotlin.Int, a:kotlin.Any) returnType:.Test2 VALUE_PARAMETER name:xxx index:0 type:kotlin.Int @@ -103,13 +103,13 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt VALUE_PARAMETER name:a index:2 type:kotlin.Any BLOCK_BODY BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_yy type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] GET_VAR 'yyy: kotlin.Int declared in .Test2.' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_xx type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] GET_VAR 'xxx: kotlin.Int declared in .Test2.' type=kotlin.Int origin=null DELEGATING_CONSTRUCTOR_CALL 'public constructor (xx: kotlin.Int, yy: kotlin.Int) declared in .Test2' - xx: GET_VAR 'val tmp1_xx: kotlin.Int [val] declared in .Test2.' type=kotlin.Int origin=null - yy: GET_VAR 'val tmp0_yy: kotlin.Int [val] declared in .Test2.' type=kotlin.Int origin=null + xx: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .Test2.' type=kotlin.Int origin=null + yy: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .Test2.' type=kotlin.Int origin=null PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] diff --git a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt index 856bca272cf..8f2872ace55 100644 --- a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt +++ b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt @@ -346,7 +346,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test1 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1 [val] TYPE_OP type=.Test1 origin=CAST typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -356,7 +356,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -366,7 +366,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -376,7 +376,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -386,7 +386,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -396,7 +396,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -406,7 +406,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -416,7 +416,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -426,7 +426,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -436,7 +436,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' @@ -518,7 +518,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test2.Test2> [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2.Test2> [val] TYPE_OP type=.Test2.Test2> origin=CAST typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -528,7 +528,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array.Test2> visibility:private [final]' type=kotlin.Array.Test2> origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array.Test2> visibility:private [final]' type=kotlin.Array.Test2> origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test2.Test2> [val] declared in .Test2.equals' type=.Test2.Test2> origin=null + receiver: GET_VAR 'val tmp_1: .Test2.Test2> [val] declared in .Test2.equals' type=.Test2.Test2> origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' @@ -617,7 +617,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test3 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3 [val] TYPE_OP type=.Test3 origin=CAST typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -627,7 +627,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:private [final]' type=kotlin.Array? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:private [final]' type=kotlin.Array? origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null + receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' diff --git a/compiler/testData/ir/irText/classes/dataClasses.txt b/compiler/testData/ir/irText/classes/dataClasses.txt index 09c48278324..21747164463 100644 --- a/compiler/testData/ir/irText/classes/dataClasses.txt +++ b/compiler/testData/ir/irText/classes/dataClasses.txt @@ -139,7 +139,7 @@ FILE fqName: fileName:/dataClasses.kt GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test1 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1 [val] TYPE_OP type=.Test1 origin=CAST typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -149,7 +149,7 @@ FILE fqName: fileName:/dataClasses.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -159,7 +159,7 @@ FILE fqName: fileName:/dataClasses.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -169,7 +169,7 @@ FILE fqName: fileName:/dataClasses.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null + receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' @@ -257,7 +257,7 @@ FILE fqName: fileName:/dataClasses.kt GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test2 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2 [val] TYPE_OP type=.Test2 origin=CAST typeOperand=.Test2 GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -267,7 +267,7 @@ FILE fqName: fileName:/dataClasses.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null receiver: GET_VAR ': .Test2 declared in .Test2.equals' type=.Test2 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test2 [val] declared in .Test2.equals' type=.Test2 origin=null + receiver: GET_VAR 'val tmp_1: .Test2 [val] declared in .Test2.equals' type=.Test2 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' @@ -463,7 +463,7 @@ FILE fqName: fileName:/dataClasses.kt GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test3 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3 [val] TYPE_OP type=.Test3 origin=CAST typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -473,7 +473,7 @@ FILE fqName: fileName:/dataClasses.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null + receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -483,7 +483,7 @@ FILE fqName: fileName:/dataClasses.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null + receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -493,7 +493,7 @@ FILE fqName: fileName:/dataClasses.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null + receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -503,7 +503,7 @@ FILE fqName: fileName:/dataClasses.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null + receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' diff --git a/compiler/testData/ir/irText/classes/dataClassesGeneric.txt b/compiler/testData/ir/irText/classes/dataClassesGeneric.txt index c3a7660a973..42a86fea1e0 100644 --- a/compiler/testData/ir/irText/classes/dataClassesGeneric.txt +++ b/compiler/testData/ir/irText/classes/dataClassesGeneric.txt @@ -84,7 +84,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test1.Test1> [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1.Test1> [val] TYPE_OP type=.Test1.Test1> origin=CAST typeOperand=.Test1.Test1> GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -94,7 +94,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test1 visibility:private [final]' type=T of .Test1 origin=null receiver: GET_VAR ': .Test1.Test1> declared in .Test1.equals' type=.Test1.Test1> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test1 visibility:private [final]' type=T of .Test1 origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test1.Test1> [val] declared in .Test1.equals' type=.Test1.Test1> origin=null + receiver: GET_VAR 'val tmp_0: .Test1.Test1> [val] declared in .Test1.equals' type=.Test1.Test1> origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' @@ -175,7 +175,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test2.Test2> [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2.Test2> [val] TYPE_OP type=.Test2.Test2> origin=CAST typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -185,7 +185,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test2.Test2> [val] declared in .Test2.equals' type=.Test2.Test2> origin=null + receiver: GET_VAR 'val tmp_1: .Test2.Test2> [val] declared in .Test2.equals' type=.Test2.Test2> origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' @@ -266,7 +266,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test3.Test3> [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3.Test3> [val] TYPE_OP type=.Test3.Test3> origin=CAST typeOperand=.Test3.Test3> GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -276,7 +276,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null receiver: GET_VAR ': .Test3.Test3> declared in .Test3.equals' type=.Test3.Test3> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test3.Test3> [val] declared in .Test3.equals' type=.Test3.Test3> origin=null + receiver: GET_VAR 'val tmp_2: .Test3.Test3> [val] declared in .Test3.equals' type=.Test3.Test3> origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' @@ -355,7 +355,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt GET_VAR 'other: kotlin.Any? declared in .Test4.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test4 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.Test4 [val] TYPE_OP type=.Test4 origin=CAST typeOperand=.Test4 GET_VAR 'other: kotlin.Any? declared in .Test4.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -365,7 +365,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null receiver: GET_VAR ': .Test4 declared in .Test4.equals' type=.Test4 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test4 [val] declared in .Test4.equals' type=.Test4 origin=null + receiver: GET_VAR 'val tmp_3: .Test4 [val] declared in .Test4.equals' type=.Test4 origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' diff --git a/compiler/testData/ir/irText/classes/inlineClass.txt b/compiler/testData/ir/irText/classes/inlineClass.txt index 15c6c936065..181c27b0738 100644 --- a/compiler/testData/ir/irText/classes/inlineClass.txt +++ b/compiler/testData/ir/irText/classes/inlineClass.txt @@ -50,7 +50,7 @@ FILE fqName: fileName:/inlineClass.kt GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test [val] TYPE_OP type=.Test origin=CAST typeOperand=.Test GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -60,7 +60,7 @@ FILE fqName: fileName:/inlineClass.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test declared in .Test.equals' type=.Test origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test [val] declared in .Test.equals' type=.Test origin=null + receiver: GET_VAR 'val tmp_0: .Test [val] declared in .Test.equals' type=.Test origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' diff --git a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt index f68fac829c4..468d4518c60 100644 --- a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt +++ b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt @@ -81,7 +81,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.A [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] TYPE_OP type=.A origin=CAST typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -91,7 +91,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .A [val] declared in .A.equals' type=.A origin=null + receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' @@ -192,7 +192,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt GET_VAR 'other: kotlin.Any? declared in .B.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.B [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.B [val] TYPE_OP type=.B origin=CAST typeOperand=.B GET_VAR 'other: kotlin.Any? declared in .B.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -202,7 +202,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .B declared in .B.equals' type=.B origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .B [val] declared in .B.equals' type=.B origin=null + receiver: GET_VAR 'val tmp_1: .B [val] declared in .B.equals' type=.B origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' diff --git a/compiler/testData/ir/irText/classes/localClasses.fir.txt b/compiler/testData/ir/irText/classes/localClasses.fir.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt index ac6244a8cb5..007d32b9c47 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt @@ -50,12 +50,12 @@ FILE fqName: fileName:/localDelegatedProperties.kt value: CONST Int type=kotlin.Int value=0 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:tmp0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] CALL 'local final fun (): kotlin.Int declared in .test2' type=kotlin.Int origin=POSTFIX_INCR CALL 'local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Unit origin=POSTFIX_INCR value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp0: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null CALL 'local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Unit origin=PLUSEQ value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'local final fun (): kotlin.Int declared in .test2' type=kotlin.Int origin=PLUSEQ diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt index 7bf55c83ccf..83cb305c6c2 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt @@ -119,7 +119,7 @@ FILE fqName: fileName:/dataClassMembers.kt GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.Test.Test> [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test.Test> [val] TYPE_OP type=.Test.Test> origin=CAST typeOperand=.Test.Test> GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -129,7 +129,7 @@ FILE fqName: fileName:/dataClassMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final]' type=T of .Test origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final]' type=T of .Test origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test.Test> [val] declared in .Test.equals' type=.Test.Test> origin=null + receiver: GET_VAR 'val tmp_0: .Test.Test> [val] declared in .Test.equals' type=.Test.Test> origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -139,7 +139,7 @@ FILE fqName: fileName:/dataClassMembers.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .Test.Test> [val] declared in .Test.equals' type=.Test.Test> origin=null + receiver: GET_VAR 'val tmp_0: .Test.Test> [val] declared in .Test.equals' type=.Test.Test> origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt index 4ec2ae99337..86a84a61f15 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt @@ -47,50 +47,50 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt VAR name:x type:kotlin.IntArray [var] CALL 'public final fun foo (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=null BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.IntArray [val] GET_VAR 'var x: kotlin.IntArray [var] declared in .testVariable' type=kotlin.IntArray origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testVariable' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testVariable' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .testVariable' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVariable' 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): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testVariable' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testVariable' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .testVariable' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVariable' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=1 FUN name:testCall visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=MULTEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.IntArray [val] CALL 'public final fun foo (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun bar (): kotlin.Int declared in ' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=MULTEQ - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testCall' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testCall' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.IntArray [val] declared in .testCall' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testCall' 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): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=MULTEQ - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testCall' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testCall' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.IntArray [val] declared in .testCall' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testCall' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=2 FUN name:testMember visibility:public modality:FINAL <> (c:.C) returnType:kotlin.Unit VALUE_PARAMETER name:c index:0 type:.C BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.IntArray [val] CALL 'public final fun (): kotlin.IntArray declared in .C' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'c: .C declared in .testMember' type=.C origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testMember' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testMember' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testMember' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testMember' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testMember' 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 tmp2: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null - GET_VAR 'val tmp2: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt index 97aa663110b..c335fa0c30e 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt @@ -42,16 +42,16 @@ FILE fqName: fileName:/arrayAugmentedAssignment2.kt VALUE_PARAMETER name:a index:0 type:.IA BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:.IA [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.IA [val] GET_VAR 'a: .IA declared in .test' type=.IA origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.String [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String [val] CONST String type=kotlin.String value="" CALL 'public abstract fun set (index: kotlin.String, value: kotlin.Int): kotlin.Unit declared in .IB' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR ': .IB declared in .test' type=.IB origin=null - $receiver: GET_VAR 'val tmp0_array: .IA [val] declared in .test' type=.IA origin=null - index: GET_VAR 'val tmp1_index0: kotlin.String [val] declared in .test' type=kotlin.String origin=null + $receiver: GET_VAR 'val tmp_0: .IA [val] declared in .test' type=.IA origin=null + index: GET_VAR 'val tmp_1: kotlin.String [val] declared in .test' type=kotlin.String 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 abstract fun get (index: kotlin.String): kotlin.Int declared in .IA' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp0_array: .IA [val] declared in .test' type=.IA origin=null - index: GET_VAR 'val tmp1_index0: kotlin.String [val] declared in .test' type=kotlin.String origin=null + $this: GET_VAR 'val tmp_0: .IA [val] declared in .test' type=.IA origin=null + index: GET_VAR 'val tmp_1: kotlin.String [val] declared in .test' type=kotlin.String origin=null other: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/bangbang.txt b/compiler/testData/ir/irText/expressions/bangbang.txt index f4ffaf61832..cc1e33a9e80 100644 --- a/compiler/testData/ir/irText/expressions/bangbang.txt +++ b/compiler/testData/ir/irText/expressions/bangbang.txt @@ -13,18 +13,18 @@ FILE fqName: fileName:/bangbang.kt CALL 'public final fun CHECK_NOT_NULL (x: T of kotlin.internal.ir.CHECK_NOT_NULL?): T of kotlin.internal.ir.CHECK_NOT_NULL declared in kotlin.internal.ir' type=kotlin.Int origin=EXCLEXCL : kotlin.Int x: BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'a: kotlin.Any? declared in .test2' type=kotlin.Any? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .test2' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test2' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .test2' type=kotlin.Any? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test2' type=kotlin.Any? origin=null FUN name:test3 visibility:public modality:FINAL (a:X of .test3) returnType:X of .test3 TYPE_PARAMETER name:X index:0 variance: superTypes:[kotlin.Any?] VALUE_PARAMETER name:a index:0 type:X of .test3 diff --git a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.txt b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.txt index 810a4ddc1d3..f87a65688a9 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.txt @@ -7,17 +7,17 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: BLOCK type=kotlin.Unit origin=null WHILE label=L2 origin=WHILE_LOOP condition: BLOCK type=kotlin.Boolean origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Boolean? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Boolean? [val] GET_VAR 'c: kotlin.Boolean? declared in .test1' type=kotlin.Boolean? origin=null WHEN type=kotlin.Boolean origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.Boolean? [val] declared in .test1' type=kotlin.Boolean? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Boolean? [val] declared in .test1' type=kotlin.Boolean? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BREAK label=null loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: kotlin.Boolean? [val] declared in .test1' type=kotlin.Boolean? origin=null + then: GET_VAR 'val tmp_0: kotlin.Boolean? [val] declared in .test1' type=kotlin.Boolean? origin=null FUN name:test2 visibility:public modality:FINAL <> (c:kotlin.Boolean?) returnType:kotlin.Unit VALUE_PARAMETER name:c index:0 type:kotlin.Boolean? BLOCK_BODY @@ -26,17 +26,17 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: BLOCK type=kotlin.Unit origin=null WHILE label=L2 origin=WHILE_LOOP condition: BLOCK type=kotlin.Boolean origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Boolean? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Boolean? [val] GET_VAR 'c: kotlin.Boolean? declared in .test2' type=kotlin.Boolean? origin=null WHEN type=kotlin.Boolean origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.Boolean? [val] declared in .test2' type=kotlin.Boolean? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Boolean? [val] declared in .test2' type=kotlin.Boolean? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=null loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: kotlin.Boolean? [val] declared in .test2' type=kotlin.Boolean? origin=null + then: GET_VAR 'val tmp_1: kotlin.Boolean? [val] declared in .test2' type=kotlin.Boolean? origin=null FUN name:test3 visibility:public modality:FINAL <> (ss:kotlin.collections.List?) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List? BLOCK_BODY @@ -44,27 +44,27 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp1_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: BLOCK type=kotlin.collections.List origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.collections.List? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.collections.List? [val] GET_VAR 'ss: kotlin.collections.List? declared in .test3' type=kotlin.collections.List? origin=null WHEN type=kotlin.collections.List origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.collections.List? [val] declared in .test3' type=kotlin.collections.List? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.collections.List? [val] declared in .test3' type=kotlin.collections.List? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=null loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: kotlin.collections.List? [val] declared in .test3' type=kotlin.collections.List? origin=null + then: GET_VAR 'val tmp_3: kotlin.collections.List? [val] declared in .test3' type=kotlin.collections.List? origin=null WHILE label=L2 origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp1_iterator: kotlin.collections.Iterator [val] declared in .test3' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .test3' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp1_iterator: kotlin.collections.Iterator [val] declared in .test3' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .test3' type=kotlin.collections.Iterator origin=null FUN name:test4 visibility:public modality:FINAL <> (ss:kotlin.collections.List?) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List? BLOCK_BODY @@ -72,27 +72,27 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp1_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: BLOCK type=kotlin.collections.List origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.collections.List? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.collections.List? [val] GET_VAR 'ss: kotlin.collections.List? declared in .test4' type=kotlin.collections.List? origin=null WHEN type=kotlin.collections.List origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.collections.List? [val] declared in .test4' type=kotlin.collections.List? origin=null + arg0: GET_VAR 'val tmp_5: kotlin.collections.List? [val] declared in .test4' type=kotlin.collections.List? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BREAK label=null loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: kotlin.collections.List? [val] declared in .test4' type=kotlin.collections.List? origin=null + then: GET_VAR 'val tmp_5: kotlin.collections.List? [val] declared in .test4' type=kotlin.collections.List? origin=null WHILE label=L2 origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp1_iterator: kotlin.collections.Iterator [val] declared in .test4' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .test4' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp1_iterator: kotlin.collections.Iterator [val] declared in .test4' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .test4' type=kotlin.collections.Iterator origin=null FUN name:test5 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:i type:kotlin.Int [var] diff --git a/compiler/testData/ir/irText/expressions/breakContinueInWhen.txt b/compiler/testData/ir/irText/expressions/breakContinueInWhen.txt index 2f47704c4ad..3ddffe10a5f 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInWhen.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInWhen.txt @@ -13,16 +13,16 @@ FILE fqName: fileName:/breakContinueInWhen.kt VAR name:k type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.IntIterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.IntIterator [val] CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'val xs: kotlin.IntArray [val] declared in .testBreakFor' type=kotlin.IntArray origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.IntIterator [val] declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:kotlin.Int [val] CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.IntIterator [val] declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH @@ -75,16 +75,16 @@ FILE fqName: fileName:/breakContinueInWhen.kt VAR name:k type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.IntIterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.IntIterator [val] CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'val xs: kotlin.IntArray [val] declared in .testContinueFor' type=kotlin.IntArray origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.IntIterator [val] declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:kotlin.Int [val] CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.IntIterator [val] declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH diff --git a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt index c0e4bf9d4d2..bdc22f5af30 100644 --- a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt +++ b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt @@ -25,18 +25,18 @@ FILE fqName: fileName:/callWithReorderedArguments.kt a: CALL 'public final fun noReorder1 (): kotlin.Int declared in ' type=kotlin.Int origin=null b: CALL 'public final fun noReorder2 (): kotlin.Int declared in ' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_b type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] CALL 'public final fun reordered1 (): kotlin.Int declared in ' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_a type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public final fun reordered2 (): kotlin.Int declared in ' type=kotlin.Int origin=null CALL 'public final fun foo (a: kotlin.Int, b: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null - a: GET_VAR 'val tmp1_a: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - b: GET_VAR 'val tmp0_b: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + a: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + b: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp2_b type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 - VAR IR_TEMPORARY_VARIABLE name:tmp3_a type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun reordered2 (): kotlin.Int declared in ' type=kotlin.Int origin=null CALL 'public final fun foo (a: kotlin.Int, b: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null - a: GET_VAR 'val tmp3_a: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - b: GET_VAR 'val tmp2_b: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + a: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + b: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt index f12c41ca36c..3521524e660 100644 --- a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt +++ b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt @@ -33,51 +33,51 @@ FILE fqName: fileName:/chainOfSafeCalls.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (nc: .C?): .C? declared in ' BLOCK type=.C? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp3_safe_receiver type:.C? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.C? [val] BLOCK type=.C? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp2_safe_receiver type:.C? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.C? [val] BLOCK type=.C? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:.C? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.C? [val] BLOCK type=.C? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:.C? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.C? [val] GET_VAR 'nc: .C? declared in .test' type=.C? origin=null WHEN type=.C? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_3: .C? [val] declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): .C declared in .C' type=.C origin=null - $this: GET_VAR 'val tmp0_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_3: .C? [val] declared in .test' type=.C? origin=null WHEN type=.C? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_2: .C? [val] declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun bar (): .C? declared in .C' type=.C? origin=null - $this: GET_VAR 'val tmp1_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_2: .C? [val] declared in .test' type=.C? origin=null WHEN type=.C? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp2_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_1: .C? [val] declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): .C declared in .C' type=.C origin=null - $this: GET_VAR 'val tmp2_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_1: .C? [val] declared in .test' type=.C? origin=null WHEN type=.C? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp3_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): .C declared in .C' type=.C origin=null - $this: GET_VAR 'val tmp3_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null diff --git a/compiler/testData/ir/irText/expressions/coercionToUnit.txt b/compiler/testData/ir/irText/expressions/coercionToUnit.txt index 287681d516a..05e5cdb0e35 100644 --- a/compiler/testData/ir/irText/expressions/coercionToUnit.txt +++ b/compiler/testData/ir/irText/expressions/coercionToUnit.txt @@ -23,31 +23,31 @@ FILE fqName: fileName:/coercionToUnit.kt BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:java.io.PrintStream? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:java.io.PrintStream? [val] GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:out type:java.io.PrintStream? visibility:public [final,static]' type=java.io.PrintStream? origin=GET_PROPERTY WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: java.io.PrintStream? [val] declared in .test3' type=java.io.PrintStream? origin=null + arg0: GET_VAR 'val tmp_0: java.io.PrintStream? [val] declared in .test3' type=java.io.PrintStream? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun println (x: kotlin.String?): kotlin.Unit declared in java.io.PrintStream' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp0_safe_receiver: java.io.PrintStream? [val] declared in .test3' type=java.io.PrintStream? origin=null + $this: GET_VAR 'val tmp_0: java.io.PrintStream? [val] declared in .test3' type=java.io.PrintStream? origin=null x: CONST String type=kotlin.String value="Hello," TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:java.io.PrintStream? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:java.io.PrintStream? [val] GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:out type:java.io.PrintStream? visibility:public [final,static]' type=java.io.PrintStream? origin=GET_PROPERTY WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_safe_receiver: java.io.PrintStream? [val] declared in .test3' type=java.io.PrintStream? origin=null + arg0: GET_VAR 'val tmp_1: java.io.PrintStream? [val] declared in .test3' type=java.io.PrintStream? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun println (x: kotlin.String?): kotlin.Unit declared in java.io.PrintStream' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp1_safe_receiver: java.io.PrintStream? [val] declared in .test3' type=java.io.PrintStream? origin=null + $this: GET_VAR 'val tmp_1: java.io.PrintStream? [val] declared in .test3' type=java.io.PrintStream? origin=null x: CONST String type=kotlin.String value="world!" diff --git a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt index 5e0162e2bc5..b8f765656eb 100644 --- a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt +++ b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt @@ -120,67 +120,67 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt CONST Int type=kotlin.Int value=0 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:tmp1_array type:kotlin.IntArray [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.IntArray [val] GET_VAR 'a: kotlin.IntArray declared in .test1' type=kotlin.IntArray origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp2_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] GET_VAR 'var i: kotlin.Int [var] declared in .test1' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'var i: kotlin.Int [var] declared in .test1' type=kotlin.Unit origin=POSTFIX_INCR CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - GET_VAR 'val tmp0: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp3 type:kotlin.Int [val] + $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp1_array: kotlin.IntArray [val] declared in .test1' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp2_index0: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .test1' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp1_array: kotlin.IntArray [val] declared in .test1' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp2_index0: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .test1' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' 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 tmp3: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - GET_VAR 'val tmp3: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:.X1 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:.X1 [val] GET_OBJECT 'CLASS OBJECT name:X1 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1 BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .X1' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0_this: .X1 [val] declared in .test2' type=.X1 origin=null + $this: GET_VAR 'val tmp_4: .X1 [val] declared in .test2' type=.X1 origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0_this: .X1 [val] declared in .test2' type=.X1 origin=null + $this: GET_VAR 'val tmp_4: .X1 [val] declared in .test2' type=.X1 origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp1: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp1: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_5: kotlin.Int [val] declared in .test2' 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:tmp2_this type:.X1.X2 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:.X1.X2 [val] GET_OBJECT 'CLASS OBJECT name:X2 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1.X2 BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp3 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .X1.X2' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp2_this: .X1.X2 [val] declared in .test2' type=.X1.X2 origin=null + $this: GET_VAR 'val tmp_6: .X1.X2 [val] declared in .test2' type=.X1.X2 origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1.X2' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp2_this: .X1.X2 [val] declared in .test2' type=.X1.X2 origin=null + $this: GET_VAR 'val tmp_6: .X1.X2 [val] declared in .test2' type=.X1.X2 origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp3: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp3: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_7: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_7: kotlin.Int [val] declared in .test2' 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:tmp4_this type:.X1.X2.X3 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_8 type:.X1.X2.X3 [val] GET_OBJECT 'CLASS OBJECT name:X3 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1.X2.X3 BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp5 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .X1.X2.X3' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp4_this: .X1.X2.X3 [val] declared in .test2' type=.X1.X2.X3 origin=null + $this: GET_VAR 'val tmp_8: .X1.X2.X3 [val] declared in .test2' type=.X1.X2.X3 origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1.X2.X3' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp4_this: .X1.X2.X3 [val] declared in .test2' type=.X1.X2.X3 origin=null + $this: GET_VAR 'val tmp_8: .X1.X2.X3 [val] declared in .test2' type=.X1.X2.X3 origin=null : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp5: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp5: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_9: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_9: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> (s:kotlin.Int) returnType:.B [primary] @@ -234,13 +234,13 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt VALUE_PARAMETER name:b index:0 type:.B BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:.B [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:.B [val] GET_VAR ': .B declared in .Host.plusAssign' type=.B origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .B' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp0_this: .B [val] declared in .Host.plusAssign' type=.B origin=null + $this: GET_VAR 'val tmp_10: .B [val] declared in .Host.plusAssign' type=.B 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 .B' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp0_this: .B [val] declared in .Host.plusAssign' type=.B origin=null + $this: GET_VAR 'val tmp_10: .B [val] declared in .Host.plusAssign' type=.B origin=null other: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'b: .B declared in .Host.plusAssign' type=.B origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override] diff --git a/compiler/testData/ir/irText/expressions/destructuring1.txt b/compiler/testData/ir/irText/expressions/destructuring1.txt index 7ee0dffb626..21854208012 100644 --- a/compiler/testData/ir/irText/expressions/destructuring1.txt +++ b/compiler/testData/ir/irText/expressions/destructuring1.txt @@ -53,13 +53,13 @@ FILE fqName: fileName:/destructuring1.kt $receiver: VALUE_PARAMETER name: type:.B BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION - VAR IR_TEMPORARY_VARIABLE name:tmp0_container type:.A [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR name:x type:kotlin.Int [val] CALL 'public final fun component1 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp0_container: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null VAR name:y type:kotlin.Int [val] CALL 'public final fun component2 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=2) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp0_container: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null diff --git a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt index f778a3a20f7..ff0dfc98005 100644 --- a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt +++ b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt @@ -59,13 +59,13 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt $receiver: VALUE_PARAMETER name: type:.B BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION - VAR IR_TEMPORARY_VARIABLE name:tmp0_container type:.A [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR name:x type:kotlin.Int [val] CALL 'public final fun component1 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp0_container: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null VAR name:z type:kotlin.Int [val] CALL 'public final fun component3 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=3) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp0_container: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null diff --git a/compiler/testData/ir/irText/expressions/dotQualified.txt b/compiler/testData/ir/irText/expressions/dotQualified.txt index 5e1ff26b3d3..7d730a47d3b 100644 --- a/compiler/testData/ir/irText/expressions/dotQualified.txt +++ b/compiler/testData/ir/irText/expressions/dotQualified.txt @@ -10,15 +10,15 @@ FILE fqName: fileName:/dotQualified.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun lengthN (s: kotlin.String?): kotlin.Int? declared in ' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.String? [val] GET_VAR 's: kotlin.String? declared in .lengthN' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .lengthN' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .lengthN' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .lengthN' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .lengthN' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/expressions/elvis.txt b/compiler/testData/ir/irText/expressions/elvis.txt index 896c4407371..4d0432e69bf 100644 --- a/compiler/testData/ir/irText/expressions/elvis.txt +++ b/compiler/testData/ir/irText/expressions/elvis.txt @@ -18,34 +18,34 @@ FILE fqName: fileName:/elvis.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a: kotlin.Any?, b: kotlin.Any): kotlin.Any declared in ' BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'a: kotlin.Any? declared in .test1' type=kotlin.Any? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.Any? [val] declared in .test1' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test1' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'b: kotlin.Any declared in .test1' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: kotlin.Any? [val] declared in .test1' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test1' type=kotlin.Any? origin=null FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.String?, b:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:a index:0 type:kotlin.String? VALUE_PARAMETER name:b index:1 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.String?, b: kotlin.Any): kotlin.Any declared in ' BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String? [val] GET_VAR 'a: kotlin.String? declared in .test2' type=kotlin.String? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'b: kotlin.Any declared in .test2' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any?, b:kotlin.Any?) returnType:kotlin.String VALUE_PARAMETER name:a index:0 type:kotlin.Any? VALUE_PARAMETER name:b index:1 type:kotlin.Any? @@ -64,48 +64,48 @@ FILE fqName: fileName:/elvis.kt CONST String type=kotlin.String value="" RETURN type=kotlin.Nothing from='public final fun test3 (a: kotlin.Any?, b: kotlin.Any?): kotlin.String declared in ' BLOCK type=kotlin.String origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Any? [val] GET_VAR 'a: kotlin.Any? declared in .test3' type=kotlin.Any? origin=null WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.Any? [val] declared in .test3' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Any? [val] declared in .test3' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'b: kotlin.Any? declared in .test3' type=kotlin.Any? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String - GET_VAR 'val tmp0_elvis_lhs: kotlin.Any? [val] declared in .test3' type=kotlin.Any? origin=null + GET_VAR 'val tmp_2: kotlin.Any? [val] declared in .test3' type=kotlin.Any? origin=null FUN name:test4 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (x: kotlin.Any): kotlin.Any declared in ' BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Any? [val] CALL 'public final fun (): kotlin.Any? declared in ' type=kotlin.Any? origin=GET_PROPERTY WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.Any? [val] declared in .test4' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Any? [val] declared in .test4' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'x: kotlin.Any declared in .test4' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: kotlin.Any? [val] declared in .test4' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_3: kotlin.Any? [val] declared in .test4' type=kotlin.Any? origin=null FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test5 (x: kotlin.Any): kotlin.Any declared in ' BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Any? [val] CALL 'public final fun foo (): kotlin.Any? declared in ' type=kotlin.Any? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: kotlin.Any? [val] declared in .test5' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_4: kotlin.Any? [val] declared in .test5' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'x: kotlin.Any declared in .test5' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: kotlin.Any? [val] declared in .test5' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_4: kotlin.Any? [val] declared in .test5' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt index ac75e8aa97f..c181e8b010c 100644 --- a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt +++ b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt @@ -5,18 +5,18 @@ FILE fqName: fileName:/extFunSafeInvoke.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (receiver: kotlin.Any?, fn: @[ExtensionFunctionType] kotlin.Function3): kotlin.Unit? declared in ' BLOCK type=kotlin.Unit? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'receiver: kotlin.Any? declared in .test' type=kotlin.Any? origin=null WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 declared in kotlin.Function3' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function3 declared in .test' type=@[ExtensionFunctionType] kotlin.Function3 origin=VARIABLE_AS_FUNCTION - p1: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + p1: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null p2: CONST Int type=kotlin.Int value=42 p3: CONST String type=kotlin.String value="Hello" diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.txt index cc1a6dec6fd..4fba5465ab7 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.txt @@ -10,19 +10,19 @@ FILE fqName: fileName:/nullableAnyAsIntToDouble.kt GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null then: CALL 'public final fun less (arg0: kotlin.Double, arg1: kotlin.Double): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT arg0: BLOCK type=kotlin.Double? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Int' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null arg1: GET_VAR 'y: kotlin.Double declared in .test' type=kotlin.Double origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.txt index 44106093eeb..e1a4077875b 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.txt @@ -19,19 +19,19 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt then: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'x: kotlin.Double? declared in .testDF' type=kotlin.Double? origin=null arg1: BLOCK type=kotlin.Double? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'y: kotlin.Any? declared in .testDF' type=kotlin.Any? origin=null WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .testDF' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testDF' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Float' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float - GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .testDF' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testDF' type=kotlin.Any? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false @@ -47,19 +47,19 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt then: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'x: kotlin.Double? declared in .testDI' type=kotlin.Double? origin=null arg1: BLOCK type=kotlin.Double? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Any? [val] GET_VAR 'y: kotlin.Any? declared in .testDI' type=kotlin.Any? origin=null WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .testDI' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .testDI' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Int' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .testDI' type=kotlin.Any? origin=null + GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .testDI' type=kotlin.Any? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false @@ -81,19 +81,19 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: BLOCK type=kotlin.Double? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Any? [val] GET_VAR 'x: kotlin.Any? declared in .testDI2' type=kotlin.Any? origin=null WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .testDI2' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Any? [val] declared in .testDI2' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Int' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .testDI2' type=kotlin.Any? origin=null + GET_VAR 'val tmp_2: kotlin.Any? [val] declared in .testDI2' type=kotlin.Any? origin=null arg1: TYPE_OP type=kotlin.Double? origin=IMPLICIT_CAST typeOperand=kotlin.Double? GET_VAR 'y: kotlin.Any? declared in .testDI2' type=kotlin.Any? origin=null BRANCH diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.txt index 004a2c17978..6fbf3fbef07 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.txt @@ -4,12 +4,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testSimple (x: kotlin.Double): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Double [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Double [val] GET_VAR 'x: kotlin.Double declared in .testSimple' type=kotlin.Double origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Double [val] declared in .testSimple' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Double [val] declared in .testSimple' type=kotlin.Double origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -27,12 +27,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt $this: CONST Int type=kotlin.Int value=1 RETURN type=kotlin.Nothing from='public final fun testSmartCastInWhenSubject (x: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp1_subject type:kotlin.Double [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Double [val] GET_VAR 'x: kotlin.Any declared in .testSmartCastInWhenSubject' type=kotlin.Double origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Double [val] declared in .testSmartCastInWhenSubject' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Double [val] declared in .testSmartCastInWhenSubject' type=kotlin.Double origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -51,12 +51,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt $this: CONST Int type=kotlin.Int value=1 RETURN type=kotlin.Nothing from='public final fun testSmartCastInWhenCondition (x: kotlin.Double, y: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp2_subject type:kotlin.Double [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Double [val] GET_VAR 'x: kotlin.Double declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp2_subject: kotlin.Double [val] declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Double [val] declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null arg1: GET_VAR 'y: kotlin.Any declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null then: CONST Int type=kotlin.Int value=0 BRANCH @@ -67,17 +67,17 @@ FILE fqName: fileName:/whenByFloatingPoint.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testSmartCastInWhenConditionInBranch (x: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp3_subject type:kotlin.Any [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Any [val] GET_VAR 'x: kotlin.Any declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.Double - GET_VAR 'val tmp3_subject: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null + GET_VAR 'val tmp_3: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null then: CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp3_subject: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -103,12 +103,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt $this: CONST Int type=kotlin.Int value=1 RETURN type=kotlin.Nothing from='public final fun testSmartCastToDifferentTypes (x: kotlin.Any, y: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp4_subject type:kotlin.Double [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Double [val] GET_VAR 'x: kotlin.Any declared in .testSmartCastToDifferentTypes' type=kotlin.Double origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp4_subject: kotlin.Double [val] declared in .testSmartCastToDifferentTypes' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_4: kotlin.Double [val] declared in .testSmartCastToDifferentTypes' type=kotlin.Double origin=null arg1: GET_VAR 'y: kotlin.Any declared in .testSmartCastToDifferentTypes' type=kotlin.Float origin=null then: CONST Int type=kotlin.Int value=0 BRANCH @@ -124,12 +124,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testWithPrematureExitInConditionSubexpression (x: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp5_subject type:kotlin.Any [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Any [val] GET_VAR 'x: kotlin.Any declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp5_subject: kotlin.Any [val] declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Any [val] declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null arg1: CALL 'public final fun foo (x: kotlin.Double): kotlin.Double declared in ' type=kotlin.Double origin=null x: WHEN type=kotlin.Double origin=IF BRANCH diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.txt index 7baeeb6cc8d..8608d670f8e 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.txt @@ -4,12 +4,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testSimple (x: kotlin.Double): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Double [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Double [val] GET_VAR 'x: kotlin.Double declared in .testSimple' type=kotlin.Double origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Double [val] declared in .testSimple' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Double [val] declared in .testSimple' type=kotlin.Double origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -26,13 +26,13 @@ FILE fqName: fileName:/whenByFloatingPoint.kt CONST Int type=kotlin.Int value=-1 RETURN type=kotlin.Nothing from='public final fun testSmartCastInWhenSubject (x: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Any [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Any [val] GET_VAR 'x: kotlin.Any declared in .testSmartCastInWhenSubject' type=kotlin.Any origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double - GET_VAR 'val tmp0_subject: kotlin.Any [val] declared in .testSmartCastInWhenSubject' type=kotlin.Any origin=null + GET_VAR 'val tmp_1: kotlin.Any [val] declared in .testSmartCastInWhenSubject' type=kotlin.Any origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -50,12 +50,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt CONST Int type=kotlin.Int value=-1 RETURN type=kotlin.Nothing from='public final fun testSmartCastInWhenCondition (x: kotlin.Double, y: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Double [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Double [val] GET_VAR 'x: kotlin.Double declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Double [val] declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Double [val] declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null arg1: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .testSmartCastInWhenCondition' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=0 @@ -67,18 +67,18 @@ FILE fqName: fileName:/whenByFloatingPoint.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testSmartCastInWhenConditionInBranch (x: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Any [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Any [val] GET_VAR 'x: kotlin.Any declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL $this: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double - GET_VAR 'val tmp0_subject: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null + GET_VAR 'val tmp_3: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=-1 BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double - GET_VAR 'val tmp0_subject: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null + GET_VAR 'val tmp_3: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -102,13 +102,13 @@ FILE fqName: fileName:/whenByFloatingPoint.kt CONST Int type=kotlin.Int value=-1 RETURN type=kotlin.Nothing from='public final fun testSmartCastToDifferentTypes (x: kotlin.Any, y: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Any [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Any [val] GET_VAR 'x: kotlin.Any declared in .testSmartCastToDifferentTypes' type=kotlin.Any origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double - GET_VAR 'val tmp0_subject: kotlin.Any [val] declared in .testSmartCastToDifferentTypes' type=kotlin.Any origin=null + GET_VAR 'val tmp_4: kotlin.Any [val] declared in .testSmartCastToDifferentTypes' type=kotlin.Any origin=null arg1: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Float' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .testSmartCastToDifferentTypes' type=kotlin.Any origin=null @@ -126,12 +126,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testWithPrematureExitInConditionSubexpression (x: kotlin.Any): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Any [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Any [val] GET_VAR 'x: kotlin.Any declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Any [val] declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Any [val] declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null arg1: CALL 'public final fun foo (x: kotlin.Double): kotlin.Double declared in ' type=kotlin.Double origin=null x: WHEN type=kotlin.Double origin=IF BRANCH diff --git a/compiler/testData/ir/irText/expressions/for.txt b/compiler/testData/ir/irText/expressions/for.txt index ccb23dc0855..0a823e117e1 100644 --- a/compiler/testData/ir/irText/expressions/for.txt +++ b/compiler/testData/ir/irText/expressions/for.txt @@ -3,30 +3,30 @@ FILE fqName: fileName:/for.kt VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testEmpty' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testEmpty' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testEmpty' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testEmpty' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testEmpty' type=kotlin.collections.Iterator origin=null FUN name:testIterable visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testIterable' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testIterable' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testIterable' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testIterable' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testIterable' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null message: GET_VAR 'val s: kotlin.String [val] declared in .testIterable' type=kotlin.String origin=null @@ -34,22 +34,22 @@ FILE fqName: fileName:/for.kt VALUE_PARAMETER name:pp index:0 type:kotlin.collections.List> BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator> [val] + VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator> [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator> origin=FOR_LOOP_ITERATOR $this: GET_VAR 'pp: kotlin.collections.List> declared in .testDestructuring' type=kotlin.collections.List> origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator> [val] declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> [val] declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR IR_TEMPORARY_VARIABLE name:tmp1_loop_parameter type:kotlin.Pair [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Pair [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.Pair origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator> [val] declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> [val] declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null VAR name:i 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 tmp1_loop_parameter: kotlin.Pair [val] declared in .testDestructuring' type=kotlin.Pair origin=null + $this: GET_VAR 'val tmp_3: kotlin.Pair [val] declared in .testDestructuring' type=kotlin.Pair origin=null VAR name:s type:kotlin.String [val] CALL 'public final fun component2 (): B of kotlin.Pair declared in kotlin.Pair' type=kotlin.String origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp1_loop_parameter: kotlin.Pair [val] declared in .testDestructuring' type=kotlin.Pair origin=null + $this: GET_VAR 'val tmp_3: kotlin.Pair [val] declared in .testDestructuring' type=kotlin.Pair origin=null BLOCK type=kotlin.Unit origin=null CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null message: GET_VAR 'val i: kotlin.Int [val] declared in .testDestructuring' type=kotlin.Int origin=null @@ -58,15 +58,15 @@ FILE fqName: fileName:/for.kt FUN name:testRange visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.IntIterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.IntIterator [val] CALL 'public open fun iterator (): kotlin.collections.IntIterator [fake_override] declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=10 WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.IntIterator [val] declared in .testRange' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator [val] declared in .testRange' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.IntIterator [val] declared in .testRange' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator [val] declared in .testRange' type=kotlin.collections.IntIterator origin=null diff --git a/compiler/testData/ir/irText/expressions/forWithBreakContinue.txt b/compiler/testData/ir/irText/expressions/forWithBreakContinue.txt index 9ec89b726c5..49285ca8763 100644 --- a/compiler/testData/ir/irText/expressions/forWithBreakContinue.txt +++ b/compiler/testData/ir/irText/expressions/forWithBreakContinue.txt @@ -3,44 +3,44 @@ FILE fqName: fileName:/forWithBreakContinue.kt VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak1' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testForBreak1' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testForBreak1' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testForBreak1' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testForBreak1' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null BREAK label=null loop.label=null FUN name:testForBreak2 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak2' type=kotlin.collections.List origin=null WHILE label=OUTER origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s1 type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp1_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak2' type=kotlin.collections.List origin=null WHILE label=INNER origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp1_iterator: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s2 type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp1_iterator: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null BREAK label=OUTER loop.label=OUTER BREAK label=INNER loop.label=INNER @@ -50,44 +50,44 @@ FILE fqName: fileName:/forWithBreakContinue.kt VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_3 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue1' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testForContinue1' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator [val] declared in .testForContinue1' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testForContinue1' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator [val] declared in .testForContinue1' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null CONTINUE label=null loop.label=null FUN name:testForContinue2 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue2' type=kotlin.collections.List origin=null WHILE label=OUTER origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s1 type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp0_iterator: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp1_iterator type:kotlin.collections.Iterator [val] + VAR FOR_LOOP_ITERATOR name:tmp_5 type:kotlin.collections.Iterator [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue2' type=kotlin.collections.List origin=null WHILE label=INNER origin=FOR_LOOP_INNER_WHILE condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp1_iterator: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s2 type:kotlin.String [val] CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp1_iterator: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null CONTINUE label=OUTER loop.label=OUTER CONTINUE label=INNER loop.label=INNER diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt index 530a637345d..35d7348f87b 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt @@ -81,17 +81,17 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int declared in .IReceiver' BLOCK type=kotlin.Int origin=POSTFIX_DECR - VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:.IntCell [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.IntCell [val] GET_VAR ': .IntCell declared in .IReceiver.next' type=.IntCell origin=null BLOCK type=kotlin.Int origin=POSTFIX_DECR - VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .IntCell' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp0_this: .IntCell [val] declared in .IReceiver.next' type=.IntCell origin=null + $this: GET_VAR 'val tmp_0: .IntCell [val] declared in .IReceiver.next' type=.IntCell origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .IntCell' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp0_this: .IntCell [val] declared in .IReceiver.next' type=.IntCell origin=null + $this: GET_VAR 'val tmp_0: .IntCell [val] declared in .IReceiver.next' type=.IntCell origin=null : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp1: kotlin.Int [val] declared in .IReceiver.next' type=kotlin.Int origin=null - GET_VAR 'val tmp1: kotlin.Int [val] declared in .IReceiver.next' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .IReceiver.next' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int [val] declared in .IReceiver.next' type=kotlin.Int origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override] overridden: public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any @@ -109,19 +109,19 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $receiver: VALUE_PARAMETER name: type:.IReceiver BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:.IntCell [val] + VAR FOR_LOOP_ITERATOR name:tmp_2 type:.IntCell [val] CALL 'public open fun iterator (): .IntCell declared in .IReceiver' type=.IntCell origin=FOR_LOOP_ITERATOR $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null $receiver: GET_OBJECT 'CLASS OBJECT name:FiveTimes modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.FiveTimes WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'public open fun hasNext (): kotlin.Boolean declared in .IReceiver' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null - $receiver: GET_VAR 'val tmp0_iterator: .IntCell [val] declared in .test' type=.IntCell origin=null + $receiver: GET_VAR 'val tmp_2: .IntCell [val] declared in .test' type=.IntCell origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] CALL 'public open fun next (): kotlin.Int declared in .IReceiver' type=kotlin.Int origin=FOR_LOOP_NEXT $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null - $receiver: GET_VAR 'val tmp0_iterator: .IntCell [val] declared in .test' type=.IntCell origin=null + $receiver: GET_VAR 'val tmp_2: .IntCell [val] declared in .test' type=.IntCell origin=null BLOCK type=kotlin.Unit origin=null CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null message: GET_VAR 'val i: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.txt b/compiler/testData/ir/irText/expressions/incrementDecrement.txt index 32bd5e31bb9..4c81d295240 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.txt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.txt @@ -49,20 +49,20 @@ FILE fqName: fileName:/incrementDecrement.kt CONST Int type=kotlin.Int value=0 VAR name:x1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_INCR CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp0: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null VAR name:x2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR - VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] GET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Int origin=POSTFIX_DECR SET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_DECR CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp1: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp1: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null FUN name:testPropPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] @@ -84,12 +84,12 @@ FILE fqName: fileName:/incrementDecrement.kt VAR name:p1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_INCR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_INCR : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp0: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR BLOCK type=kotlin.Int origin=PREFIX_DECR @@ -101,67 +101,67 @@ FILE fqName: fileName:/incrementDecrement.kt BLOCK_BODY VAR name:a1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.IntArray [val] CALL 'public final fun (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=GET_PROPERTY - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testArrayPrefix' 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): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR - VAR IR_TEMPORARY_VARIABLE name:tmp2_array type:kotlin.IntArray [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.IntArray [val] CALL 'public final fun (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=GET_PROPERTY - VAR IR_TEMPORARY_VARIABLE name:tmp3_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp2_array: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp3_index0: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_5: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testArrayPrefix' 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): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp2_array: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp3_index0: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_5: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp2_array: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp3_index0: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_5: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null FUN name:testArrayPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.IntArray [val] CALL 'public final fun (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=GET_PROPERTY - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_8 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_7: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_8: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0_array: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_7: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_8: kotlin.Int [val] declared in .testArrayPostfix' 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 tmp2: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp2: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_9: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_9: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR - VAR IR_TEMPORARY_VARIABLE name:tmp3_array type:kotlin.IntArray [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:kotlin.IntArray [val] CALL 'public final fun (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=GET_PROPERTY - VAR IR_TEMPORARY_VARIABLE name:tmp4_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_11 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - VAR IR_TEMPORARY_VARIABLE name:tmp5 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_12 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp3_array: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp4_index0: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_10: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_11: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp3_array: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp4_index0: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_10: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_11: kotlin.Int [val] declared in .testArrayPostfix' 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 tmp5: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp5: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_12: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_12: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.txt b/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.txt index b832482f8f7..68ee2787e4b 100644 --- a/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.txt +++ b/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.txt @@ -10,23 +10,23 @@ FILE fqName: fileName:/javaSyntheticPropertyAccess.kt x: CONST Int type=kotlin.Int value=1 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:tmp0_receiver type:.J [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.J [val] GET_VAR 'j: .J declared in .test' type=.J origin=null BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0_receiver: .J [val] declared in .test' type=.J origin=null + $this: GET_VAR 'val tmp_0: .J [val] declared in .test' type=.J origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0_receiver: .J [val] declared in .test' type=.J origin=null + $this: GET_VAR 'val tmp_0: .J [val] declared in .test' type=.J origin=null x: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp2_receiver type:.J [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.J [val] GET_VAR 'j: .J declared in .test' type=.J origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp2_receiver: .J [val] declared in .test' type=.J origin=null + $this: GET_VAR 'val tmp_2: .J [val] declared in .test' type=.J origin=null x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp2_receiver: .J [val] declared in .test' type=.J origin=null + $this: GET_VAR 'val tmp_2: .J [val] declared in .test' type=.J origin=null other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/kt16904.txt b/compiler/testData/ir/irText/expressions/kt16904.txt index 9b5bf529b71..3ccb8e245c2 100644 --- a/compiler/testData/ir/irText/expressions/kt16904.txt +++ b/compiler/testData/ir/irText/expressions/kt16904.txt @@ -78,20 +78,20 @@ FILE fqName: fileName:/kt16904.kt DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.A]' BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:.Test1 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1 [val] GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .B' type=kotlin.Unit origin=PLUSEQ $this: CALL 'public final fun (): .B [fake_override] declared in .Test1' type=.B origin=PLUSEQ - $this: GET_VAR 'val tmp0_this: .Test1 [val] declared in .Test1.' type=.Test1 origin=null + $this: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.' type=.Test1 origin=null x: CONST Int type=kotlin.Int value=42 BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp1_this type:.Test1 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test1 [val] GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit [fake_override] declared in .Test1' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp1_this: .Test1 [val] declared in .Test1.' type=.Test1 origin=null + $this: GET_VAR 'val tmp_1: .Test1 [val] declared in .Test1.' type=.Test1 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 [fake_override] declared in .Test1' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp1_this: .Test1 [val] declared in .Test1.' type=.Test1 origin=null + $this: GET_VAR 'val tmp_1: .Test1 [val] declared in .Test1.' type=.Test1 origin=null other: CONST Int type=kotlin.Int value=42 PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:.B [fake_override] diff --git a/compiler/testData/ir/irText/expressions/kt28456.txt b/compiler/testData/ir/irText/expressions/kt28456.txt index 95a29edb7f8..27b4cacddb0 100644 --- a/compiler/testData/ir/irText/expressions/kt28456.txt +++ b/compiler/testData/ir/irText/expressions/kt28456.txt @@ -43,43 +43,43 @@ FILE fqName: fileName:/kt28456.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPostfixIncrement (a: .A): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:.A [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] GET_VAR 'a: .A declared in .testPostfixIncrement' type=.A origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 - VAR IR_TEMPORARY_VARIABLE name:tmp2_index1 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CONST Int type=kotlin.Int value=2 - VAR IR_TEMPORARY_VARIABLE name:tmp3 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp0_array: .A [val] declared in .testPostfixIncrement' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int - GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp2_index1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp0_array: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - j: GET_VAR 'val tmp2_index1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + j: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null v: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp3: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp3: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null FUN name:testCompoundAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:.A [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:.A [val] GET_VAR 'a: .A declared in .testCompoundAssignment' type=.A origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 - VAR IR_TEMPORARY_VARIABLE name:tmp2_index1 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CONST Int type=kotlin.Int value=2 CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp0_array: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - j: GET_VAR 'val tmp2_index1: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_4: .A [val] declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + j: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null v: 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 (vararg xs: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp0_array: .A [val] declared in .testCompoundAssignment' type=.A origin=null + $receiver: GET_VAR 'val tmp_4: .A [val] declared in .testCompoundAssignment' type=.A origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int - GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - GET_VAR 'val tmp2_index1: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=10 diff --git a/compiler/testData/ir/irText/expressions/kt28456b.txt b/compiler/testData/ir/irText/expressions/kt28456b.txt index 4e3bee72e8a..98e807ef44d 100644 --- a/compiler/testData/ir/irText/expressions/kt28456b.txt +++ b/compiler/testData/ir/irText/expressions/kt28456b.txt @@ -56,33 +56,33 @@ FILE fqName: fileName:/kt28456b.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPostfixIncrement (a: .A): kotlin.Int declared in ' BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:.A [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] GET_VAR 'a: .A declared in .testPostfixIncrement' type=.A origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 - VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp0_array: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp0_array: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null v: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null FUN name:testCompoundAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:.A [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.A [val] GET_VAR 'a: .A declared in .testCompoundAssignment' type=.A origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp0_array: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_3: .A [val] declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null v: 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 (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp0_array: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp1_index0: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_3: .A [val] declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=10 diff --git a/compiler/testData/ir/irText/expressions/kt30020.txt b/compiler/testData/ir/irText/expressions/kt30020.txt index c71c5357e37..a93cbc97ed6 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.txt +++ b/compiler/testData/ir/irText/expressions/kt30020.txt @@ -25,12 +25,12 @@ FILE fqName: fileName:/kt30020.kt VALUE_PARAMETER name:nx index:1 type:.X? BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:.X [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.X [val] GET_VAR 'x: .X declared in .test' type=.X origin=null CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit [inline] declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=PLUSEQ - $this: GET_VAR 'val tmp0_this: .X [val] declared in .test' type=.X origin=null + $this: GET_VAR 'val tmp_0: .X [val] declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=1 CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit [inline] declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int @@ -54,36 +54,36 @@ FILE fqName: fileName:/kt30020.kt $receiver: CALL 'public final fun CHECK_NOT_NULL (x: T of kotlin.internal.ir.CHECK_NOT_NULL?): T of kotlin.internal.ir.CHECK_NOT_NULL declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList x: BLOCK type=kotlin.collections.MutableList? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:.X? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.X? [val] GET_VAR 'nx: .X? declared in .test' type=.X? origin=null WHEN type=kotlin.collections.MutableList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_safe_receiver: .X? [val] declared in .test' type=.X? origin=null + arg0: GET_VAR 'val tmp_1: .X? [val] declared in .test' type=.X? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY - $this: GET_VAR 'val tmp1_safe_receiver: .X? [val] declared in .test' type=.X? origin=null + $this: GET_VAR 'val tmp_1: .X? [val] declared in .test' type=.X? origin=null element: CONST Int type=kotlin.Int value=5 CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit [inline] declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (x: T of kotlin.internal.ir.CHECK_NOT_NULL?): T of kotlin.internal.ir.CHECK_NOT_NULL declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList x: BLOCK type=kotlin.collections.MutableList? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp2_safe_receiver type:.X? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.X? [val] GET_VAR 'nx: .X? declared in .test' type=.X? origin=null WHEN type=kotlin.collections.MutableList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp2_safe_receiver: .X? [val] declared in .test' type=.X? origin=null + arg0: GET_VAR 'val tmp_2: .X? [val] declared in .test' type=.X? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null - $this: GET_VAR 'val tmp2_safe_receiver: .X? [val] declared in .test' type=.X? origin=null + $this: GET_VAR 'val tmp_2: .X? [val] declared in .test' type=.X? origin=null element: CONST Int type=kotlin.Int value=6 FUN name:testExtensionReceiver visibility:public modality:FINAL <> ($receiver:kotlin.collections.MutableList) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:kotlin.collections.MutableList diff --git a/compiler/testData/ir/irText/expressions/kt30796.txt b/compiler/testData/ir/irText/expressions/kt30796.txt index e03786c0fee..895798b8439 100644 --- a/compiler/testData/ir/irText/expressions/kt30796.txt +++ b/compiler/testData/ir/irText/expressions/kt30796.txt @@ -11,150 +11,150 @@ FILE fqName: fileName:/kt30796.kt BLOCK_BODY VAR name:x1 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:T of .test [val] GET_VAR 'value: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_0: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp0_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_0: T of .test [val] declared in .test' type=T of .test origin=null VAR name:x2 type:kotlin.Any [val] BLOCK type=kotlin.Any? origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp2_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:T of .test [val] GET_VAR 'value: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp2_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_1: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Any? origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp1_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:T of .test [val] GET_VAR 'value2: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_2: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp1_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_2: T of .test [val] declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp2_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_1: T of .test [val] declared in .test' type=T of .test origin=null VAR name:x3 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp4_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:T of .test [val] BLOCK type=T of .test origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp3_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:T of .test [val] GET_VAR 'value: T of .test declared in .test' type=T of .test origin=null WHEN type=T of .test origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp3_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_4: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value2: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp3_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_4: T of .test [val] declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp4_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_3: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp4_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_3: T of .test [val] declared in .test' type=T of .test origin=null VAR name:x4 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp6_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:T of .test [val] BLOCK type=T of .test origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp5_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:T of .test [val] GET_VAR 'value: T of .test declared in .test' type=T of .test origin=null WHEN type=T of .test origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp5_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_6: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value2: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp5_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_6: T of .test [val] declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp6_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_5: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp6_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_5: T of .test [val] declared in .test' type=T of .test origin=null VAR name:x5 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp7_elvis_lhs type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Any? [val] CALL 'public final fun magic (): T of .magic declared in ' type=kotlin.Any? origin=null : kotlin.Any? WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp7_elvis_lhs: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_7: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp7_elvis_lhs: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_7: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null VAR name:x6 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp9_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_8 type:T of .test [val] BLOCK type=T of .test origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp8_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:T of .test [val] GET_VAR 'value: T of .test declared in .test' type=T of .test origin=null WHEN type=T of .test origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp8_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_9: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CALL 'public final fun magic (): T of .magic declared in ' type=T of .test origin=null : T of .test BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp8_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_9: T of .test [val] declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp9_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_8: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp9_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_8: T of .test [val] declared in .test' type=T of .test origin=null VAR name:x7 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp11_elvis_lhs type:T of .test [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:T of .test [val] BLOCK type=T of .test origin=ELVIS - VAR IR_TEMPORARY_VARIABLE name:tmp10_elvis_lhs type:T of .test? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_11 type:T of .test? [val] CALL 'public final fun magic (): T of .magic declared in ' type=T of .test? origin=null : T of .test? WHEN type=T of .test origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp10_elvis_lhs: T of .test? [val] declared in .test' type=T of .test? origin=null + arg0: GET_VAR 'val tmp_11: T of .test? [val] declared in .test' type=T of .test? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp10_elvis_lhs: T of .test? [val] declared in .test' type=T of .test? origin=null + then: GET_VAR 'val tmp_11: T of .test? [val] declared in .test' type=T of .test? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp11_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_10: T of .test [val] declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp11_elvis_lhs: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_10: T of .test [val] declared in .test' type=T of .test origin=null diff --git a/compiler/testData/ir/irText/expressions/lambdaInCAO.txt b/compiler/testData/ir/irText/expressions/lambdaInCAO.txt index 2205543f3f8..9457163a2b4 100644 --- a/compiler/testData/ir/irText/expressions/lambdaInCAO.txt +++ b/compiler/testData/ir/irText/expressions/lambdaInCAO.txt @@ -28,42 +28,42 @@ FILE fqName: fileName:/lambdaInCAO.kt VALUE_PARAMETER name:a index:0 type:kotlin.Any BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.Any [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any [val] GET_VAR 'a: kotlin.Any declared in .test2' type=kotlin.Any origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Function0 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 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 .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp0_array: kotlin.Any [val] declared in .test2' type=kotlin.Any origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Function0 [val] declared in .test2' type=kotlin.Function0 origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test2' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_1: kotlin.Function0 [val] declared in .test2' type=kotlin.Function0 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.Function0): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp0_array: kotlin.Any [val] declared in .test2' type=kotlin.Any origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Function0 [val] declared in .test2' type=kotlin.Function0 origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test2' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_1: kotlin.Function0 [val] declared in .test2' type=kotlin.Function0 origin=null other: CONST Int type=kotlin.Int value=42 FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.Any [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Any [val] GET_VAR 'a: kotlin.Any declared in .test3' type=kotlin.Any origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Function0 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 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 .test3' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Function0): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp0_array: kotlin.Any [val] declared in .test3' type=kotlin.Any origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Function0 [val] declared in .test3' type=kotlin.Function0 origin=null + $receiver: GET_VAR 'val tmp_2: kotlin.Any [val] declared in .test3' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_3: kotlin.Function0 [val] declared in .test3' type=kotlin.Function0 origin=null CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp0_array: kotlin.Any [val] declared in .test3' type=kotlin.Any origin=null - index: GET_VAR 'val tmp1_index0: kotlin.Function0 [val] declared in .test3' type=kotlin.Function0 origin=null + $receiver: GET_VAR 'val tmp_2: kotlin.Any [val] declared in .test3' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_3: kotlin.Function0 [val] declared in .test3' type=kotlin.Function0 origin=null value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp2: kotlin.Int [val] declared in .test3' type=kotlin.Int origin=null - GET_VAR 'val tmp2: kotlin.Int [val] declared in .test3' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .test3' type=kotlin.Int origin=null + GET_VAR 'val tmp_4: kotlin.Int [val] declared in .test3' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/safeAssignment.txt b/compiler/testData/ir/irText/expressions/safeAssignment.txt index 9f27ea5d290..75175b5e240 100644 --- a/compiler/testData/ir/irText/expressions/safeAssignment.txt +++ b/compiler/testData/ir/irText/expressions/safeAssignment.txt @@ -42,17 +42,17 @@ FILE fqName: fileName:/safeAssignment.kt VALUE_PARAMETER name:nc index:0 type:.C? BLOCK_BODY BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:.C? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.C? [val] GET_VAR 'nc: .C? declared in .test' type=.C? origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp0_safe_receiver: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null : CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt index b0afa673601..e06d9a4d6c7 100644 --- a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt +++ b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt @@ -35,18 +35,18 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun inc (): kotlin.Int? declared in test' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Int? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] GET_VAR ': kotlin.Int? declared in test.inc' type=kotlin.Int? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Int? [val] declared in test.inc' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in test.inc' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.Int? [val] declared in test.inc' type=kotlin.Int? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in test.inc' type=kotlin.Int? origin=null FUN name:get visibility:public modality:FINAL <> ($receiver:kotlin.Int?, index:kotlin.Int) returnType:kotlin.Int $receiver: VALUE_PARAMETER name: type:kotlin.Int? VALUE_PARAMETER name:index index:0 type:kotlin.Int @@ -63,56 +63,56 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:test.C? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:test.C? [val] GET_VAR 'nc: test.C? declared in test.testProperty' type=test.C? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: test.C? [val] declared in test.testProperty' type=test.C? origin=null + arg0: GET_VAR 'val tmp_1: test.C? [val] declared in test.testProperty' type=test.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp1_receiver type:test.C? [val] - GET_VAR 'val tmp0_safe_receiver: test.C? [val] declared in test.testProperty' type=test.C? origin=null + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:test.C? [val] + GET_VAR 'val tmp_1: test.C? [val] declared in test.testProperty' type=test.C? origin=null BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in test' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp1_receiver: test.C? [val] declared in test.testProperty' type=test.C? origin=null + $receiver: GET_VAR 'val tmp_2: test.C? [val] declared in test.testProperty' type=test.C? origin=null CALL 'public final fun (value: kotlin.Int): kotlin.Unit declared in test' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp1_receiver: test.C? [val] declared in test.testProperty' type=test.C? origin=null + $receiver: GET_VAR 'val tmp_2: test.C? [val] declared in test.testProperty' type=test.C? origin=null value: CALL 'public final fun inc (): kotlin.Int? declared in test' type=kotlin.Int? origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp2: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null - GET_VAR 'val tmp2: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_3: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null FUN name:testArrayAccess visibility:public modality:FINAL <> (nc:test.C?) returnType:kotlin.Unit VALUE_PARAMETER name:nc index:0 type:test.C? BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp1_array type:kotlin.Int? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int? [val] BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:test.C? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:test.C? [val] GET_VAR 'nc: test.C? declared in test.testArrayAccess' type=test.C? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: test.C? [val] declared in test.testArrayAccess' type=test.C? origin=null + arg0: GET_VAR 'val tmp_5: test.C? [val] declared in test.testArrayAccess' type=test.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (): kotlin.Int declared in test' type=kotlin.Int origin=GET_PROPERTY - $receiver: GET_VAR 'val tmp0_safe_receiver: test.C? [val] declared in test.testArrayAccess' type=test.C? origin=null - VAR IR_TEMPORARY_VARIABLE name:tmp2_index0 type:kotlin.Int [val] + $receiver: GET_VAR 'val tmp_5: test.C? [val] declared in test.testArrayAccess' type=test.C? origin=null + VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - VAR IR_TEMPORARY_VARIABLE name:tmp3 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Int [val] CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in test' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp1_array: kotlin.Int? [val] declared in test.testArrayAccess' type=kotlin.Int? origin=null - index: GET_VAR 'val tmp2_index0: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_4: kotlin.Int? [val] declared in test.testArrayAccess' type=kotlin.Int? origin=null + index: GET_VAR 'val tmp_6: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in test' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp1_array: kotlin.Int? [val] declared in test.testArrayAccess' type=kotlin.Int? origin=null - index: GET_VAR 'val tmp2_index0: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_4: kotlin.Int? [val] declared in test.testArrayAccess' type=kotlin.Int? origin=null + index: GET_VAR 'val tmp_6: kotlin.Int [val] declared in test.testArrayAccess' 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 tmp3: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - GET_VAR 'val tmp3: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_7: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null + GET_VAR 'val tmp_7: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/safeCalls.txt b/compiler/testData/ir/irText/expressions/safeCalls.txt index b6f43662dab..fd4ca82a2c7 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.txt +++ b/compiler/testData/ir/irText/expressions/safeCalls.txt @@ -65,71 +65,71 @@ FILE fqName: fileName:/safeCalls.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (x: kotlin.String?): kotlin.Int? declared in ' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.String? [val] GET_VAR 'x: kotlin.String? declared in .test1' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test1' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test1' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test1' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test1' type=kotlin.String? origin=null FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.String?) returnType:kotlin.Int? VALUE_PARAMETER name:x index:0 type:kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (x: kotlin.String?): kotlin.Int? declared in ' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String? [val] GET_VAR 'x: kotlin.String? declared in .test2' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.String?, y:kotlin.Any?) returnType:kotlin.Boolean? VALUE_PARAMETER name:x index:0 type:kotlin.String? VALUE_PARAMETER name:y index:1 type:kotlin.Any? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (x: kotlin.String?, y: kotlin.Any?): kotlin.Boolean? declared in ' BLOCK type=kotlin.Boolean? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.String? [val] GET_VAR 'x: kotlin.String? declared in .test3' type=kotlin.String? origin=null WHEN type=kotlin.Boolean? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override] declared in kotlin.String' type=kotlin.Boolean origin=null - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null other: GET_VAR 'y: kotlin.Any? declared in .test3' type=kotlin.Any? origin=null FUN name:test4 visibility:public modality:FINAL <> (x:.Ref?) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:.Ref? BLOCK_BODY BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:.Ref? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.Ref? [val] GET_VAR 'x: .Ref? declared in .test4' type=.Ref? origin=null WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: .Ref? [val] declared in .test4' type=.Ref? origin=null + arg0: GET_VAR 'val tmp_3: .Ref? [val] declared in .test4' type=.Ref? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Ref' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp0_safe_receiver: .Ref? [val] declared in .test4' type=.Ref? origin=null + $this: GET_VAR 'val tmp_3: .Ref? [val] declared in .test4' type=.Ref? origin=null : CONST Int type=kotlin.Int value=0 FUN name:test5 visibility:public modality:FINAL <> ($receiver:.IHost, s:kotlin.String?) returnType:kotlin.Int? $receiver: VALUE_PARAMETER name: type:.IHost @@ -137,19 +137,19 @@ FILE fqName: fileName:/safeCalls.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test5 (s: kotlin.String?): kotlin.Int? declared in ' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.String? [val] GET_VAR 's: kotlin.String? declared in .test5' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test5' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_4: kotlin.String? [val] declared in .test5' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun extLength (): kotlin.Int declared in .IHost' type=kotlin.Int origin=null $this: GET_VAR ': .IHost declared in .test5' type=.IHost origin=null - $receiver: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test5' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_4: kotlin.String? [val] declared in .test5' type=kotlin.String? origin=null FUN name:foo visibility:public modality:FINAL <> ($receiver:kotlin.Int) returnType:kotlin.Int $receiver: VALUE_PARAMETER name: type:kotlin.Int BLOCK_BODY @@ -159,15 +159,15 @@ FILE fqName: fileName:/safeCalls.kt BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=42 WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): kotlin.Int declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp0_safe_receiver: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt index 0ae77103886..f8020ea5c8b 100644 --- a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt +++ b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt @@ -49,12 +49,12 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt then: RETURN type=kotlin.Nothing from='public final fun test (x: .I1): kotlin.Unit declared in ' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION - VAR IR_TEMPORARY_VARIABLE name:tmp0_container type:.I1 [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.I1 [val] GET_VAR 'x: .I1 declared in .test' type=.I1 origin=null VAR name:c1 type:kotlin.Int [val] CALL 'public final fun component1 (): kotlin.Int declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) - $receiver: GET_VAR 'val tmp0_container: .I1 [val] declared in .test' type=.I1 origin=null + $receiver: GET_VAR 'val tmp_0: .I1 [val] declared in .test' type=.I1 origin=null VAR name:c2 type:kotlin.String [val] CALL 'public final fun component2 (): kotlin.String declared in ' type=kotlin.String origin=COMPONENT_N(index=2) $receiver: TYPE_OP type=.I2 origin=IMPLICIT_CAST typeOperand=.I2 - GET_VAR 'val tmp0_container: .I1 [val] declared in .test' type=.I1 origin=null + GET_VAR 'val tmp_0: .I1 [val] declared in .test' type=.I1 origin=null diff --git a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.txt b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.txt index c97a85965b5..68ad43995b2 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.txt +++ b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.txt @@ -30,18 +30,18 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt ENUM_ENTRY name:ENTRY init: ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.String?) [primary] declared in .En' x: BLOCK type=kotlin.String? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] CALL 'public final fun (): kotlin.Any? declared in ' type=kotlin.Any? origin=GET_PROPERTY WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .En' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .En' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toString (): kotlin.String declared in kotlin.Any' type=kotlin.String origin=null - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .En' type=kotlin.Any? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .En' type=kotlin.Any? origin=null FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.Any [fake_override] overridden: protected final fun clone (): kotlin.Any declared in kotlin.Enum diff --git a/compiler/testData/ir/irText/expressions/temporaryInInitBlock.txt b/compiler/testData/ir/irText/expressions/temporaryInInitBlock.txt index c5ff0311b20..9afc54645dc 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInInitBlock.txt +++ b/compiler/testData/ir/irText/expressions/temporaryInInitBlock.txt @@ -20,18 +20,18 @@ FILE fqName: fileName:/temporaryInInitBlock.kt SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String? visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .C declared in .C' type=.C origin=null value: BLOCK type=kotlin.String? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'x: kotlin.Any? declared in .C.' type=kotlin.Any? origin=null WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .C' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .C' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toString (): kotlin.String declared in kotlin.Any' type=kotlin.String origin=null - $this: GET_VAR 'val tmp0_safe_receiver: kotlin.Any? [val] declared in .C' type=kotlin.Any? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .C' type=kotlin.Any? origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override] overridden: public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt index fdbf1b4dab9..758666d1736 100644 --- a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt +++ b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt @@ -32,27 +32,27 @@ FILE fqName: fileName:/variableAsFunctionCall.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (ns: kotlin.String?): kotlin.String? declared in ' BLOCK type=kotlin.String? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:kotlin.Function0? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Function0? [val] BLOCK type=kotlin.Function0? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String? [val] GET_VAR 'ns: kotlin.String? declared in .test4' type=kotlin.String? origin=null WHEN type=kotlin.Function0? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test4' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test4' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun k (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null - $receiver: GET_VAR 'val tmp0_safe_receiver: kotlin.String? [val] declared in .test4' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test4' type=kotlin.String? origin=null WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_safe_receiver: kotlin.Function0? [val] declared in .test4' type=kotlin.Function0? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Function0? [val] declared in .test4' type=kotlin.Function0? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=null - $this: GET_VAR 'val tmp1_safe_receiver: kotlin.Function0? [val] declared in .test4' type=kotlin.Function0? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Function0? [val] declared in .test4' type=kotlin.Function0? origin=null diff --git a/compiler/testData/ir/irText/expressions/when.fir.txt b/compiler/testData/ir/irText/expressions/when.fir.txt index dbf2553553f..d4f2bd27364 100644 --- a/compiler/testData/ir/irText/expressions/when.fir.txt +++ b/compiler/testData/ir/irText/expressions/when.fir.txt @@ -23,31 +23,31 @@ FILE fqName: fileName:/when.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testWithSubject (x: kotlin.Any?): kotlin.String declared in ' BLOCK type=kotlin.String origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'x: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null WHEN type=kotlin.String origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="null" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null arg1: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A then: CONST String type=kotlin.String value="A" BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String - GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="String" BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.Number - GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH if: CALL 'public final fun contains (element: T of ): kotlin.Boolean declared in kotlin.collections' type=kotlin.Boolean origin=null $receiver: CALL 'public final fun setOf (): kotlin.collections.Set> [inline] declared in kotlin.collections' type=kotlin.collections.Set origin=null - element: GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + element: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="nothingness?" BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -88,7 +88,7 @@ FILE fqName: fileName:/when.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testComma (x: kotlin.Int): kotlin.String declared in ' BLOCK type=kotlin.String origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp1_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] GET_VAR 'x: kotlin.Int declared in .testComma' type=kotlin.Int origin=null WHEN type=kotlin.String origin=WHEN BRANCH @@ -99,25 +99,25 @@ FILE fqName: fileName:/when.kt if: WHEN type=kotlin.Boolean origin=OROR BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=3 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=4 then: CONST String type=kotlin.String value="1234" BRANCH @@ -126,32 +126,32 @@ FILE fqName: fileName:/when.kt if: WHEN type=kotlin.Boolean origin=OROR BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=5 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=6 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=7 then: CONST String type=kotlin.String value="567" BRANCH if: WHEN type=kotlin.Boolean origin=OROR BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=8 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=9 then: CONST String type=kotlin.String value="89" BRANCH diff --git a/compiler/testData/ir/irText/expressions/when.txt b/compiler/testData/ir/irText/expressions/when.txt index a64eeb6c986..fa895f84c07 100644 --- a/compiler/testData/ir/irText/expressions/when.txt +++ b/compiler/testData/ir/irText/expressions/when.txt @@ -23,27 +23,27 @@ FILE fqName: fileName:/when.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testWithSubject (x: kotlin.Any?): kotlin.String declared in ' BLOCK type=kotlin.String origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Any? [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'x: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null WHEN type=kotlin.String origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="null" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null arg1: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A then: CONST String type=kotlin.String value="A" BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String - GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="String" BRANCH if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL $this: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Number - GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH if: CALL 'public final fun contains (element: T of kotlin.collections.contains): kotlin.Boolean declared in kotlin.collections' type=kotlin.Boolean origin=IN @@ -51,7 +51,7 @@ FILE fqName: fileName:/when.kt $receiver: CALL 'public final fun setOf (): kotlin.collections.Set [inline] declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number - GET_VAR 'val tmp0_subject: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="nothingness?" BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -95,7 +95,7 @@ FILE fqName: fileName:/when.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testComma (x: kotlin.Int): kotlin.String declared in ' BLOCK type=kotlin.String origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] GET_VAR 'x: kotlin.Int declared in .testComma' type=kotlin.Int origin=null WHEN type=kotlin.String origin=WHEN BRANCH @@ -106,25 +106,25 @@ FILE fqName: fileName:/when.kt if: WHEN type=kotlin.Boolean origin=WHEN_COMMA BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=3 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=4 then: CONST String type=kotlin.String value="1234" BRANCH @@ -133,32 +133,32 @@ FILE fqName: fileName:/when.kt if: WHEN type=kotlin.Boolean origin=WHEN_COMMA BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=5 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=6 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=7 then: CONST String type=kotlin.String value="567" BRANCH if: WHEN type=kotlin.Boolean origin=WHEN_COMMA BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=8 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=9 then: CONST String type=kotlin.String value="89" BRANCH diff --git a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.fir.txt b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.fir.txt index 38130e88eb3..32ab6eefa35 100644 --- a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.fir.txt +++ b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.fir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/whenCoercedToUnit.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'x: kotlin.Int declared in .foo' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.txt b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.txt index 2c3dec23074..29da8a04a5e 100644 --- a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.txt +++ b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/whenCoercedToUnit.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'x: kotlin.Int declared in .foo' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/whenReturn.fir.txt b/compiler/testData/ir/irText/expressions/whenReturn.fir.txt index 58a390e3179..c1068fc5a64 100644 --- a/compiler/testData/ir/irText/expressions/whenReturn.fir.txt +++ b/compiler/testData/ir/irText/expressions/whenReturn.fir.txt @@ -3,30 +3,30 @@ FILE fqName: fileName:/whenReturn.kt VALUE_PARAMETER name:grade index:0 type:kotlin.String BLOCK_BODY BLOCK type=kotlin.String origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.String [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.String [val] GET_VAR 'grade: kotlin.String declared in .toString' type=kotlin.String origin=null WHEN type=kotlin.String origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="A" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Excellent" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="B" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Good" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="C" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Mediocre" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="D" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Fair" diff --git a/compiler/testData/ir/irText/expressions/whenReturn.txt b/compiler/testData/ir/irText/expressions/whenReturn.txt index cc2e18af0e4..3b8cb956d90 100644 --- a/compiler/testData/ir/irText/expressions/whenReturn.txt +++ b/compiler/testData/ir/irText/expressions/whenReturn.txt @@ -3,30 +3,30 @@ FILE fqName: fileName:/whenReturn.kt VALUE_PARAMETER name:grade index:0 type:kotlin.String BLOCK_BODY BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.String [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.String [val] GET_VAR 'grade: kotlin.String declared in .toString' type=kotlin.String origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="A" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Excellent" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="B" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Good" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="C" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Mediocre" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="D" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Fair" diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.txt b/compiler/testData/ir/irText/expressions/whenReturnUnit.txt index f4ab25a0559..6f638bef7ad 100644 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.txt +++ b/compiler/testData/ir/irText/expressions/whenReturnUnit.txt @@ -11,18 +11,18 @@ FILE fqName: fileName:/whenReturnUnit.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'x: kotlin.Int declared in .branch' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .branch.' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .branch.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing [inline] declared in kotlin' type=kotlin.Nothing origin=null reason: CONST String type=kotlin.String value="1" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .branch.' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .branch.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing [inline] declared in kotlin' type=kotlin.Nothing origin=null reason: CONST String type=kotlin.String value="2" diff --git a/compiler/testData/ir/irText/expressions/whenUnusedExpression.fir.txt b/compiler/testData/ir/irText/expressions/whenUnusedExpression.fir.txt index 9479e156e51..93b136c175f 100644 --- a/compiler/testData/ir/irText/expressions/whenUnusedExpression.fir.txt +++ b/compiler/testData/ir/irText/expressions/whenUnusedExpression.fir.txt @@ -7,12 +7,12 @@ FILE fqName: fileName:/whenUnusedExpression.kt BRANCH if: GET_VAR 'b: kotlin.Boolean declared in .test' type=kotlin.Boolean origin=null then: BLOCK type=kotlin.Int? origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'i: kotlin.Int declared in .test' type=kotlin.Int origin=null WHEN type=kotlin.Int? origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: CONST Int type=kotlin.Int value=1 BRANCH diff --git a/compiler/testData/ir/irText/expressions/whenUnusedExpression.txt b/compiler/testData/ir/irText/expressions/whenUnusedExpression.txt index 995ceff8284..6aa20ace895 100644 --- a/compiler/testData/ir/irText/expressions/whenUnusedExpression.txt +++ b/compiler/testData/ir/irText/expressions/whenUnusedExpression.txt @@ -8,12 +8,12 @@ FILE fqName: fileName:/whenUnusedExpression.kt if: GET_VAR 'b: kotlin.Boolean declared in .test' type=kotlin.Boolean origin=null then: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'i: kotlin.Int declared in .test' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/whileDoWhile.txt b/compiler/testData/ir/irText/expressions/whileDoWhile.txt index 1da04de5499..27939a96fd3 100644 --- a/compiler/testData/ir/irText/expressions/whileDoWhile.txt +++ b/compiler/testData/ir/irText/expressions/whileDoWhile.txt @@ -13,12 +13,12 @@ FILE fqName: fileName:/whileDoWhile.kt arg1: CONST Int type=kotlin.Int value=5 body: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null @@ -26,12 +26,12 @@ FILE fqName: fileName:/whileDoWhile.kt body: BLOCK type=kotlin.Unit 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:tmp1 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT @@ -41,12 +41,12 @@ FILE fqName: fileName:/whileDoWhile.kt DO_WHILE label=null origin=DO_WHILE_LOOP body: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=15 @@ -55,12 +55,12 @@ FILE fqName: fileName:/whileDoWhile.kt body: COMPOSITE type=kotlin.Unit 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:tmp3 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=20 diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt index 67ff7ce01e1..1785401f1fb 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt @@ -106,7 +106,7 @@ FILE fqName: fileName:/destructuringInLambda.kt GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false - VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:.A [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] TYPE_OP type=.A origin=CAST typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -116,7 +116,7 @@ FILE fqName: fileName:/destructuringInLambda.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .A [val] declared in .A.equals' type=.A origin=null + receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null @@ -126,7 +126,7 @@ FILE fqName: fileName:/destructuringInLambda.kt arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp0_other_with_cast: .A [val] declared in .A.equals' type=.A origin=null + receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' diff --git a/compiler/testData/ir/irText/lambdas/localFunction.txt b/compiler/testData/ir/irText/lambdas/localFunction.txt index 7c15146bc16..3f160864745 100644 --- a/compiler/testData/ir/irText/lambdas/localFunction.txt +++ b/compiler/testData/ir/irText/lambdas/localFunction.txt @@ -7,10 +7,10 @@ FILE fqName: fileName:/localFunction.kt BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'var x: kotlin.Int [var] declared in .outer' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'var x: kotlin.Int [var] declared in .outer' type=kotlin.Unit origin=POSTFIX_INCR CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0: kotlin.Int [val] declared in .outer.local' type=kotlin.Int origin=null - GET_VAR 'val tmp0: kotlin.Int [val] declared in .outer.local' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .outer.local' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int [val] declared in .outer.local' type=kotlin.Int origin=null CALL 'local final fun local (): kotlin.Unit declared in .outer' type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/regressions/coercionInLoop.txt b/compiler/testData/ir/irText/regressions/coercionInLoop.txt index 5a2855884ac..efe376952db 100644 --- a/compiler/testData/ir/irText/regressions/coercionInLoop.txt +++ b/compiler/testData/ir/irText/regressions/coercionInLoop.txt @@ -28,11 +28,11 @@ FILE fqName: fileName:/coercionInLoop.kt GET_VAR 'var i: kotlin.Int [var] declared in .box' 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:tmp0 type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] GET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Unit origin=POSTFIX_INCR CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp0: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null - GET_VAR 'val tmp0: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/ir/irText/regressions/kt24114.fir.txt b/compiler/testData/ir/irText/regressions/kt24114.fir.txt index b0f3ebce7f4..0f13948fa07 100644 --- a/compiler/testData/ir/irText/regressions/kt24114.fir.txt +++ b/compiler/testData/ir/irText/regressions/kt24114.fir.txt @@ -12,20 +12,20 @@ FILE fqName: fileName:/kt24114.kt WHILE label=null origin=WHILE_LOOP condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] CALL 'public final fun one (): kotlin.Int declared in ' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp1_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public final fun two (): kotlin.Int declared in ' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: RETURN type=kotlin.Nothing from='public final fun test1 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 @@ -38,20 +38,20 @@ FILE fqName: fileName:/kt24114.kt WHILE label=null origin=WHILE_LOOP condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp2_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CALL 'public final fun one (): kotlin.Int declared in ' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp2_subject: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp3_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun two (): kotlin.Int declared in ' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp3_subject: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 diff --git a/compiler/testData/ir/irText/regressions/kt24114.txt b/compiler/testData/ir/irText/regressions/kt24114.txt index 705b14fa14c..40a9f9bd19f 100644 --- a/compiler/testData/ir/irText/regressions/kt24114.txt +++ b/compiler/testData/ir/irText/regressions/kt24114.txt @@ -13,21 +13,21 @@ FILE fqName: fileName:/kt24114.kt condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] CALL 'public final fun one (): kotlin.Int declared in ' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp1_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public final fun two (): kotlin.Int declared in ' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: RETURN type=kotlin.Nothing from='public final fun test1 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 @@ -41,20 +41,20 @@ FILE fqName: fileName:/kt24114.kt condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CALL 'public final fun one (): kotlin.Int declared in ' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp1_subject type:kotlin.Int [val] + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun two (): kotlin.Int declared in ' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp1_subject: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 diff --git a/compiler/testData/ir/irText/stubs/builtinMap.txt b/compiler/testData/ir/irText/stubs/builtinMap.txt index 274309f784b..b2d17198d93 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap.txt @@ -27,7 +27,7 @@ FILE fqName: fileName:/builtinMap.kt $receiver: VALUE_PARAMETER name: type:java.util.LinkedHashMap.plus?, V1 of .plus?>{ kotlin.collections.LinkedHashMap.plus?, V1 of .plus?> } BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun put (key: K of java.util.LinkedHashMap, value: V of java.util.LinkedHashMap): V of java.util.LinkedHashMap? declared in java.util.LinkedHashMap' type=V1 of .plus? origin=null + CALL 'public open fun put (key: K of java.util.LinkedHashMap, value: V of java.util.LinkedHashMap): V of java.util.LinkedHashMap? [fake_override] declared in java.util.LinkedHashMap' type=V1 of .plus? origin=null $this: GET_VAR ': java.util.LinkedHashMap.plus?, V1 of .plus?>{ kotlin.collections.LinkedHashMap.plus?, V1 of .plus?> } declared in .plus.' type=java.util.LinkedHashMap.plus?, V1 of .plus?>{ kotlin.collections.LinkedHashMap.plus?, V1 of .plus?> } origin=null key: CALL 'public final fun (): A of kotlin.Pair declared in kotlin.Pair' type=K1 of .plus origin=GET_PROPERTY $this: GET_VAR 'pair: kotlin.Pair.plus, V1 of .plus> declared in .plus' type=kotlin.Pair.plus, V1 of .plus> origin=null diff --git a/compiler/testData/ir/irText/types/kt30796.fir.txt b/compiler/testData/ir/irText/types/kt30796.fir.txt deleted file mode 100644 index 0ed29c3cb3e..00000000000 --- a/compiler/testData/ir/irText/types/kt30796.fir.txt +++ /dev/null @@ -1,37 +0,0 @@ -FILE fqName: fileName:/kt30796.kt - FUN name:testElvis1 visibility:public modality:FINAL (value:T of .testElvis1) returnType:kotlin.Any - TYPE_PARAMETER name:T index:0 variance: superTypes:[] - VALUE_PARAMETER name:value index:0 type:T of .testElvis1 - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testElvis1 (value: T of .testElvis1): kotlin.Any declared in ' - BLOCK type=kotlin.Any origin=ELVIS - VAR name: type:T of .testElvis1 [val] - GET_VAR 'value: T of .testElvis1 declared in .testElvis1' type=T of .testElvis1 origin=null - WHEN type=kotlin.Any origin=ELVIS - BRANCH - if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val : T of .testElvis1 [val] declared in .testElvis1' type=T of .testElvis1 origin=null - arg1: CONST Null type=kotlin.Nothing? value=null - then: CONST Int type=kotlin.Any value=42 - BRANCH - if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val : T of .testElvis1 [val] declared in .testElvis1' type=T of .testElvis1 origin=null - FUN name:testElvis2 visibility:public modality:FINAL (value:T of .testElvis2) returnType:kotlin.Any - TYPE_PARAMETER name:T index:0 variance: superTypes:[] - VALUE_PARAMETER name:value index:0 type:T of .testElvis2 - BLOCK_BODY - VAR name:a type:kotlin.Int [val] - BLOCK type=kotlin.Int origin=ELVIS - VAR name: type:T of .testElvis2 [val] - GET_VAR 'value: T of .testElvis2 declared in .testElvis2' type=T of .testElvis2 origin=null - WHEN type=kotlin.Int origin=ELVIS - BRANCH - if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val : T of .testElvis2 [val] declared in .testElvis2' type=T of .testElvis2 origin=null - arg1: CONST Null type=kotlin.Nothing? value=null - then: CONST Int type=kotlin.Int value=42 - BRANCH - if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val : T of .testElvis2 [val] declared in .testElvis2' type=T of .testElvis2 origin=null - RETURN type=kotlin.Nothing from='public final fun testElvis2 (value: T of .testElvis2): kotlin.Any declared in ' - GET_VAR 'val a: kotlin.Int [val] declared in .testElvis2' type=kotlin.Int origin=null diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrGeneratorTestCase.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrGeneratorTestCase.kt index fc2ef26c8fa..0d190a5919b 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrGeneratorTestCase.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrGeneratorTestCase.kt @@ -105,17 +105,6 @@ abstract class AbstractIrGeneratorTestCase : CodegenTestCase() { internal fun shouldIgnoreErrors(wholeFile: File): Boolean = IGNORE_ERRORS_PATTERN.containsMatchIn(wholeFile.readText()) - fun createExpectedTextFile(testFile: TestFile, dir: File, fileName: String): File { - val textFile = File(dir, fileName) - if (!textFile.exists()) { - TestCase.assertTrue("Can't create an expected text containingFile: ${textFile.absolutePath}", textFile.createNewFile()) - PrintWriter(FileWriter(textFile)).use { - it.println("$fileName: new expected text containingFile for ${testFile.name}") - } - } - return textFile - } - fun generateIrModuleWithJsResolve( ktFilesToAnalyze: List, environment: KotlinCoreEnvironment, psi2ir: Psi2IrTranslator ): IrModuleFragment = diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrTextTestCase.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrTextTestCase.kt index 7f5f48e611c..7aa0438b7ae 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrTextTestCase.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrTextTestCase.kt @@ -103,7 +103,7 @@ abstract class AbstractIrTextTestCase : AbstractIrGeneratorTestCase() { if (testFile.isExternalFile()) return val expectations = parseExpectations(dir, testFile) - val irFileDump = irFile.dump() + val irFileDump = irFile.dump(normalizeNames = true) val expected = StringBuilder() val actual = StringBuilder() @@ -114,13 +114,13 @@ abstract class AbstractIrTextTestCase : AbstractIrGeneratorTestCase() { } for (irTreeFileLabel in expectations.irTreeFileLabels) { - val actualTrees = irFile.dumpTreesFromLineNumber(irTreeFileLabel.lineNumber) + val actualTrees = irFile.dumpTreesFromLineNumber(irTreeFileLabel.lineNumber, normalizeNames = true) KotlinTestUtils.assertEqualsToFile(irTreeFileLabel.expectedTextFile, actualTrees) verify(irFile) // Check that deep copy produces an equivalent result val irFileCopy = irFile.deepCopyWithSymbols() - val copiedTrees = irFileCopy.dumpTreesFromLineNumber(irTreeFileLabel.lineNumber) + val copiedTrees = irFileCopy.dumpTreesFromLineNumber(irTreeFileLabel.lineNumber, normalizeNames = true) TestCase.assertEquals("IR dump mismatch after deep copy with symbols", actualTrees, copiedTrees) verify(irFileCopy) } @@ -347,12 +347,12 @@ abstract class AbstractIrTextTestCase : AbstractIrGeneratorTestCase() { var treeFiles = testFile.content.matchLinesWith(IR_FILE_TXT_PATTERN) { val fileName = it.groupValues[1].trim() - val file = createExpectedTextFile(testFile, dir, getExpectedTextFileName(testFile, fileName)) + val file = File(dir, getExpectedTextFileName(testFile, fileName)) IrTreeFileLabel(file, 0) } if (treeFiles.isEmpty()) { - val file = createExpectedTextFile(testFile, dir, getExpectedTextFileName(testFile)) + val file = File(dir, getExpectedTextFileName(testFile)) treeFiles = listOf(IrTreeFileLabel(file, 0)) }