Files
kotlin-fork/compiler/testData/ir/irText/expressions/kt24804.ir.txt
T
Sergej Jaskiewicz fd76a34277 [IR] Don't print flags in declaration references in irText tests
This doesn't reduce the quality of tests, because the flags are still
printed for declarations themselves. We only omit them in references.

However, this makes the tests more compatible with non-JVM backends
(see KT-58605), because flags of referenced stdlib declarations may
differ among target platforms.
2023-05-30 17:26:30 +00:00

43 lines
2.9 KiB
Plaintext
Vendored

FILE fqName:<root> fileName:/kt24804.kt
FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Boolean [inline]
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Boolean declared in <root>'
CONST Boolean type=kotlin.Boolean value=false
FUN name:run visibility:public modality:FINAL <> (x:kotlin.Boolean, y:kotlin.Boolean) returnType:kotlin.String
VALUE_PARAMETER name:x index:0 type:kotlin.Boolean
VALUE_PARAMETER name:y index:1 type:kotlin.Boolean
BLOCK_BODY
VAR name:z type:kotlin.Int [var]
CONST Int type=kotlin.Int value=10
BLOCK type=kotlin.Unit origin=null
DO_WHILE label=l2 origin=DO_WHILE_LOOP
body: COMPOSITE type=kotlin.Unit origin=null
SET_VAR 'var z: kotlin.Int declared in <root>.run' type=kotlin.Unit origin=PLUSEQ
CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ
$this: GET_VAR 'var z: kotlin.Int declared in <root>.run' type=kotlin.Int origin=PLUSEQ
other: CONST Int type=kotlin.Int value=1
WHEN type=kotlin.Unit origin=IF
BRANCH
if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT
arg0: GET_VAR 'var z: kotlin.Int declared in <root>.run' type=kotlin.Int origin=null
arg1: CONST Int type=kotlin.Int value=100
then: RETURN type=kotlin.Nothing from='public final fun run (x: kotlin.Boolean, y: kotlin.Boolean): kotlin.String declared in <root>'
CONST String type=kotlin.String value="NOT_OK"
WHEN type=kotlin.Unit origin=IF
BRANCH
if: GET_VAR 'x: kotlin.Boolean declared in <root>.run' type=kotlin.Boolean origin=null
then: CONTINUE label=l2 loop.label=l2
WHEN type=kotlin.Unit origin=IF
BRANCH
if: GET_VAR 'y: kotlin.Boolean declared in <root>.run' type=kotlin.Boolean origin=null
then: CONTINUE label=l2 loop.label=l2
condition: CALL 'public final fun foo (): kotlin.Boolean declared in <root>' type=kotlin.Boolean origin=null
RETURN type=kotlin.Nothing from='public final fun run (x: kotlin.Boolean, y: kotlin.Boolean): kotlin.String declared in <root>'
CONST String type=kotlin.String value="OK"
FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
CALL 'public final fun run (x: kotlin.Boolean, y: kotlin.Boolean): kotlin.String declared in <root>' type=kotlin.String origin=null
x: CONST Boolean type=kotlin.Boolean value=true
y: CONST Boolean type=kotlin.Boolean value=true