[IR] Normalize temp var names in Kotlin-like dump

^KT-61983 Fixed
This commit is contained in:
Vladimir Sukharev
2023-09-19 21:29:17 +02:00
committed by Space Team
parent 6c519488a6
commit bae8b283c7
199 changed files with 1599 additions and 2273 deletions
@@ -17,22 +17,22 @@ fun test1(a: Any) {
fun test2(a: Any) {
{ // BLOCK
val <array>: Any = a
val <index_0>: Function0<Unit> = local fun <anonymous>() {
val tmp_0: Any = a
val tmp_1: Function0<Unit> = local fun <anonymous>() {
return Unit
}
<array>.set(index = <index_0>, value = <array>.get(index = <index_0>).plus(other = 42))
tmp_0.set(index = tmp_1, value = tmp_0.get(index = tmp_1).plus(other = 42))
}
}
fun test3(a: Any) {
val <array>: Any = a
val <index_0>: Function0<Unit> = local fun <anonymous>() {
val tmp_2: Any = a
val tmp_3: Function0<Unit> = local fun <anonymous>() {
return Unit
}
val <unary>: Int = <array>.get(index = <index_0>)
<array>.set(index = <index_0>, value = <unary>.inc())
<unary> /*~> Unit */
val tmp_4: Int = tmp_2.get(index = tmp_3)
tmp_2.set(index = tmp_3, value = tmp_4.inc())
tmp_4 /*~> Unit */
}