9137e68d4e
This introduces the following IR built-in functions required for proper
implementation of the number comparisons:
- ieee754Equals(T, T): Boolean,
for each T in {Float?, Double?}
- less(T, T): Boolean
lessOrEqual(T, T): Boolean
greater(T, T): Boolean
greaterOrEqual(T, T): Boolean
for each T in {Int, Long, Float, Double}
42 lines
2.8 KiB
Plaintext
Vendored
42 lines
2.8 KiB
Plaintext
Vendored
FILE fqName:<root> fileName:/stringComparisons.kt
|
|
FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.String) returnType:Boolean flags:
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.String flags:
|
|
VALUE_PARAMETER name:b index:1 type:kotlin.String flags:
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='test1(String, String): Boolean'
|
|
CALL 'greater(Int, Int): Boolean' type=kotlin.Boolean origin=GT
|
|
arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=GT
|
|
$this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null
|
|
other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null
|
|
arg1: CONST Int type=kotlin.Int value=0
|
|
FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.String) returnType:Boolean flags:
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.String flags:
|
|
VALUE_PARAMETER name:b index:1 type:kotlin.String flags:
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='test2(String, String): Boolean'
|
|
CALL 'less(Int, Int): Boolean' type=kotlin.Boolean origin=LT
|
|
arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=LT
|
|
$this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null
|
|
other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null
|
|
arg1: CONST Int type=kotlin.Int value=0
|
|
FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.String) returnType:Boolean flags:
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.String flags:
|
|
VALUE_PARAMETER name:b index:1 type:kotlin.String flags:
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='test3(String, String): Boolean'
|
|
CALL 'greaterOrEqual(Int, Int): Boolean' type=kotlin.Boolean origin=GTEQ
|
|
arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=GTEQ
|
|
$this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null
|
|
other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null
|
|
arg1: CONST Int type=kotlin.Int value=0
|
|
FUN name:test4 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.String) returnType:Boolean flags:
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.String flags:
|
|
VALUE_PARAMETER name:b index:1 type:kotlin.String flags:
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='test4(String, String): Boolean'
|
|
CALL 'lessOrEqual(Int, Int): Boolean' type=kotlin.Boolean origin=LTEQ
|
|
arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=LTEQ
|
|
$this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null
|
|
other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null
|
|
arg1: CONST Int type=kotlin.Int value=0
|