[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
@@ -42,32 +42,32 @@ object X1 {
|
||||
|
||||
fun test1(a: IntArray) {
|
||||
var i: Int = 0
|
||||
val <array>: IntArray = a
|
||||
val <index_0>: Int = { // BLOCK
|
||||
val <unary>: Int = i
|
||||
i = <unary>.inc()
|
||||
<unary>
|
||||
val tmp_0: IntArray = a
|
||||
val tmp_1: Int = { // BLOCK
|
||||
val tmp_2: Int = i
|
||||
i = tmp_2.inc()
|
||||
tmp_2
|
||||
}
|
||||
val <unary>: Int = <array>.get(index = <index_0>)
|
||||
<array>.set(index = <index_0>, value = <unary>.inc())
|
||||
<unary> /*~> Unit */
|
||||
val tmp_3: Int = tmp_0.get(index = tmp_1)
|
||||
tmp_0.set(index = tmp_1, value = tmp_3.inc())
|
||||
tmp_3 /*~> Unit */
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
{ // BLOCK
|
||||
val <unary>: Int = X1.<get-x1>()
|
||||
X1.<set-x1>(<set-?> = <unary>.inc())
|
||||
<unary>
|
||||
val tmp_4: Int = X1.<get-x1>()
|
||||
X1.<set-x1>(<set-?> = tmp_4.inc())
|
||||
tmp_4
|
||||
} /*~> Unit */
|
||||
{ // BLOCK
|
||||
val <unary>: Int = X2.<get-x2>()
|
||||
X2.<set-x2>(<set-?> = <unary>.inc())
|
||||
<unary>
|
||||
val tmp_5: Int = X2.<get-x2>()
|
||||
X2.<set-x2>(<set-?> = tmp_5.inc())
|
||||
tmp_5
|
||||
} /*~> Unit */
|
||||
{ // BLOCK
|
||||
val <unary>: Int = X3.<get-x3>()
|
||||
X3.<set-x3>(<set-?> = <unary>.inc())
|
||||
<unary>
|
||||
val tmp_6: Int = X3.<get-x3>()
|
||||
X3.<set-x3>(<set-?> = tmp_6.inc())
|
||||
tmp_6
|
||||
} /*~> Unit */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user