[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
+11
-11
@@ -22,24 +22,24 @@ class C {
|
||||
fun testVariable() {
|
||||
var x: IntArray = foo()
|
||||
{ // BLOCK
|
||||
val <array>: IntArray = x
|
||||
val <index_0>: Int = 0
|
||||
<array>.set(index = <index_0>, value = <array>.get(index = <index_0>).plus(other = 1))
|
||||
val tmp_0: IntArray = x
|
||||
val tmp_1: Int = 0
|
||||
tmp_0.set(index = tmp_1, value = tmp_0.get(index = tmp_1).plus(other = 1))
|
||||
}
|
||||
}
|
||||
|
||||
fun testCall() {
|
||||
{ // BLOCK
|
||||
val <array>: IntArray = foo()
|
||||
val <index_0>: Int = bar()
|
||||
<array>.set(index = <index_0>, value = <array>.get(index = <index_0>).times(other = 2))
|
||||
val tmp_2: IntArray = foo()
|
||||
val tmp_3: Int = bar()
|
||||
tmp_2.set(index = tmp_3, value = tmp_2.get(index = tmp_3).times(other = 2))
|
||||
}
|
||||
}
|
||||
|
||||
fun testMember(c: C) {
|
||||
val <array>: IntArray = c.<get-x>()
|
||||
val <index_0>: Int = 0
|
||||
val <unary>: Int = <array>.get(index = <index_0>)
|
||||
<array>.set(index = <index_0>, value = <unary>.inc())
|
||||
<unary> /*~> Unit */
|
||||
val tmp_4: IntArray = c.<get-x>()
|
||||
val tmp_5: Int = 0
|
||||
val tmp_6: Int = tmp_4.get(index = tmp_5)
|
||||
tmp_4.set(index = tmp_5, value = tmp_6.inc())
|
||||
tmp_6 /*~> Unit */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user