[IR] update testdata

This commit is contained in:
Zalim Bashorov
2020-11-05 23:40:21 +03:00
committed by teamcityserver
parent 6a1ab1b325
commit fc5c674c60
94 changed files with 354 additions and 354 deletions
@@ -1,6 +1,6 @@
fun test(x: Any?, y: Double): Boolean {
return when {
x is Int -> less(arg0 = { //BLOCK
x is Int -> less(arg0 = { // BLOCK
val tmp0_safe_receiver: Any? = x
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
@@ -4,7 +4,7 @@ fun testDD(x: Double?, y: Double?): Boolean {
fun testDF(x: Double?, y: Any?): Boolean {
return when {
y is Float? -> ieee754equals(arg0 = x, arg1 = { //BLOCK
y is Float? -> ieee754equals(arg0 = x, arg1 = { // BLOCK
val tmp0_safe_receiver: Any? = y
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
@@ -17,7 +17,7 @@ fun testDF(x: Double?, y: Any?): Boolean {
fun testDI(x: Double?, y: Any?): Boolean {
return when {
y is Int? -> ieee754equals(arg0 = x, arg1 = { //BLOCK
y is Int? -> ieee754equals(arg0 = x, arg1 = { // BLOCK
val tmp0_safe_receiver: Any? = y
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
@@ -33,7 +33,7 @@ fun testDI2(x: Any?, y: Any?): Boolean {
when {
x is Int? -> y is Double
true -> false
} -> ieee754equals(arg0 = { //BLOCK
} -> ieee754equals(arg0 = { // BLOCK
val tmp0_safe_receiver: Any? = x
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
@@ -1,5 +1,5 @@
fun testSimple(x: Double): Int {
return { //BLOCK
return { // BLOCK
val tmp0_subject: Double = x
when {
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0D) -> 0
@@ -12,7 +12,7 @@ fun testSmartCastInWhenSubject(x: Any): Int {
when {
x !is Double -> return -1
}
return { //BLOCK
return { // BLOCK
val tmp0_subject: Any = x
when {
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0D) -> 0
@@ -25,7 +25,7 @@ fun testSmartCastInWhenCondition(x: Double, y: Any): Int {
when {
y !is Double -> return -1
}
return { //BLOCK
return { // BLOCK
val tmp0_subject: Double = x
when {
ieee754equals(arg0 = tmp0_subject, arg1 = y /*as Double */) -> 0
@@ -35,7 +35,7 @@ fun testSmartCastInWhenCondition(x: Double, y: Any): Int {
}
fun testSmartCastInWhenConditionInBranch(x: Any): Int {
return { //BLOCK
return { // BLOCK
val tmp0_subject: Any = x
when {
tmp0_subject is Double.not() -> -1
@@ -52,7 +52,7 @@ fun testSmartCastToDifferentTypes(x: Any, y: Any): Int {
when {
y !is Float -> return -1
}
return { //BLOCK
return { // BLOCK
val tmp0_subject: Any = x
when {
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = y /*as Float */.toDouble()) -> 0
@@ -66,7 +66,7 @@ fun foo(x: Double): Double {
}
fun testWithPrematureExitInConditionSubexpression(x: Any): Int {
return { //BLOCK
return { // BLOCK
val tmp0_subject: Any = x
when {
EQEQ(arg0 = tmp0_subject, arg1 = foo(x = when {