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}
20 lines
995 B
Plaintext
Vendored
20 lines
995 B
Plaintext
Vendored
FILE fqName:<root> fileName:/ifElseIf.kt
|
|
FUN name:test visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags:
|
|
VALUE_PARAMETER name:i index:0 type:kotlin.Int flags:
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='test(Int): Int'
|
|
WHEN type=kotlin.Int origin=WHEN
|
|
BRANCH
|
|
if: CALL 'greater(Int, Int): Boolean' type=kotlin.Boolean origin=GT
|
|
arg0: GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null
|
|
arg1: CONST Int type=kotlin.Int value=0
|
|
then: CONST Int type=kotlin.Int value=1
|
|
BRANCH
|
|
if: CALL 'less(Int, Int): Boolean' type=kotlin.Boolean origin=LT
|
|
arg0: GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null
|
|
arg1: CONST Int type=kotlin.Int value=0
|
|
then: CONST Int type=kotlin.Int value=-1
|
|
BRANCH
|
|
if: CONST Boolean type=kotlin.Boolean value=true
|
|
then: CONST Int type=kotlin.Int value=0
|