[Tests] Use stable order for ir/kotlinLike dumps

^KT-65406
This commit is contained in:
Pavel Kunyavskiy
2024-02-05 16:23:41 +01:00
committed by Space Team
parent 0fa42a9c11
commit e6f4d6e6fa
1265 changed files with 43896 additions and 48472 deletions
@@ -1,14 +1,19 @@
var operationScore: Int
field = 0
get
set
data class Result {
val i: Int
field = i
get
constructor(i: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
val i: Int
field = i
get
operator fun component1(): Int {
return <this>.#i
}
@@ -17,14 +22,6 @@ data class Result {
return Result(i = i)
}
override fun toString(): String {
return "Result(" + "i=" + <this>.#i + ")"
}
override fun hashCode(): Int {
return <this>.#i.hashCode()
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
@@ -39,42 +36,14 @@ data class Result {
return true
}
}
var operationScore: Int
field = 0
get
set
operator fun Result.unaryMinus($context_receiver_0: Int): Result {
{ // BLOCK
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
override fun hashCode(): Int {
return <this>.#i.hashCode()
}
return Result(i = <this>.<get-i>().unaryMinus())
}
operator fun Result.unaryPlus($context_receiver_0: Int): Result {
{ // BLOCK
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
override fun toString(): String {
return "Result(" + "i=" + <this>.#i + ")"
}
return Result(i = when {
less(arg0 = <this>.<get-i>(), arg1 = 0) -> <this>.<get-i>().unaryMinus()
else -> <this>.<get-i>()
})
}
operator fun Result.inc($context_receiver_0: Int): Result {
{ // BLOCK
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
return Result(i = <this>.<get-i>().plus(other = 1))
}
operator fun Result.dec($context_receiver_0: Int): Result {
{ // BLOCK
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
return Result(i = <this>.<get-i>().minus(other = 1))
}
fun box(): String {
@@ -107,3 +76,35 @@ fun box(): String {
else -> "fail"
}
}
operator fun Result.dec($context_receiver_0: Int): Result {
{ // BLOCK
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
return Result(i = <this>.<get-i>().minus(other = 1))
}
operator fun Result.inc($context_receiver_0: Int): Result {
{ // BLOCK
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
return Result(i = <this>.<get-i>().plus(other = 1))
}
operator fun Result.unaryMinus($context_receiver_0: Int): Result {
{ // BLOCK
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
return Result(i = <this>.<get-i>().unaryMinus())
}
operator fun Result.unaryPlus($context_receiver_0: Int): Result {
{ // BLOCK
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
}
return Result(i = when {
less(arg0 = <this>.<get-i>(), arg1 = 0) -> <this>.<get-i>().unaryMinus()
else -> <this>.<get-i>()
})
}