[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
+14 -14
View File
@@ -1,17 +1,17 @@
fun testEmpty(ss: List<String>) {
{ // BLOCK
val tmp0_iterator: Iterator<String> = ss.iterator()
while (tmp0_iterator.hasNext()) { // BLOCK
val s: String = tmp0_iterator.next()
val tmp_0: Iterator<String> = ss.iterator()
while (tmp_0.hasNext()) { // BLOCK
val s: String = tmp_0.next()
}
}
}
fun testIterable(ss: List<String>) {
{ // BLOCK
val tmp0_iterator: Iterator<String> = ss.iterator()
while (tmp0_iterator.hasNext()) { // BLOCK
val s: String = tmp0_iterator.next()
val tmp_1: Iterator<String> = ss.iterator()
while (tmp_1.hasNext()) { // BLOCK
val s: String = tmp_1.next()
{ // BLOCK
println(message = s)
}
@@ -21,11 +21,11 @@ fun testIterable(ss: List<String>) {
fun testDestructuring(pp: List<Pair<Int, String>>) {
{ // BLOCK
val tmp0_iterator: Iterator<Pair<Int, String>> = pp.iterator()
while (tmp0_iterator.hasNext()) { // BLOCK
val tmp1_loop_parameter: Pair<Int, String> = tmp0_iterator.next()
val i: Int = tmp1_loop_parameter.component1()
val s: String = tmp1_loop_parameter.component2()
val tmp_2: Iterator<Pair<Int, String>> = pp.iterator()
while (tmp_2.hasNext()) { // BLOCK
val tmp_3: Pair<Int, String> = tmp_2.next()
val i: Int = tmp_3.component1()
val s: String = tmp_3.component2()
{ // BLOCK
println(message = i)
println(message = s)
@@ -36,9 +36,9 @@ fun testDestructuring(pp: List<Pair<Int, String>>) {
fun testRange() {
{ // BLOCK
val tmp0_iterator: IntIterator = 1.rangeTo(other = 10).iterator()
while (tmp0_iterator.hasNext()) { // BLOCK
val i: Int = tmp0_iterator.next()
val tmp_4: IntIterator = 1.rangeTo(other = 10).iterator()
while (tmp_4.hasNext()) { // BLOCK
val i: Int = tmp_4.next()
}
}
}