[IR] Normalize temp var names in Kotlin-like dump
^KT-61983 Fixed
This commit is contained in:
committed by
Space Team
parent
6c519488a6
commit
bae8b283c7
+17
-17
@@ -18,10 +18,10 @@ var C?.p: Int
|
||||
|
||||
operator fun Int?.inc(): Int? {
|
||||
return { // BLOCK
|
||||
val tmp0_safe_receiver: Int? = <this>
|
||||
val tmp_0: Int? = <this>
|
||||
when {
|
||||
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
|
||||
else -> tmp0_safe_receiver.inc()
|
||||
EQEQ(arg0 = tmp_0, arg1 = null) -> null
|
||||
else -> tmp_0.inc()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,15 +35,15 @@ operator fun Int?.set(index: Int, value: Int) {
|
||||
|
||||
fun testProperty(nc: C?) {
|
||||
{ // BLOCK
|
||||
val tmp0_safe_receiver: C? = nc
|
||||
val tmp_1: C? = nc
|
||||
when {
|
||||
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
|
||||
EQEQ(arg0 = tmp_1, arg1 = null) -> null
|
||||
else -> { // BLOCK
|
||||
val tmp1_receiver: C? = tmp0_safe_receiver
|
||||
val tmp_2: C? = tmp_1
|
||||
{ // BLOCK
|
||||
val tmp2: Int = tmp1_receiver.<get-p>()
|
||||
tmp1_receiver.<set-p>(value = tmp2.inc())
|
||||
tmp2
|
||||
val tmp_3: Int = tmp_2.<get-p>()
|
||||
tmp_2.<set-p>(value = tmp_3.inc())
|
||||
tmp_3
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -52,16 +52,16 @@ fun testProperty(nc: C?) {
|
||||
|
||||
fun testArrayAccess(nc: C?) {
|
||||
{ // BLOCK
|
||||
val tmp1_array: Int? = { // BLOCK
|
||||
val tmp0_safe_receiver: C? = nc
|
||||
val tmp_4: Int? = { // BLOCK
|
||||
val tmp_5: C? = nc
|
||||
when {
|
||||
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
|
||||
else -> tmp0_safe_receiver.<get-p>()
|
||||
EQEQ(arg0 = tmp_5, arg1 = null) -> null
|
||||
else -> tmp_5.<get-p>()
|
||||
}
|
||||
}
|
||||
val tmp2_index0: Int = 0
|
||||
val tmp3: Int = tmp1_array.get(index = tmp2_index0)
|
||||
tmp1_array.set(index = tmp2_index0, value = tmp3.inc())
|
||||
tmp3
|
||||
val tmp_6: Int = 0
|
||||
val tmp_7: Int = tmp_4.get(index = tmp_6)
|
||||
tmp_4.set(index = tmp_6, value = tmp_7.inc())
|
||||
tmp_7
|
||||
} /*~> Unit */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user