[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
@@ -33,9 +33,9 @@ data class MyContainer {
when {
other !is MyContainer -> return false
}
val tmp0_other_with_cast: MyContainer = other as MyContainer
val tmp_0: MyContainer = other as MyContainer
when {
EQEQ(arg0 = <this>.#i, arg1 = tmp0_other_with_cast.#i).not() -> return false
EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
}
return true
}
@@ -69,9 +69,9 @@ fun box(): String {
var myContainer: MyContainer = MyContainer(i = 0)
with<Int, Unit>(receiver = 1, block = local fun Int.<anonymous>() {
myContainer.plusAssign($context_receiver_0 = $this$with, other = MyContainer(i = { // BLOCK
val <unary>: MyContainer = myContainer
myContainer = <unary>.inc($context_receiver_0 = $this$with)
<unary>
val tmp_1: MyContainer = myContainer
myContainer = tmp_1.inc($context_receiver_0 = $this$with)
tmp_1
}.get($context_receiver_0 = $this$with, index = 0)))
}
)
@@ -33,9 +33,9 @@ data class MyContainer {
when {
other !is MyContainer -> return false
}
val tmp0_other_with_cast: MyContainer = other as MyContainer
val tmp_0: MyContainer = other as MyContainer
when {
EQEQ(arg0 = <this>.#i, arg1 = tmp0_other_with_cast.#i).not() -> return false
EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
}
return true
}
@@ -62,8 +62,8 @@ operator fun MyContainer.plusAssign($context_receiver_0: Int, other: MyContainer
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
{ // BLOCK
val tmp0_this: MyContainer = <this>
tmp0_this.<set-i>(<set-?> = tmp0_this.<get-i>().plus(other = other.<get-i>()))
val tmp_1: MyContainer = <this>
tmp_1.<set-i>(<set-?> = tmp_1.<get-i>().plus(other = other.<get-i>()))
}
}
@@ -78,9 +78,9 @@ fun box(): String {
var myContainer: MyContainer = MyContainer(i = 0)
with<Int, Unit>(receiver = 1, block = local fun Int.<anonymous>() {
myContainer.plusAssign($context_receiver_0 = $this$with, other = MyContainer(i = { // BLOCK
val tmp0: MyContainer = myContainer
myContainer = tmp0.inc($context_receiver_0 = $this$with)
tmp0
val tmp_2: MyContainer = myContainer
myContainer = tmp_2.inc($context_receiver_0 = $this$with)
tmp_2
}.get($context_receiver_0 = $this$with, index = 0)))
}
)
@@ -33,9 +33,9 @@ data class MyContainer {
when {
other !is MyContainer -> return false
}
val tmp0_other_with_cast: MyContainer = other as MyContainer
val tmp_0: MyContainer = other as MyContainer
when {
EQEQ(arg0 = <this>.#s, arg1 = tmp0_other_with_cast.#s).not() -> return false
EQEQ(arg0 = <this>.#s, arg1 = tmp_0.#s).not() -> return false
}
return true
}
@@ -67,10 +67,10 @@ fun box(): String {
val myContainer: MyContainer = MyContainer(s = "fail")
myContainer.set($context_receiver_0 = $this$with, index = 0, value = "OK")
return { // BLOCK
val <elvis>: String? = myContainer.get($context_receiver_0 = $this$with, index = 0)
val tmp_1: String? = myContainer.get($context_receiver_0 = $this$with, index = 0)
when {
EQEQ(arg0 = <elvis>, arg1 = null) -> "fail"
else -> <elvis>
EQEQ(arg0 = tmp_1, arg1 = null) -> "fail"
else -> tmp_1
}
}
}
@@ -33,9 +33,9 @@ data class MyContainer {
when {
other !is MyContainer -> return false
}
val tmp0_other_with_cast: MyContainer = other as MyContainer
val tmp_0: MyContainer = other as MyContainer
when {
EQEQ(arg0 = <this>.#s, arg1 = tmp0_other_with_cast.#s).not() -> return false
EQEQ(arg0 = <this>.#s, arg1 = tmp_0.#s).not() -> return false
}
return true
}
@@ -67,10 +67,10 @@ fun box(): String {
val myContainer: MyContainer = MyContainer(s = "fail")
myContainer.set($context_receiver_0 = $this$with, index = 0, value = "OK")
return { // BLOCK
val tmp0_elvis_lhs: String? = myContainer.get($context_receiver_0 = $this$with, index = 0)
val tmp_1: String? = myContainer.get($context_receiver_0 = $this$with, index = 0)
when {
EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> "fail"
else -> tmp0_elvis_lhs
EQEQ(arg0 = tmp_1, arg1 = null) -> "fail"
else -> tmp_1
}
}
}
@@ -33,9 +33,9 @@ data class Result {
when {
other !is Result -> return false
}
val tmp0_other_with_cast: Result = other as Result
val tmp_0: Result = other as Result
when {
EQEQ(arg0 = <this>.#i, arg1 = tmp0_other_with_cast.#i).not() -> return false
EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
}
return true
}
@@ -33,9 +33,9 @@ data class Result {
when {
other !is Result -> return false
}
val tmp0_other_with_cast: Result = other as Result
val tmp_0: Result = other as Result
when {
EQEQ(arg0 = <this>.#i, arg1 = tmp0_other_with_cast.#i).not() -> return false
EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
}
return true
}
@@ -59,8 +59,8 @@ operator fun Result.plusAssign($context_receiver_0: Int, other: Result) {
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
{ // BLOCK
val tmp0_this: Result = <this>
tmp0_this.<set-i>(<set-?> = tmp0_this.<get-i>().plus(other = other.<get-i>()))
val tmp_1: Result = <this>
tmp_1.<set-i>(<set-?> = tmp_1.<get-i>().plus(other = other.<get-i>()))
}
}
@@ -76,8 +76,8 @@ operator fun Result.minusAssign($context_receiver_0: Int, other: Result) {
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
{ // BLOCK
val tmp0_this: Result = <this>
tmp0_this.<set-i>(<set-?> = tmp0_this.<get-i>().minus(other = other.<get-i>()))
val tmp_2: Result = <this>
tmp_2.<set-i>(<set-?> = tmp_2.<get-i>().minus(other = other.<get-i>()))
}
}
@@ -93,8 +93,8 @@ operator fun Result.timesAssign($context_receiver_0: Int, other: Result) {
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
{ // BLOCK
val tmp0_this: Result = <this>
tmp0_this.<set-i>(<set-?> = tmp0_this.<get-i>().times(other = other.<get-i>()))
val tmp_3: Result = <this>
tmp_3.<set-i>(<set-?> = tmp_3.<get-i>().times(other = other.<get-i>()))
}
}
@@ -110,8 +110,8 @@ operator fun Result.divAssign($context_receiver_0: Int, other: Result) {
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
{ // BLOCK
val tmp0_this: Result = <this>
tmp0_this.<set-i>(<set-?> = tmp0_this.<get-i>().div(other = other.<get-i>()))
val tmp_4: Result = <this>
tmp_4.<set-i>(<set-?> = tmp_4.<get-i>().div(other = other.<get-i>()))
}
}
@@ -48,12 +48,12 @@ data class Pair<A : Any?, B : Any?> {
when {
other !is Pair<A, B> -> return false
}
val tmp0_other_with_cast: Pair<A, B> = other as Pair<A, B>
val tmp_0: Pair<A, B> = other as Pair<A, B>
when {
EQEQ(arg0 = <this>.#first, arg1 = tmp0_other_with_cast.#first).not() -> return false
EQEQ(arg0 = <this>.#first, arg1 = tmp_0.#first).not() -> return false
}
when {
EQEQ(arg0 = <this>.#second, arg1 = tmp0_other_with_cast.#second).not() -> return false
EQEQ(arg0 = <this>.#second, arg1 = tmp_0.#second).not() -> return false
}
return true
}
@@ -48,12 +48,12 @@ data class Pair<A : Any?, B : Any?> {
when {
other !is Pair<A, B> -> return false
}
val tmp0_other_with_cast: Pair<A, B> = other as Pair<A, B>
val tmp_0: Pair<A, B> = other as Pair<A, B>
when {
EQEQ(arg0 = <this>.#first, arg1 = tmp0_other_with_cast.#first).not() -> return false
EQEQ(arg0 = <this>.#first, arg1 = tmp_0.#first).not() -> return false
}
when {
EQEQ(arg0 = <this>.#second, arg1 = tmp0_other_with_cast.#second).not() -> return false
EQEQ(arg0 = <this>.#second, arg1 = tmp_0.#second).not() -> return false
}
return true
}
@@ -33,9 +33,9 @@ data class Counter {
when {
other !is Counter -> return false
}
val tmp0_other_with_cast: Counter = other as Counter
val tmp_0: Counter = other as Counter
when {
EQEQ(arg0 = <this>.#i, arg1 = tmp0_other_with_cast.#i).not() -> return false
EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
}
return true
}
@@ -76,9 +76,9 @@ data class CounterConfig {
when {
other !is CounterConfig -> return false
}
val tmp0_other_with_cast: CounterConfig = other as CounterConfig
val tmp_1: CounterConfig = other as CounterConfig
when {
EQEQ(arg0 = <this>.#max, arg1 = tmp0_other_with_cast.#max).not() -> return false
EQEQ(arg0 = <this>.#max, arg1 = tmp_1.#max).not() -> return false
}
return true
}
@@ -104,10 +104,10 @@ class CounterIterator : Iterator<Int> {
override operator fun next(): Int {
return { // BLOCK
val <receiver>: Counter = <this>.<get-counter>()
val <unary>: Int = <receiver>.<get-i>()
<receiver>.<set-i>(<set-?> = <unary>.inc())
<unary>
val tmp_2: Counter = <this>.<get-counter>()
val tmp_3: Int = tmp_2.<get-i>()
tmp_2.<set-i>(<set-?> = tmp_3.inc())
tmp_3
}
}
@@ -124,9 +124,9 @@ fun box(): String {
var result: Int = 0
with<CounterConfig, Unit>(receiver = CounterConfig(), block = local fun CounterConfig.<anonymous>() {
{ // BLOCK
val <iterator>: CounterIterator = Counter().iterator($context_receiver_0 = $this$with)
while (<iterator>.hasNext()) { // BLOCK
val i: Int = <iterator>.next()
val tmp_4: CounterIterator = Counter().iterator($context_receiver_0 = $this$with)
while (tmp_4.hasNext()) { // BLOCK
val i: Int = tmp_4.next()
{ // BLOCK
result = result.plus(other = i)
}
@@ -33,9 +33,9 @@ data class Counter {
when {
other !is Counter -> return false
}
val tmp0_other_with_cast: Counter = other as Counter
val tmp_0: Counter = other as Counter
when {
EQEQ(arg0 = <this>.#i, arg1 = tmp0_other_with_cast.#i).not() -> return false
EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
}
return true
}
@@ -76,9 +76,9 @@ data class CounterConfig {
when {
other !is CounterConfig -> return false
}
val tmp0_other_with_cast: CounterConfig = other as CounterConfig
val tmp_1: CounterConfig = other as CounterConfig
when {
EQEQ(arg0 = <this>.#max, arg1 = tmp0_other_with_cast.#max).not() -> return false
EQEQ(arg0 = <this>.#max, arg1 = tmp_1.#max).not() -> return false
}
return true
}
@@ -104,11 +104,11 @@ class CounterIterator : Iterator<Int> {
override operator fun next(): Int {
return { // BLOCK
val tmp0_this: Counter = <this>.<get-counter>()
val tmp_2: Counter = <this>.<get-counter>()
{ // BLOCK
val tmp1: Int = tmp0_this.<get-i>()
tmp0_this.<set-i>(<set-?> = tmp1.inc())
tmp1
val tmp_3: Int = tmp_2.<get-i>()
tmp_2.<set-i>(<set-?> = tmp_3.inc())
tmp_3
}
}
}
@@ -126,9 +126,9 @@ fun box(): String {
var result: Int = 0
with<CounterConfig, Unit>(receiver = CounterConfig(), block = local fun CounterConfig.<anonymous>() {
{ // BLOCK
val tmp0_iterator: CounterIterator = Counter().iterator($context_receiver_0 = $this$with)
while (tmp0_iterator.hasNext()) { // BLOCK
val i: Int = tmp0_iterator.next()
val tmp_4: CounterIterator = Counter().iterator($context_receiver_0 = $this$with)
while (tmp_4.hasNext()) { // BLOCK
val i: Int = tmp_4.next()
{ // BLOCK
result = result.plus(other = i)
}
@@ -32,9 +32,9 @@ data class Result {
when {
other !is Result -> return false
}
val tmp0_other_with_cast: Result = other as Result
val tmp_0: Result = other as Result
when {
EQEQ(arg0 = <this>.#i, arg1 = tmp0_other_with_cast.#i).not() -> return false
EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
}
return true
}
@@ -73,21 +73,21 @@ fun box(): String {
var result: Result = Result(i = 0)
with<Int, Result>(receiver = 1, block = local fun Int.<anonymous>(): Result {
{ // BLOCK
val <unary>: Result = result
result = <unary>.inc($context_receiver_0 = $this$with)
<unary>
val tmp_1: Result = result
result = tmp_1.inc($context_receiver_0 = $this$with)
tmp_1
} /*~> Unit */
{ // BLOCK
val <unary>: Result = result
result = <unary>.inc($context_receiver_0 = $this$with)
<unary>
val tmp_2: Result = result
result = tmp_2.inc($context_receiver_0 = $this$with)
tmp_2
} /*~> Unit */
result.unaryMinus($context_receiver_0 = $this$with) /*~> Unit */
result.unaryPlus($context_receiver_0 = $this$with) /*~> Unit */
return { // BLOCK
val <unary>: Result = result
result = <unary>.dec($context_receiver_0 = $this$with)
<unary>
val tmp_3: Result = result
result = tmp_3.dec($context_receiver_0 = $this$with)
tmp_3
}
}
) /*~> Unit */
@@ -32,9 +32,9 @@ data class Result {
when {
other !is Result -> return false
}
val tmp0_other_with_cast: Result = other as Result
val tmp_0: Result = other as Result
when {
EQEQ(arg0 = <this>.#i, arg1 = tmp0_other_with_cast.#i).not() -> return false
EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
}
return true
}
@@ -81,21 +81,21 @@ fun box(): String {
var result: Result = Result(i = 0)
with<Int, Result>(receiver = 1, block = local fun Int.<anonymous>(): Result {
{ // BLOCK
val tmp0: Result = result
result = tmp0.inc($context_receiver_0 = $this$with)
tmp0
val tmp_1: Result = result
result = tmp_1.inc($context_receiver_0 = $this$with)
tmp_1
} /*~> Unit */
{ // BLOCK
val tmp1: Result = result
result = tmp1.inc($context_receiver_0 = $this$with)
tmp1
val tmp_2: Result = result
result = tmp_2.inc($context_receiver_0 = $this$with)
tmp_2
} /*~> Unit */
result.unaryMinus($context_receiver_0 = $this$with) /*~> Unit */
result.unaryPlus($context_receiver_0 = $this$with) /*~> Unit */
return { // BLOCK
val tmp2: Result = result
result = tmp2.dec($context_receiver_0 = $this$with)
tmp2
val tmp_3: Result = result
result = tmp_3.dec($context_receiver_0 = $this$with)
tmp_3
}
}
) /*~> Unit */
@@ -21,9 +21,9 @@ value class IT {
when {
other !is IT -> return false
}
val tmp0_other_with_cast: IT = other as IT
val tmp_0: IT = other as IT
when {
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp_0.#x).not() -> return false
}
return true
}
@@ -98,9 +98,9 @@ value class InlineMutableSet : MutableSet<IT> {
when {
other !is InlineMutableSet -> return false
}
val tmp0_other_with_cast: InlineMutableSet = other as InlineMutableSet
val tmp_1: InlineMutableSet = other as InlineMutableSet
when {
EQEQ(arg0 = <this>.#ms, arg1 = tmp0_other_with_cast.#ms).not() -> return false
EQEQ(arg0 = <this>.#ms, arg1 = tmp_1.#ms).not() -> return false
}
return true
}
@@ -21,9 +21,9 @@ value class IT {
when {
other !is IT -> return false
}
val tmp0_other_with_cast: IT = other as IT
val tmp_0: IT = other as IT
when {
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp_0.#x).not() -> return false
}
return true
}
@@ -98,9 +98,9 @@ value class InlineMutableSet : MutableSet<IT> {
when {
other !is InlineMutableSet -> return false
}
val tmp0_other_with_cast: InlineMutableSet = other as InlineMutableSet
val tmp_1: InlineMutableSet = other as InlineMutableSet
when {
EQEQ(arg0 = <this>.#ms, arg1 = tmp0_other_with_cast.#ms).not() -> return false
EQEQ(arg0 = <this>.#ms, arg1 = tmp_1.#ms).not() -> return false
}
return true
}
@@ -33,9 +33,9 @@ data class MyRec : Record {
when {
other !is MyRec -> return false
}
val tmp0_other_with_cast: MyRec = other as MyRec
val tmp_0: MyRec = other as MyRec
when {
EQEQ(arg0 = <this>.#name, arg1 = tmp0_other_with_cast.#name).not() -> return false
EQEQ(arg0 = <this>.#name, arg1 = tmp_0.#name).not() -> return false
}
return true
}
@@ -33,9 +33,9 @@ data class MyRec : Record {
when {
other !is MyRec -> return false
}
val tmp0_other_with_cast: MyRec = other as MyRec
val tmp_0: MyRec = other as MyRec
when {
EQEQ(arg0 = <this>.#name, arg1 = tmp0_other_with_cast.#name).not() -> return false
EQEQ(arg0 = <this>.#name, arg1 = tmp_0.#name).not() -> return false
}
return true
}
+12 -12
View File
@@ -1,9 +1,9 @@
fun test_1(value: Any?): String? {
return { // BLOCK
val tmp0_safe_receiver: Any? = value
val tmp_0: Any? = value
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
else -> tmp0_safe_receiver.let<Any, Nothing>(block = local fun <anonymous>(it: Any): Nothing {
EQEQ(arg0 = tmp_0, arg1 = null) -> null
else -> tmp_0.let<Any, Nothing>(block = local fun <anonymous>(it: Any): Nothing {
return "O"
}
)
@@ -14,10 +14,10 @@ fun test_1(value: Any?): String? {
fun test_2(value: Any?): String? {
return run<String?>(block = local fun <anonymous>(): String? {
return { // BLOCK
val tmp1_safe_receiver: Any? = value
val tmp_1: Any? = value
when {
EQEQ(arg0 = tmp1_safe_receiver, arg1 = null) -> null
else -> tmp1_safe_receiver.let<Any, Nothing>(block = local fun <anonymous>(it: Any): Nothing {
EQEQ(arg0 = tmp_1, arg1 = null) -> null
else -> tmp_1.let<Any, Nothing>(block = local fun <anonymous>(it: Any): Nothing {
return "K"
}
)
@@ -30,17 +30,17 @@ fun test_2(value: Any?): String? {
fun box(): String {
var result: String = ""
result = result.plus(other = { // BLOCK
val <elvis>: String? = test_1(value = 1)
val tmp_2: String? = test_1(value = 1)
when {
EQEQ(arg0 = <elvis>, arg1 = null) -> return "fail 1"
else -> <elvis>
EQEQ(arg0 = tmp_2, arg1 = null) -> return "fail 1"
else -> tmp_2
}
})
result = result.plus(other = { // BLOCK
val <elvis>: String? = test_2(value = 1)
val tmp_3: String? = test_2(value = 1)
when {
EQEQ(arg0 = <elvis>, arg1 = null) -> return "fail 2"
else -> <elvis>
EQEQ(arg0 = tmp_3, arg1 = null) -> return "fail 2"
else -> tmp_3
}
})
return result
+12 -12
View File
@@ -1,9 +1,9 @@
fun test_1(value: Any?): String? {
return { // BLOCK
val tmp0_safe_receiver: Any? = value
val tmp_0: Any? = value
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
else -> tmp0_safe_receiver.let<Any, Nothing>(block = local fun <anonymous>(it: Any): Nothing {
EQEQ(arg0 = tmp_0, arg1 = null) -> null
else -> tmp_0.let<Any, Nothing>(block = local fun <anonymous>(it: Any): Nothing {
return "O"
}
)
@@ -14,10 +14,10 @@ fun test_1(value: Any?): String? {
fun test_2(value: Any?): String? {
return run<Nothing?>(block = local fun <anonymous>(): Nothing? {
return { // BLOCK
val tmp0_safe_receiver: Any? = value
val tmp_1: Any? = value
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
else -> tmp0_safe_receiver.let<Any, Nothing>(block = local fun <anonymous>(it: Any): Nothing {
EQEQ(arg0 = tmp_1, arg1 = null) -> null
else -> tmp_1.let<Any, Nothing>(block = local fun <anonymous>(it: Any): Nothing {
return "K"
}
)
@@ -30,17 +30,17 @@ fun test_2(value: Any?): String? {
fun box(): String {
var result: String = ""
result = result.plus(other = { // BLOCK
val tmp0_elvis_lhs: String? = test_1(value = 1)
val tmp_2: String? = test_1(value = 1)
when {
EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> return "fail 1"
else -> tmp0_elvis_lhs
EQEQ(arg0 = tmp_2, arg1 = null) -> return "fail 1"
else -> tmp_2
}
})
result = result.plus(other = { // BLOCK
val tmp1_elvis_lhs: String? = test_2(value = 1)
val tmp_3: String? = test_2(value = 1)
when {
EQEQ(arg0 = tmp1_elvis_lhs, arg1 = null) -> return "fail 2"
else -> tmp1_elvis_lhs
EQEQ(arg0 = tmp_3, arg1 = null) -> return "fail 2"
else -> tmp_3
}
})
return result
@@ -47,9 +47,9 @@ data class LoginSuccessPacket {
when {
other !is LoginSuccessPacket -> return false
}
val tmp0_other_with_cast: LoginSuccessPacket = other as LoginSuccessPacket
val tmp_0: LoginSuccessPacket = other as LoginSuccessPacket
when {
EQEQ(arg0 = <this>.#id, arg1 = tmp0_other_with_cast.#id).not() -> return false
EQEQ(arg0 = <this>.#id, arg1 = tmp_0.#id).not() -> return false
}
return true
}
+2 -2
View File
@@ -46,9 +46,9 @@ data class LoginSuccessPacket {
when {
other !is LoginSuccessPacket -> return false
}
val tmp0_other_with_cast: LoginSuccessPacket = other as LoginSuccessPacket
val tmp_0: LoginSuccessPacket = other as LoginSuccessPacket
when {
EQEQ(arg0 = <this>.#id, arg1 = tmp0_other_with_cast.#id).not() -> return false
EQEQ(arg0 = <this>.#id, arg1 = tmp_0.#id).not() -> return false
}
return true
}
@@ -23,9 +23,9 @@ fun test2() {
<set-x>(<set-?> = 0)
{ // BLOCK
val <unary>: Int = <get-x>()
<set-x>(<set-?> = <unary>.inc())
<unary>
val tmp_0: Int = <get-x>()
<set-x>(<set-?> = tmp_0.inc())
tmp_0
} /*~> Unit */
<set-x>(<set-?> = <get-x>().plus(other = 1))
}
@@ -23,9 +23,9 @@ fun test2() {
<set-x>(value = 0)
{ // BLOCK
val tmp0: Int = <get-x>()
<set-x>(value = tmp0.inc())
tmp0
val tmp_0: Int = <get-x>()
<set-x>(value = tmp_0.inc())
tmp_0
} /*~> Unit */
<set-x>(value = <get-x>().plus(other = 1))
}
@@ -45,12 +45,12 @@ data class Test<T : Any?> {
when {
other !is Test<T> -> return false
}
val tmp0_other_with_cast: Test<T> = other as Test<T>
val tmp_0: Test<T> = other as Test<T>
when {
EQEQ(arg0 = <this>.#x, arg1 = tmp0_other_with_cast.#x).not() -> return false
EQEQ(arg0 = <this>.#x, arg1 = tmp_0.#x).not() -> return false
}
when {
EQEQ(arg0 = <this>.#y, arg1 = tmp0_other_with_cast.#y).not() -> return false
EQEQ(arg0 = <this>.#y, arg1 = tmp_0.#y).not() -> return false
}
return true
}