Generate IrTypeParameter and IrValueParameter declarations

This commit is contained in:
Dmitry Petrov
2017-03-15 17:47:46 +03:00
parent 03b664febd
commit 8cea27b5bb
149 changed files with 2251 additions and 331 deletions
@@ -12,6 +12,7 @@ FILE /arrayAccess.kt
RETURN type=kotlin.Nothing from='foo(): Int'
CONST Int type=kotlin.Int value='1'
FUN public fun test(a: kotlin.IntArray): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.IntArray
BLOCK_BODY
RETURN type=kotlin.Nothing from='test(IntArray): Int'
CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS
@@ -13,6 +13,7 @@ FILE /arrayAugmentedAssignment1.kt
CONST Int type=kotlin.Int value='42'
CLASS CLASS C
CONSTRUCTOR public constructor C(x: kotlin.IntArray)
VALUE_PARAMETER value-parameter x: kotlin.IntArray
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='C'
@@ -21,6 +22,7 @@ FILE /arrayAugmentedAssignment1.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: IntArray' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.IntArray
$this: VALUE_PARAMETER <receiver: C>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): IntArray'
GET_FIELD 'x: IntArray' type=kotlin.IntArray origin=null
@@ -58,6 +60,7 @@ FILE /arrayAugmentedAssignment1.kt
index: GET_VAR 'tmp1_index0: Int' type=kotlin.Int origin=null
other: CONST Int type=kotlin.Int value='2'
FUN public fun testMember(c: C): kotlin.Unit
VALUE_PARAMETER value-parameter c: C
BLOCK_BODY
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
BLOCK type=kotlin.Int origin=POSTFIX_INCR
@@ -1,9 +1,17 @@
FILE /arrayAugmentedAssignment2.kt
CLASS INTERFACE IA
FUN public abstract operator fun get(index: kotlin.String): kotlin.Int
$this: VALUE_PARAMETER <receiver: IA>
VALUE_PARAMETER value-parameter index: kotlin.String
CLASS INTERFACE IB
FUN public abstract operator fun IA.set(index: kotlin.String, value: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: IB>
$receiver: VALUE_PARAMETER <receiver: set(String, Int) on IA: Unit>
VALUE_PARAMETER value-parameter index: kotlin.String
VALUE_PARAMETER value-parameter value: kotlin.Int
FUN public fun IB.test(a: IA): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test(IA) on IB: Unit>
VALUE_PARAMETER value-parameter a: IA
BLOCK_BODY
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE val tmp0_array: IA
@@ -1,6 +1,7 @@
FILE /assignments.kt
CLASS CLASS Ref
CONSTRUCTOR public constructor Ref(x: kotlin.Int)
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Ref'
@@ -9,11 +10,14 @@ FILE /assignments.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Ref>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
GET_FIELD 'x: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Ref>
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
@@ -29,6 +33,7 @@ FILE /assignments.kt
$this: GET_VAR 'x: Int' type=kotlin.Int origin=null
other: CONST Int type=kotlin.Int value='1'
FUN public fun test2(r: Ref): kotlin.Unit
VALUE_PARAMETER value-parameter r: Ref
BLOCK_BODY
CALL '<set-x>(Int): Unit' type=kotlin.Unit origin=EQ
$this: GET_VAR 'value-parameter r: Ref' type=Ref origin=null
@@ -8,6 +8,7 @@ FILE /augmentedAssignment1.kt
RETURN type=kotlin.Nothing from='<get-p>(): Int'
GET_FIELD 'p: Int' type=kotlin.Int origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public fun <set-p>(<set-?>: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'p: Int' type=kotlin.Unit origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
@@ -5,14 +5,24 @@ FILE /augmentedAssignment2.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN public operator fun A.plusAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: plusAssign(String) on A: Unit>
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public operator fun A.minusAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: minusAssign(String) on A: Unit>
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public operator fun A.timesAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: timesAssign(String) on A: Unit>
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public operator fun A.divAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: divAssign(String) on A: Unit>
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public operator fun A.modAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: modAssign(String) on A: Unit>
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
PROPERTY public val p: A
FIELD PROPERTY_BACKING_FIELD public val p: A
@@ -5,8 +5,11 @@ FILE /augmentedAssignmentWithExpression.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Host'
FUN public final operator fun plusAssign(x: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Host>
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
FUN public final fun test1(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Host>
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR '<receiver: Host>' type=Host origin=null
@@ -16,6 +19,7 @@ FILE /augmentedAssignmentWithExpression.kt
RETURN type=kotlin.Nothing from='foo(): Host'
CALL 'constructor Host()' type=Host origin=null
FUN public fun Host.test2(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test2() on Host: Unit>
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR '<receiver: test2() on Host: Unit>' type=Host origin=null
@@ -26,6 +30,7 @@ FILE /augmentedAssignmentWithExpression.kt
$this: CALL 'foo(): Host' type=Host origin=null
x: CONST Int type=kotlin.Int value='1'
FUN public fun test4(a: () -> Host): kotlin.Unit
VALUE_PARAMETER value-parameter a: () -> Host
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: CALL 'invoke(): Host' type=Host origin=INVOKE
+2
View File
@@ -1,5 +1,6 @@
FILE /bangbang.kt
FUN public fun test1(a: kotlin.Any?): kotlin.Any
VALUE_PARAMETER value-parameter a: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Any?): Any'
BLOCK type=kotlin.Any origin=EXCLEXCL
@@ -15,6 +16,7 @@ FILE /bangbang.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: GET_VAR 'tmp0_notnull: Any?' type=kotlin.Any? origin=null
FUN public fun test2(a: kotlin.Any?): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(Any?): Int'
BLOCK type=kotlin.Int origin=EXCLEXCL
@@ -1,5 +1,6 @@
FILE /booleanConstsInAndAndOrOr.kt
FUN public fun test1(b: kotlin.Boolean): kotlin.Unit
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
WHEN type=kotlin.Boolean origin=ANDAND
@@ -11,6 +12,7 @@ FILE /booleanConstsInAndAndOrOr.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: CONST Boolean type=kotlin.Boolean value='false'
FUN public fun test2(b: kotlin.Boolean): kotlin.Unit
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
WHEN type=kotlin.Boolean origin=OROR
@@ -1,5 +1,7 @@
FILE /booleanOperators.kt
FUN public fun test1(a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Boolean
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Boolean, Boolean): Boolean'
WHEN type=kotlin.Boolean origin=ANDAND
@@ -10,6 +12,8 @@ FILE /booleanOperators.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: CONST Boolean type=kotlin.Boolean value='false'
FUN public fun test2(a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Boolean
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(Boolean, Boolean): Boolean'
WHEN type=kotlin.Boolean origin=OROR
@@ -20,12 +24,16 @@ FILE /booleanOperators.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null
FUN public fun test1x(a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Boolean
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1x(Boolean, Boolean): Boolean'
CALL 'and(Boolean): Boolean' type=kotlin.Boolean origin=null
$this: GET_VAR 'value-parameter a: Boolean' type=kotlin.Boolean origin=null
other: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null
FUN public fun test2x(a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Boolean
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2x(Boolean, Boolean): Boolean'
CALL 'or(Boolean): Boolean' type=kotlin.Boolean origin=null
@@ -5,17 +5,20 @@ FILE /boundCallableReferences.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN public final fun foo(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: A>
BLOCK_BODY
PROPERTY public final val bar: kotlin.Int = 0
FIELD PROPERTY_BACKING_FIELD public final val bar: kotlin.Int = 0
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-bar>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): Int'
GET_FIELD 'bar: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: A>' type=A origin=null
FUN public fun A.qux(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: qux() on A: Unit>
BLOCK_BODY
PROPERTY public val test1: kotlin.reflect.KFunction0<kotlin.Unit>
FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.reflect.KFunction0<kotlin.Unit>
@@ -1,5 +1,6 @@
FILE /breakContinueInLoopHeader.kt
FUN public fun test1(c: kotlin.Boolean?): kotlin.Unit
VALUE_PARAMETER value-parameter c: kotlin.Boolean?
BLOCK_BODY
WHILE label=L origin=WHILE_LOOP
condition: CONST Boolean type=kotlin.Boolean value='true'
@@ -18,6 +19,7 @@ FILE /breakContinueInLoopHeader.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: GET_VAR 'tmp0_elvis_lhs: Boolean?' type=kotlin.Boolean? origin=null
FUN public fun test2(c: kotlin.Boolean?): kotlin.Unit
VALUE_PARAMETER value-parameter c: kotlin.Boolean?
BLOCK_BODY
WHILE label=L origin=WHILE_LOOP
condition: CONST Boolean type=kotlin.Boolean value='true'
@@ -36,6 +38,7 @@ FILE /breakContinueInLoopHeader.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: GET_VAR 'tmp0_elvis_lhs: Boolean?' type=kotlin.Boolean? origin=null
FUN public fun test3(ss: kotlin.collections.List<kotlin.String>?): kotlin.Unit
VALUE_PARAMETER value-parameter ss: kotlin.collections.List<kotlin.String>?
BLOCK_BODY
WHILE label=L origin=WHILE_LOOP
condition: CONST Boolean type=kotlin.Boolean value='true'
@@ -63,6 +66,7 @@ FILE /breakContinueInLoopHeader.kt
CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT
$this: GET_VAR 'tmp1_iterator: Iterator<String>' type=kotlin.collections.Iterator<kotlin.String> origin=null
FUN public fun test4(ss: kotlin.collections.List<kotlin.String>?): kotlin.Unit
VALUE_PARAMETER value-parameter ss: kotlin.collections.List<kotlin.String>?
BLOCK_BODY
WHILE label=L origin=WHILE_LOOP
condition: CONST Boolean type=kotlin.Boolean value='true'
@@ -1,5 +1,7 @@
FILE /callWithReorderedArguments.kt
FUN public fun foo(a: kotlin.Int, b: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
FUN public fun noReorder1(): kotlin.Int
BLOCK_BODY
+9
View File
@@ -1,15 +1,19 @@
FILE /calls.kt
FUN public fun foo(x: kotlin.Int, y: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter x: kotlin.Int
VALUE_PARAMETER value-parameter y: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(Int, Int): Int'
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
FUN public fun bar(x: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='bar(Int): Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null
x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
y: CONST Int type=kotlin.Int value='1'
FUN public fun qux(x: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='qux(Int): Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null
@@ -18,16 +22,21 @@ FILE /calls.kt
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
FUN public fun kotlin.Int.ext1(): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: ext1() on Int: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext1() on Int: Int'
GET_VAR '<receiver: ext1() on Int: Int>' type=kotlin.Int origin=null
FUN public fun kotlin.Int.ext2(x: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: ext2(Int) on Int: Int>
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext2(Int) on Int: Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null
x: GET_VAR '<receiver: ext2(Int) on Int: Int>' type=kotlin.Int origin=null
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
FUN public fun kotlin.Int.ext3(x: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: ext3(Int) on Int: Int>
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext3(Int) on Int: Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null
@@ -5,14 +5,17 @@ FILE /chainOfSafeCalls.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='C'
FUN public final fun foo(): C
$this: VALUE_PARAMETER <receiver: C>
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(): C'
GET_VAR '<receiver: C>' type=C origin=null
FUN public final fun bar(): C?
$this: VALUE_PARAMETER <receiver: C>
BLOCK_BODY
RETURN type=kotlin.Nothing from='bar(): C?'
GET_VAR '<receiver: C>' type=C origin=null
FUN public fun test(nc: C?): C?
VALUE_PARAMETER value-parameter nc: C?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test(C?): C?'
BLOCK type=C? origin=SAFE_CALL
@@ -14,6 +14,7 @@ FILE /coercionToUnit.kt
RETURN type=kotlin.Nothing from='<get-test1>(): () -> Unit'
GET_FIELD 'test1: () -> Unit' type=() -> kotlin.Unit origin=null
FUN public fun test2(mc: kotlin.collections.MutableCollection<kotlin.String>): kotlin.Unit
VALUE_PARAMETER value-parameter mc: kotlin.collections.MutableCollection<kotlin.String>
BLOCK_BODY
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
CALL 'add(String): Boolean' type=kotlin.Boolean origin=null
@@ -9,11 +9,14 @@ FILE /complexAugmentedAssignment.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x1>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: X1>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x1>(): Int'
GET_FIELD 'x1: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: X1>' type=X1 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x1>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: X1>
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x1: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: X1>' type=X1 origin=null
@@ -28,11 +31,14 @@ FILE /complexAugmentedAssignment.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x2>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: X2>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x2>(): Int'
GET_FIELD 'x2: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: X2>' type=X1.X2 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x2>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: X2>
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x2: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: X2>' type=X1.X2 origin=null
@@ -47,16 +53,20 @@ FILE /complexAugmentedAssignment.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x3>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: X3>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x3>(): Int'
GET_FIELD 'x3: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: X3>' type=X1.X2.X3 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x3>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: X3>
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x3: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: X3>' type=X1.X2.X3 origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN public fun test1(a: kotlin.IntArray): kotlin.Unit
VALUE_PARAMETER value-parameter a: kotlin.IntArray
BLOCK_BODY
VAR var i: kotlin.Int
CONST Int type=kotlin.Int value='0'
@@ -125,8 +135,9 @@ FILE /complexAugmentedAssignment.kt
GET_VAR 'tmp5: Int' type=kotlin.Int origin=null
CLASS CLASS B
CONSTRUCTOR public constructor B(s: kotlin.Int = ...)
s: EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
VALUE_PARAMETER value-parameter s: kotlin.Int = ...
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='B'
@@ -135,11 +146,14 @@ FILE /complexAugmentedAssignment.kt
EXPRESSION_BODY
GET_VAR 'value-parameter s: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-s>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-s>(): Int'
GET_FIELD 's: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: B>' type=B origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-s>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: B>
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 's: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: B>' type=B origin=null
@@ -150,6 +164,9 @@ FILE /complexAugmentedAssignment.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Host'
FUN public final operator fun B.plusAssign(b: B): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Host>
$receiver: VALUE_PARAMETER <receiver: plusAssign(B) on B: Unit>
VALUE_PARAMETER value-parameter b: B
BLOCK_BODY
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE val tmp0_this: B
@@ -162,6 +179,8 @@ FILE /complexAugmentedAssignment.kt
other: CALL '<get-s>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'value-parameter b: B' type=B origin=null
FUN public fun Host.test3(v: B): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test3(B) on Host: Unit>
VALUE_PARAMETER value-parameter v: B
BLOCK_BODY
CALL 'plusAssign(B) on B: Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR '<receiver: test3(B) on Host: Unit>' type=Host origin=null
@@ -2,7 +2,13 @@ FILE /conventionComparisons.kt
CLASS INTERFACE IA
CLASS INTERFACE IB
FUN public abstract operator fun IA.compareTo(other: IA): kotlin.Int
$this: VALUE_PARAMETER <receiver: IB>
$receiver: VALUE_PARAMETER <receiver: compareTo(IA) on IA: Int>
VALUE_PARAMETER value-parameter other: IA
FUN public fun IB.test1(a1: IA, a2: IA): kotlin.Boolean
$receiver: VALUE_PARAMETER <receiver: test1(IA, IA) on IB: Boolean>
VALUE_PARAMETER value-parameter a1: IA
VALUE_PARAMETER value-parameter a2: IA
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(IA, IA) on IB: Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -11,6 +17,9 @@ FILE /conventionComparisons.kt
$receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null
other: GET_VAR 'value-parameter a2: IA' type=IA origin=null
FUN public fun IB.test2(a1: IA, a2: IA): kotlin.Boolean
$receiver: VALUE_PARAMETER <receiver: test2(IA, IA) on IB: Boolean>
VALUE_PARAMETER value-parameter a1: IA
VALUE_PARAMETER value-parameter a2: IA
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(IA, IA) on IB: Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
@@ -19,6 +28,9 @@ FILE /conventionComparisons.kt
$receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null
other: GET_VAR 'value-parameter a2: IA' type=IA origin=null
FUN public fun IB.test3(a1: IA, a2: IA): kotlin.Boolean
$receiver: VALUE_PARAMETER <receiver: test3(IA, IA) on IB: Boolean>
VALUE_PARAMETER value-parameter a1: IA
VALUE_PARAMETER value-parameter a2: IA
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(IA, IA) on IB: Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -27,6 +39,9 @@ FILE /conventionComparisons.kt
$receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null
other: GET_VAR 'value-parameter a2: IA' type=IA origin=null
FUN public fun IB.test4(a1: IA, a2: IA): kotlin.Boolean
$receiver: VALUE_PARAMETER <receiver: test4(IA, IA) on IB: Boolean>
VALUE_PARAMETER value-parameter a1: IA
VALUE_PARAMETER value-parameter a2: IA
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4(IA, IA) on IB: Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
@@ -10,14 +10,19 @@ FILE /destructuring1.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='B'
FUN public final operator fun A.component1(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component1() on A: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='component1() on A: Int'
CONST Int type=kotlin.Int value='1'
FUN public final operator fun A.component2(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component2() on A: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='component2() on A: Int'
CONST Int type=kotlin.Int value='2'
FUN public fun B.test(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test() on B: Unit>
BLOCK_BODY
COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION
VAR IR_TEMPORARY_VARIABLE val tmp0_container: A
@@ -10,18 +10,25 @@ FILE /destructuringWithUnderscore.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='B'
FUN public final operator fun A.component1(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component1() on A: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='component1() on A: Int'
CONST Int type=kotlin.Int value='1'
FUN public final operator fun A.component2(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component2() on A: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='component2() on A: Int'
CONST Int type=kotlin.Int value='2'
FUN public final operator fun A.component3(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component3() on A: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='component3() on A: Int'
CONST Int type=kotlin.Int value='3'
FUN public fun B.test(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test() on B: Unit>
BLOCK_BODY
COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION
VAR IR_TEMPORARY_VARIABLE val tmp0_container: A
@@ -1,10 +1,12 @@
FILE /dotQualified.kt
FUN public fun length(s: kotlin.String): kotlin.Int
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='length(String): Int'
CALL '<get-length>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'value-parameter s: String' type=kotlin.String origin=null
FUN public fun lengthN(s: kotlin.String?): kotlin.Int?
VALUE_PARAMETER value-parameter s: kotlin.String?
BLOCK_BODY
RETURN type=kotlin.Nothing from='lengthN(String?): Int?'
BLOCK type=kotlin.Int? origin=SAFE_CALL
+8
View File
@@ -12,6 +12,8 @@ FILE /elvis.kt
RETURN type=kotlin.Nothing from='foo(): Any?'
CONST Null type=kotlin.Nothing? value='null'
FUN public fun test1(a: kotlin.Any?, b: kotlin.Any): kotlin.Any
VALUE_PARAMETER value-parameter a: kotlin.Any?
VALUE_PARAMETER value-parameter b: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Any?, Any): Any'
BLOCK type=kotlin.Any origin=ELVIS
@@ -27,6 +29,8 @@ FILE /elvis.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null
FUN public fun test2(a: kotlin.String?, b: kotlin.Any): kotlin.Any
VALUE_PARAMETER value-parameter a: kotlin.String?
VALUE_PARAMETER value-parameter b: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(String?, Any): Any'
BLOCK type=kotlin.Any origin=ELVIS
@@ -42,6 +46,8 @@ FILE /elvis.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: GET_VAR 'tmp0_elvis_lhs: String?' type=kotlin.String? origin=null
FUN public fun test3(a: kotlin.Any?, b: kotlin.Any?): kotlin.String
VALUE_PARAMETER value-parameter a: kotlin.Any?
VALUE_PARAMETER value-parameter b: kotlin.Any?
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -71,6 +77,7 @@ FILE /elvis.kt
then: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String
GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null
FUN public fun test4(x: kotlin.Any): kotlin.Any
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4(Any): Any'
BLOCK type=kotlin.Any origin=ELVIS
@@ -86,6 +93,7 @@ FILE /elvis.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null
FUN public fun test5(x: kotlin.Any): kotlin.Any
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5(Any): Any'
BLOCK type=kotlin.Any origin=ELVIS
+6
View File
@@ -1,11 +1,15 @@
FILE /equality.kt
FUN public fun test1(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Int, Int): Boolean'
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test2(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(Int, Int): Boolean'
CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ
@@ -13,6 +17,8 @@ FILE /equality.kt
arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test3(a: kotlin.Any?, b: kotlin.Any?): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Any?
VALUE_PARAMETER value-parameter b: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(Any?, Any?): Boolean'
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
@@ -1,10 +1,12 @@
FILE /extensionPropertyGetterCall.kt
PROPERTY public val kotlin.String.okext: kotlin.String
FUN public fun kotlin.String.<get-okext>(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: okext: String on String>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-okext>() on String: String'
CONST String type=kotlin.String value='OK'
FUN public fun kotlin.String.test5(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: test5() on String: String>
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5() on String: String'
CALL '<get-okext>() on String: String' type=kotlin.String origin=GET_PROPERTY
+2
View File
@@ -8,6 +8,7 @@ FILE /field.kt
RETURN type=kotlin.Nothing from='<get-testSimple>(): Int'
GET_FIELD 'testSimple: Int' type=kotlin.Int origin=null
FUN public fun <set-testSimple>(value: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
SET_FIELD 'testSimple: Int' type=kotlin.Unit origin=EQ
value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null
@@ -20,6 +21,7 @@ FILE /field.kt
RETURN type=kotlin.Nothing from='<get-testAugmented>(): Int'
GET_FIELD 'testAugmented: Int' type=kotlin.Int origin=null
FUN public fun <set-testAugmented>(value: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
SET_FIELD 'testAugmented: Int' type=kotlin.Unit origin=PLUSEQ
value: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ
+3
View File
@@ -1,5 +1,6 @@
FILE /for.kt
FUN public fun testEmpty(ss: kotlin.collections.List<kotlin.String>): kotlin.Unit
VALUE_PARAMETER value-parameter ss: kotlin.collections.List<kotlin.String>
BLOCK_BODY
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: kotlin.collections.Iterator<kotlin.String>
@@ -13,6 +14,7 @@ FILE /for.kt
CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT
$this: GET_VAR 'tmp0_iterator: Iterator<String>' type=kotlin.collections.Iterator<kotlin.String> origin=null
FUN public fun testIterable(ss: kotlin.collections.List<kotlin.String>): kotlin.Unit
VALUE_PARAMETER value-parameter ss: kotlin.collections.List<kotlin.String>
BLOCK_BODY
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: kotlin.collections.Iterator<kotlin.String>
@@ -29,6 +31,7 @@ FILE /for.kt
CALL 'println(Any?): Unit' type=kotlin.Unit origin=null
message: GET_VAR 's: String' type=kotlin.String origin=null
FUN public fun testDestructuring(pp: kotlin.collections.List<kotlin.Pair<kotlin.Int, kotlin.String>>): kotlin.Unit
VALUE_PARAMETER value-parameter pp: kotlin.collections.List<kotlin.Pair<kotlin.Int, kotlin.String>>
BLOCK_BODY
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: kotlin.collections.Iterator<kotlin.Pair<kotlin.Int, kotlin.String>>
@@ -1,5 +1,6 @@
FILE /forWithBreakContinue.kt
FUN public fun testForBreak1(ss: kotlin.collections.List<kotlin.String>): kotlin.Unit
VALUE_PARAMETER value-parameter ss: kotlin.collections.List<kotlin.String>
BLOCK_BODY
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: kotlin.collections.Iterator<kotlin.String>
@@ -15,6 +16,7 @@ FILE /forWithBreakContinue.kt
BLOCK type=kotlin.Nothing origin=null
BREAK label=null loop.label=null
FUN public fun testForBreak2(ss: kotlin.collections.List<kotlin.String>): kotlin.Unit
VALUE_PARAMETER value-parameter ss: kotlin.collections.List<kotlin.String>
BLOCK_BODY
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: kotlin.collections.Iterator<kotlin.String>
@@ -45,6 +47,7 @@ FILE /forWithBreakContinue.kt
BREAK label=null loop.label=INNER
BREAK label=OUTER loop.label=OUTER
FUN public fun testForContinue1(ss: kotlin.collections.List<kotlin.String>): kotlin.Unit
VALUE_PARAMETER value-parameter ss: kotlin.collections.List<kotlin.String>
BLOCK_BODY
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: kotlin.collections.Iterator<kotlin.String>
@@ -60,6 +63,7 @@ FILE /forWithBreakContinue.kt
BLOCK type=kotlin.Nothing origin=null
CONTINUE label=null loop.label=null
FUN public fun testForContinue2(ss: kotlin.collections.List<kotlin.String>): kotlin.Unit
VALUE_PARAMETER value-parameter ss: kotlin.collections.List<kotlin.String>
BLOCK_BODY
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: kotlin.collections.Iterator<kotlin.String>
@@ -6,6 +6,7 @@ FILE /forWithImplicitReceivers.kt
INSTANCE_INITIALIZER_CALL classDescriptor='FiveTimes'
CLASS CLASS IntCell
CONSTRUCTOR public constructor IntCell(value: kotlin.Int)
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='IntCell'
@@ -14,22 +15,29 @@ FILE /forWithImplicitReceivers.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: IntCell>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: IntCell>' type=IntCell origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-value>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: IntCell>
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: IntCell>' type=IntCell origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS INTERFACE IReceiver
FUN public open operator fun FiveTimes.iterator(): IntCell
$this: VALUE_PARAMETER <receiver: IReceiver>
$receiver: VALUE_PARAMETER <receiver: iterator() on FiveTimes: IntCell>
BLOCK_BODY
RETURN type=kotlin.Nothing from='iterator() on FiveTimes: IntCell'
CALL 'constructor IntCell(Int)' type=IntCell origin=null
value: CONST Int type=kotlin.Int value='5'
FUN public open operator fun IntCell.hasNext(): kotlin.Boolean
$this: VALUE_PARAMETER <receiver: IReceiver>
$receiver: VALUE_PARAMETER <receiver: hasNext() on IntCell: Boolean>
BLOCK_BODY
RETURN type=kotlin.Nothing from='hasNext() on IntCell: Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -38,6 +46,8 @@ FILE /forWithImplicitReceivers.kt
$this: GET_VAR '<receiver: hasNext() on IntCell: Boolean>' type=IntCell origin=null
other: CONST Int type=kotlin.Int value='0'
FUN public open operator fun IntCell.next(): kotlin.Int
$this: VALUE_PARAMETER <receiver: IReceiver>
$receiver: VALUE_PARAMETER <receiver: next() on IntCell: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='next() on IntCell: Int'
BLOCK type=kotlin.Int origin=POSTFIX_DECR
@@ -53,6 +63,7 @@ FILE /forWithImplicitReceivers.kt
$this: GET_VAR 'tmp1: Int' type=kotlin.Int origin=null
GET_VAR 'tmp1: Int' type=kotlin.Int origin=null
FUN public fun IReceiver.test(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test() on IReceiver: Unit>
BLOCK_BODY
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: IntCell
+6
View File
@@ -1,11 +1,15 @@
FILE /identity.kt
FUN public fun test1(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Int, Int): Boolean'
CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ
arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test2(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(Int, Int): Boolean'
CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQEQ
@@ -13,6 +17,8 @@ FILE /identity.kt
arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test3(a: kotlin.Any?, b: kotlin.Any?): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Any?
VALUE_PARAMETER value-parameter b: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(Any?, Any?): Boolean'
CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ
+1
View File
@@ -1,5 +1,6 @@
FILE /ifElseIf.kt
FUN public fun test(i: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter i: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test(Int): Int'
WHEN type=kotlin.Int origin=WHEN
+10
View File
@@ -1,11 +1,15 @@
FILE /in.kt
FUN public fun test1(a: kotlin.Any, x: kotlin.collections.Collection<kotlin.Any>): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Any
VALUE_PARAMETER value-parameter x: kotlin.collections.Collection<kotlin.Any>
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Any, Collection<Any>): Boolean'
CALL 'contains(Any): Boolean' type=kotlin.Boolean origin=IN
$this: GET_VAR 'value-parameter x: Collection<Any>' type=kotlin.collections.Collection<kotlin.Any> origin=null
element: GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null
FUN public fun test2(a: kotlin.Any, x: kotlin.collections.Collection<kotlin.Any>): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Any
VALUE_PARAMETER value-parameter x: kotlin.collections.Collection<kotlin.Any>
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(Any, Collection<Any>): Boolean'
CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=NOT_IN
@@ -13,12 +17,18 @@ FILE /in.kt
$this: GET_VAR 'value-parameter x: Collection<Any>' type=kotlin.collections.Collection<kotlin.Any> origin=null
element: GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null
FUN public fun <T> test3(a: T, x: kotlin.collections.Collection<T>): kotlin.Boolean
TYPE_PARAMETER <T>
VALUE_PARAMETER value-parameter a: T
VALUE_PARAMETER value-parameter x: kotlin.collections.Collection<T>
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(T, Collection<T>): Boolean'
CALL 'contains(T): Boolean' type=kotlin.Boolean origin=IN
$this: GET_VAR 'value-parameter x: Collection<T>' type=kotlin.collections.Collection<T> origin=null
element: GET_VAR 'value-parameter a: T' type=T origin=null
FUN public fun <T> test4(a: T, x: kotlin.collections.Collection<T>): kotlin.Boolean
TYPE_PARAMETER <T>
VALUE_PARAMETER value-parameter a: T
VALUE_PARAMETER value-parameter x: kotlin.collections.Collection<T>
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4(T, Collection<T>): Boolean'
CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=NOT_IN
@@ -8,6 +8,7 @@ FILE /incrementDecrement.kt
RETURN type=kotlin.Nothing from='<get-p>(): Int'
GET_FIELD 'p: Int' type=kotlin.Int origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public fun <set-p>(<set-?>: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'p: Int' type=kotlin.Unit origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
@@ -10,11 +10,14 @@ FILE /Derived.kt
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
value: CONST Int type=kotlin.Int value='0'
FUN public final fun getValue(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Derived>
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=GET_PROPERTY
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
FUN public final fun setValue(value: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Derived>
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
@@ -15,6 +15,7 @@ FILE /jvmStaticFieldReference.kt
RETURN type=kotlin.Nothing from='<get-testProp>(): Any'
CONST Int type=kotlin.Int value='42'
FUN public fun <set-testProp>(value: kotlin.Any): kotlin.Unit
VALUE_PARAMETER value-parameter value: kotlin.Any
BLOCK_BODY
CALL 'println(String!): Unit' type=kotlin.Unit origin=null
$this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream
@@ -38,6 +39,7 @@ FILE /jvmStaticFieldReference.kt
p0: CONST String type=kotlin.String value='TestClass/test'
CONST Int type=kotlin.Int value='42'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-test>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: TestClass>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test>(): Int'
GET_FIELD 'test: Int' type=kotlin.Int origin=null
@@ -5,10 +5,13 @@ FILE /membersImportedFromObject.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN public final fun foo(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(): Int'
CONST Int type=kotlin.Int value='1'
FUN public final fun kotlin.Int.fooExt(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
$receiver: VALUE_PARAMETER <receiver: fooExt() on Int: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='fooExt() on Int: Int'
CONST Int type=kotlin.Int value='2'
@@ -17,12 +20,15 @@ FILE /membersImportedFromObject.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='42'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-bar>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): Int'
GET_FIELD 'bar: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: A>' type=A origin=null
PROPERTY public final val kotlin.Int.barExt: kotlin.Int
FUN public final fun kotlin.Int.<get-barExt>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
$receiver: VALUE_PARAMETER <receiver: barExt: Int on Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-barExt>() on Int: Int'
CONST Int type=kotlin.Int value='43'
@@ -16,10 +16,14 @@ FILE /objectAsCallable.kt
FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): En
SYNTHETIC_BODY kind=ENUM_VALUEOF
FUN public operator fun A.invoke(i: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: invoke(Int) on A: Int>
VALUE_PARAMETER value-parameter i: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='invoke(Int) on A: Int'
GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null
FUN public operator fun En.invoke(i: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: invoke(Int) on En: Int>
VALUE_PARAMETER value-parameter i: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='invoke(Int) on En: Int'
GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null
@@ -1,5 +1,7 @@
FILE /primitiveComparisons.kt
FUN public fun btest1(a: kotlin.Byte, b: kotlin.Byte): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Byte
VALUE_PARAMETER value-parameter b: kotlin.Byte
BLOCK_BODY
RETURN type=kotlin.Nothing from='btest1(Byte, Byte): Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -7,6 +9,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null
other: GET_VAR 'value-parameter b: Byte' type=kotlin.Byte origin=null
FUN public fun btest2(a: kotlin.Byte, b: kotlin.Byte): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Byte
VALUE_PARAMETER value-parameter b: kotlin.Byte
BLOCK_BODY
RETURN type=kotlin.Nothing from='btest2(Byte, Byte): Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -14,6 +18,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null
other: GET_VAR 'value-parameter b: Byte' type=kotlin.Byte origin=null
FUN public fun btest3(a: kotlin.Byte, b: kotlin.Byte): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Byte
VALUE_PARAMETER value-parameter b: kotlin.Byte
BLOCK_BODY
RETURN type=kotlin.Nothing from='btest3(Byte, Byte): Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
@@ -21,6 +27,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null
other: GET_VAR 'value-parameter b: Byte' type=kotlin.Byte origin=null
FUN public fun btest4(a: kotlin.Byte, b: kotlin.Byte): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Byte
VALUE_PARAMETER value-parameter b: kotlin.Byte
BLOCK_BODY
RETURN type=kotlin.Nothing from='btest4(Byte, Byte): Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
@@ -28,6 +36,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null
other: GET_VAR 'value-parameter b: Byte' type=kotlin.Byte origin=null
FUN public fun stest1(a: kotlin.Short, b: kotlin.Short): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Short
VALUE_PARAMETER value-parameter b: kotlin.Short
BLOCK_BODY
RETURN type=kotlin.Nothing from='stest1(Short, Short): Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -35,6 +45,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null
other: GET_VAR 'value-parameter b: Short' type=kotlin.Short origin=null
FUN public fun stest2(a: kotlin.Short, b: kotlin.Short): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Short
VALUE_PARAMETER value-parameter b: kotlin.Short
BLOCK_BODY
RETURN type=kotlin.Nothing from='stest2(Short, Short): Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -42,6 +54,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null
other: GET_VAR 'value-parameter b: Short' type=kotlin.Short origin=null
FUN public fun stest3(a: kotlin.Short, b: kotlin.Short): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Short
VALUE_PARAMETER value-parameter b: kotlin.Short
BLOCK_BODY
RETURN type=kotlin.Nothing from='stest3(Short, Short): Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
@@ -49,6 +63,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null
other: GET_VAR 'value-parameter b: Short' type=kotlin.Short origin=null
FUN public fun stest4(a: kotlin.Short, b: kotlin.Short): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Short
VALUE_PARAMETER value-parameter b: kotlin.Short
BLOCK_BODY
RETURN type=kotlin.Nothing from='stest4(Short, Short): Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
@@ -56,6 +72,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null
other: GET_VAR 'value-parameter b: Short' type=kotlin.Short origin=null
FUN public fun itest1(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='itest1(Int, Int): Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -63,6 +81,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun itest2(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='itest2(Int, Int): Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -70,6 +90,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun itest3(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='itest3(Int, Int): Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
@@ -77,6 +99,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun itest4(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='itest4(Int, Int): Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
@@ -84,6 +108,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun ltest1(a: kotlin.Long, b: kotlin.Long): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Long
VALUE_PARAMETER value-parameter b: kotlin.Long
BLOCK_BODY
RETURN type=kotlin.Nothing from='ltest1(Long, Long): Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -91,6 +117,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null
other: GET_VAR 'value-parameter b: Long' type=kotlin.Long origin=null
FUN public fun ltest2(a: kotlin.Long, b: kotlin.Long): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Long
VALUE_PARAMETER value-parameter b: kotlin.Long
BLOCK_BODY
RETURN type=kotlin.Nothing from='ltest2(Long, Long): Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -98,6 +126,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null
other: GET_VAR 'value-parameter b: Long' type=kotlin.Long origin=null
FUN public fun ltest3(a: kotlin.Long, b: kotlin.Long): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Long
VALUE_PARAMETER value-parameter b: kotlin.Long
BLOCK_BODY
RETURN type=kotlin.Nothing from='ltest3(Long, Long): Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
@@ -105,6 +135,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null
other: GET_VAR 'value-parameter b: Long' type=kotlin.Long origin=null
FUN public fun ltest4(a: kotlin.Long, b: kotlin.Long): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Long
VALUE_PARAMETER value-parameter b: kotlin.Long
BLOCK_BODY
RETURN type=kotlin.Nothing from='ltest4(Long, Long): Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
@@ -112,6 +144,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null
other: GET_VAR 'value-parameter b: Long' type=kotlin.Long origin=null
FUN public fun ftest1(a: kotlin.Float, b: kotlin.Float): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Float
VALUE_PARAMETER value-parameter b: kotlin.Float
BLOCK_BODY
RETURN type=kotlin.Nothing from='ftest1(Float, Float): Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -119,6 +153,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null
other: GET_VAR 'value-parameter b: Float' type=kotlin.Float origin=null
FUN public fun ftest2(a: kotlin.Float, b: kotlin.Float): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Float
VALUE_PARAMETER value-parameter b: kotlin.Float
BLOCK_BODY
RETURN type=kotlin.Nothing from='ftest2(Float, Float): Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -126,6 +162,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null
other: GET_VAR 'value-parameter b: Float' type=kotlin.Float origin=null
FUN public fun ftest3(a: kotlin.Float, b: kotlin.Float): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Float
VALUE_PARAMETER value-parameter b: kotlin.Float
BLOCK_BODY
RETURN type=kotlin.Nothing from='ftest3(Float, Float): Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
@@ -133,6 +171,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null
other: GET_VAR 'value-parameter b: Float' type=kotlin.Float origin=null
FUN public fun ftest4(a: kotlin.Float, b: kotlin.Float): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Float
VALUE_PARAMETER value-parameter b: kotlin.Float
BLOCK_BODY
RETURN type=kotlin.Nothing from='ftest4(Float, Float): Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
@@ -140,6 +180,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null
other: GET_VAR 'value-parameter b: Float' type=kotlin.Float origin=null
FUN public fun dtest1(a: kotlin.Double, b: kotlin.Double): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Double
VALUE_PARAMETER value-parameter b: kotlin.Double
BLOCK_BODY
RETURN type=kotlin.Nothing from='dtest1(Double, Double): Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -147,6 +189,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null
other: GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null
FUN public fun dtest2(a: kotlin.Double, b: kotlin.Double): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Double
VALUE_PARAMETER value-parameter b: kotlin.Double
BLOCK_BODY
RETURN type=kotlin.Nothing from='dtest2(Double, Double): Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -154,6 +198,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null
other: GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null
FUN public fun dtest3(a: kotlin.Double, b: kotlin.Double): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Double
VALUE_PARAMETER value-parameter b: kotlin.Double
BLOCK_BODY
RETURN type=kotlin.Nothing from='dtest3(Double, Double): Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
@@ -161,6 +207,8 @@ FILE /primitiveComparisons.kt
$this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null
other: GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null
FUN public fun dtest4(a: kotlin.Double, b: kotlin.Double): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Double
VALUE_PARAMETER value-parameter b: kotlin.Double
BLOCK_BODY
RETURN type=kotlin.Nothing from='dtest4(Double, Double): Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
@@ -76,17 +76,19 @@ FILE /primitivesImplicitConversions.kt
CALL 'unaryMinus(): Int' type=kotlin.Int origin=null
$this: CONST Int type=kotlin.Int value='1'
FUN public fun testImplicitArguments(x: kotlin.Long = ...): kotlin.Unit
x: EXPRESSION_BODY
TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long
CALL 'unaryMinus(): Int' type=kotlin.Int origin=null
$this: CONST Int type=kotlin.Int value='1'
BLOCK_BODY
CLASS CLASS TestImplicitArguments
CONSTRUCTOR public constructor TestImplicitArguments(x: kotlin.Long = ...)
x: EXPRESSION_BODY
VALUE_PARAMETER value-parameter x: kotlin.Long = ...
EXPRESSION_BODY
TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long
CALL 'unaryMinus(): Int' type=kotlin.Int origin=null
$this: CONST Int type=kotlin.Int value='1'
BLOCK_BODY
CLASS CLASS TestImplicitArguments
CONSTRUCTOR public constructor TestImplicitArguments(x: kotlin.Long = ...)
VALUE_PARAMETER value-parameter x: kotlin.Long = ...
EXPRESSION_BODY
TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long
CALL 'unaryMinus(): Int' type=kotlin.Int origin=null
$this: CONST Int type=kotlin.Int value='1'
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='TestImplicitArguments'
@@ -95,6 +97,7 @@ FILE /primitivesImplicitConversions.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Long = ...' type=kotlin.Long origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Long
$this: VALUE_PARAMETER <receiver: TestImplicitArguments>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Long'
GET_FIELD 'x: Long' type=kotlin.Long origin=null
@@ -25,6 +25,7 @@ FILE /references.kt
RETURN type=kotlin.Nothing from='test1(): String'
CALL '<get-ok>(): String' type=kotlin.String origin=GET_PROPERTY
FUN public fun test2(x: kotlin.String): kotlin.String
VALUE_PARAMETER value-parameter x: kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(String): String'
GET_VAR 'value-parameter x: String' type=kotlin.String origin=null
@@ -40,10 +41,12 @@ FILE /references.kt
CALL '<get-ok3>(): String' type=kotlin.String origin=GET_PROPERTY
PROPERTY public val kotlin.String.okext: kotlin.String
FUN public fun kotlin.String.<get-okext>(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: okext: String on String>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-okext>() on String: String'
CONST String type=kotlin.String value='OK'
FUN public fun kotlin.String.test5(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: test5() on String: String>
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5() on String: String'
CALL '<get-okext>() on String: String' type=kotlin.String origin=GET_PROPERTY
@@ -5,6 +5,7 @@ FILE /reflectionLiterals.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN public final fun foo(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: A>
BLOCK_BODY
FUN public fun bar(): kotlin.Unit
BLOCK_BODY
@@ -1,6 +1,7 @@
FILE /safeAssignment.kt
CLASS CLASS C
CONSTRUCTOR public constructor C(x: kotlin.Int)
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='C'
@@ -9,16 +10,20 @@ FILE /safeAssignment.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: C>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
GET_FIELD 'x: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: C>' type=C origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: C>
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: C>' type=C origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN public fun test(nc: C?): kotlin.Unit
VALUE_PARAMETER value-parameter nc: C?
BLOCK_BODY
BLOCK type=kotlin.Unit origin=SAFE_CALL
VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: C?
@@ -6,12 +6,16 @@ FILE /safeCallWithIncrementDecrement.kt
INSTANCE_INITIALIZER_CALL classDescriptor='C'
PROPERTY public var test.C?.p: kotlin.Int
FUN public fun test.C?.<get-p>(): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: p: Int on C?>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-p>() on C?: Int'
CONST Int type=kotlin.Int value='42'
FUN public fun test.C?.<set-p>(value: kotlin.Int): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: p: Int on C?>
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
FUN public operator fun kotlin.Int?.inc(): kotlin.Int?
$receiver: VALUE_PARAMETER <receiver: inc() on Int?: Int?>
BLOCK_BODY
RETURN type=kotlin.Nothing from='inc() on Int?: Int?'
BLOCK type=kotlin.Int? origin=SAFE_CALL
@@ -28,12 +32,18 @@ FILE /safeCallWithIncrementDecrement.kt
then: CALL 'inc(): Int' type=kotlin.Int origin=null
$this: GET_VAR 'tmp0_safe_receiver: Int?' type=kotlin.Int? origin=null
FUN public operator fun kotlin.Int?.get(index: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: get(Int) on Int?: Int>
VALUE_PARAMETER value-parameter index: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='get(Int) on Int?: Int'
CONST Int type=kotlin.Int value='42'
FUN public operator fun kotlin.Int?.set(index: kotlin.Int, value: kotlin.Int): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: set(Int, Int) on Int?: Unit>
VALUE_PARAMETER value-parameter index: kotlin.Int
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
FUN public fun testProperty(nc: test.C?): kotlin.Unit
VALUE_PARAMETER value-parameter nc: test.C?
BLOCK_BODY
BLOCK type=kotlin.Unit origin=SAFE_CALL
VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: test.C?
@@ -61,6 +71,7 @@ FILE /safeCallWithIncrementDecrement.kt
$receiver: GET_VAR 'tmp2: Int' type=kotlin.Int origin=null
GET_VAR 'tmp2: Int' type=kotlin.Int origin=null
FUN public fun testArrayAccess(nc: test.C?): kotlin.Unit
VALUE_PARAMETER value-parameter nc: test.C?
BLOCK_BODY
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
BLOCK type=kotlin.Int origin=POSTFIX_INCR
+14
View File
@@ -1,6 +1,7 @@
FILE /safeCalls.kt
CLASS CLASS Ref
CONSTRUCTOR public constructor Ref(value: kotlin.Int)
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Ref'
@@ -9,22 +10,28 @@ FILE /safeCalls.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Ref>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-value>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Ref>
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS INTERFACE IHost
FUN public open fun kotlin.String.extLength(): kotlin.Int
$this: VALUE_PARAMETER <receiver: IHost>
$receiver: VALUE_PARAMETER <receiver: extLength() on String: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='extLength() on String: Int'
CALL '<get-length>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR '<receiver: extLength() on String: Int>' type=kotlin.String origin=null
FUN public fun test1(x: kotlin.String?): kotlin.Int?
VALUE_PARAMETER value-parameter x: kotlin.String?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(String?): Int?'
BLOCK type=kotlin.Int? origin=SAFE_CALL
@@ -41,6 +48,7 @@ FILE /safeCalls.kt
then: CALL '<get-length>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
FUN public fun test2(x: kotlin.String?): kotlin.Int?
VALUE_PARAMETER value-parameter x: kotlin.String?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(String?): Int?'
BLOCK type=kotlin.Int? origin=SAFE_CALL
@@ -57,6 +65,8 @@ FILE /safeCalls.kt
then: CALL 'hashCode(): Int' type=kotlin.Int origin=null
$this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
FUN public fun test3(x: kotlin.String?, y: kotlin.Any?): kotlin.Boolean?
VALUE_PARAMETER value-parameter x: kotlin.String?
VALUE_PARAMETER value-parameter y: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(String?, Any?): Boolean?'
BLOCK type=kotlin.Boolean? origin=SAFE_CALL
@@ -74,6 +84,7 @@ FILE /safeCalls.kt
$this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
other: GET_VAR 'value-parameter y: Any?' type=kotlin.Any? origin=null
FUN public fun test4(x: Ref?): kotlin.Unit
VALUE_PARAMETER value-parameter x: Ref?
BLOCK_BODY
BLOCK type=kotlin.Unit origin=SAFE_CALL
VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: Ref?
@@ -91,6 +102,8 @@ FILE /safeCalls.kt
$this: GET_VAR 'tmp0_safe_receiver: Ref?' type=Ref? origin=null
<set-?>: CONST Int type=kotlin.Int value='0'
FUN public fun IHost.test5(s: kotlin.String?): kotlin.Int?
$receiver: VALUE_PARAMETER <receiver: test5(String?) on IHost: Int?>
VALUE_PARAMETER value-parameter s: kotlin.String?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5(String?) on IHost: Int?'
BLOCK type=kotlin.Int? origin=SAFE_CALL
@@ -108,6 +121,7 @@ FILE /safeCalls.kt
$this: GET_VAR '<receiver: test5(String?) on IHost: Int?>' type=IHost origin=null
$receiver: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
FUN public fun kotlin.Int.foo(): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: foo() on Int: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo() on Int: Int'
CONST Int type=kotlin.Int value='239'
@@ -5,6 +5,8 @@ FILE /Derived.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
INSTANCE_INITIALIZER_CALL classDescriptor='Derived'
FUN public final fun setValue(v: kotlin.Any): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Derived>
VALUE_PARAMETER value-parameter v: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -1,65 +1,87 @@
FILE /simpleOperators.kt
FUN public fun test1(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Int, Int): Int'
CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test2(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(Int, Int): Int'
CALL 'minus(Int): Int' type=kotlin.Int origin=MINUS
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test3(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(Int, Int): Int'
CALL 'times(Int): Int' type=kotlin.Int origin=MUL
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test4(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4(Int, Int): Int'
CALL 'div(Int): Int' type=kotlin.Int origin=DIV
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test5(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5(Int, Int): Int'
CALL 'rem(Int): Int' type=kotlin.Int origin=PERC
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test6(a: kotlin.Int, b: kotlin.Int): kotlin.ranges.IntRange
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test6(Int, Int): IntRange'
CALL 'rangeTo(Int): IntRange' type=kotlin.ranges.IntRange origin=RANGE
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test1x(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1x(Int, Int): Int'
CALL 'plus(Int): Int' type=kotlin.Int origin=null
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test2x(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2x(Int, Int): Int'
CALL 'minus(Int): Int' type=kotlin.Int origin=null
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test3x(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3x(Int, Int): Int'
CALL 'times(Int): Int' type=kotlin.Int origin=null
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test4x(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4x(Int, Int): Int'
CALL 'div(Int): Int' type=kotlin.Int origin=null
$this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test5x(a: kotlin.Int, b: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter a: kotlin.Int
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5x(Int, Int): Int'
CALL 'mod(Int): Int' type=kotlin.Int origin=null
@@ -1,5 +1,6 @@
FILE /simpleUnaryOperators.kt
FUN public fun test1(x: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Int): Int'
CALL 'unaryMinus(): Int' type=kotlin.Int origin=UMINUS
@@ -9,6 +10,7 @@ FILE /simpleUnaryOperators.kt
RETURN type=kotlin.Nothing from='test2(): Int'
CONST Int type=kotlin.Int value='-42'
FUN public fun test3(x: kotlin.Int): kotlin.Int
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(Int): Int'
CALL 'unaryPlus(): Int' type=kotlin.Int origin=UPLUS
@@ -18,6 +20,7 @@ FILE /simpleUnaryOperators.kt
RETURN type=kotlin.Nothing from='test4(): Int'
CONST Int type=kotlin.Int value='42'
FUN public fun test5(x: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter x: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5(Boolean): Boolean'
CALL 'not(): Boolean' type=kotlin.Boolean origin=EXCL
@@ -1,17 +1,22 @@
FILE /smartCasts.kt
FUN public fun expectsString(s: kotlin.String): kotlin.Unit
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public fun expectsInt(i: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter i: kotlin.Int
BLOCK_BODY
FUN public fun overloaded(s: kotlin.String): kotlin.String
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='overloaded(String): String'
GET_VAR 'value-parameter s: String' type=kotlin.String origin=null
FUN public fun overloaded(x: kotlin.Any): kotlin.Any
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='overloaded(Any): Any'
GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null
FUN public fun test1(x: kotlin.Any): kotlin.Unit
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -35,6 +40,7 @@ FILE /smartCasts.kt
s: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String
GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null
FUN public fun test2(x: kotlin.Any): kotlin.String
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -47,6 +53,7 @@ FILE /smartCasts.kt
s: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String
GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null
FUN public fun test3(x: kotlin.Any): kotlin.String
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -2,14 +2,17 @@ FILE /smartCastsWithDestructuring.kt
CLASS INTERFACE I1
CLASS INTERFACE I2
FUN public operator fun I1.component1(): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: component1() on I1: Int>
BLOCK_BODY
RETURN type=kotlin.Nothing from='component1() on I1: Int'
CONST Int type=kotlin.Int value='1'
FUN public operator fun I2.component2(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: component2() on I2: String>
BLOCK_BODY
RETURN type=kotlin.Nothing from='component2() on I2: String'
CONST String type=kotlin.String value=''
FUN public fun test(x: I1): kotlin.Unit
VALUE_PARAMETER value-parameter x: I1
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
+2
View File
@@ -25,6 +25,7 @@ FILE /smoke.kt
RETURN type=kotlin.Nothing from='<get-testSimpleVar>(): Int'
GET_FIELD 'testSimpleVar: Int' type=kotlin.Int origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public fun <set-testSimpleVar>(<set-?>: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'testSimpleVar: Int' type=kotlin.Unit origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
@@ -34,4 +35,5 @@ FILE /smoke.kt
RETURN type=kotlin.Nothing from='<get-testVarWithAccessors>(): Int'
CONST Int type=kotlin.Int value='42'
FUN public fun <set-testVarWithAccessors>(v: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter v: kotlin.Int
BLOCK_BODY
@@ -1,5 +1,7 @@
FILE /stringComparisons.kt
FUN public fun test1(a: kotlin.String, b: kotlin.String): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.String
VALUE_PARAMETER value-parameter b: kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(String, String): Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -7,6 +9,8 @@ FILE /stringComparisons.kt
$this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null
other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null
FUN public fun test2(a: kotlin.String, b: kotlin.String): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.String
VALUE_PARAMETER value-parameter b: kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(String, String): Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -14,6 +18,8 @@ FILE /stringComparisons.kt
$this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null
other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null
FUN public fun test3(a: kotlin.String, b: kotlin.String): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.String
VALUE_PARAMETER value-parameter b: kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(String, String): Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
@@ -21,6 +27,8 @@ FILE /stringComparisons.kt
$this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null
other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null
FUN public fun test4(a: kotlin.String, b: kotlin.String): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.String
VALUE_PARAMETER value-parameter b: kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4(String, String): Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
@@ -1,11 +1,15 @@
FILE /stringPlus.kt
FUN public fun test1(a: kotlin.String, b: kotlin.Any): kotlin.String
VALUE_PARAMETER value-parameter a: kotlin.String
VALUE_PARAMETER value-parameter b: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(String, Any): String'
CALL 'plus(Any?): String' type=kotlin.String origin=PLUS
$this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null
other: GET_VAR 'value-parameter b: Any' type=kotlin.Any origin=null
FUN public fun test2(a: kotlin.String, b: kotlin.Int): kotlin.String
VALUE_PARAMETER value-parameter a: kotlin.String
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(String, Int): String'
CALL 'plus(Any?): String' type=kotlin.String origin=PLUS
@@ -14,6 +18,8 @@ FILE /stringPlus.kt
other: CONST String type=kotlin.String value='+'
other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null
FUN public fun test3(a: kotlin.String, b: kotlin.Int): kotlin.String
VALUE_PARAMETER value-parameter a: kotlin.String
VALUE_PARAMETER value-parameter b: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(String, Int): String'
CALL 'plus(Any?): String' type=kotlin.String origin=PLUS
+1
View File
@@ -4,6 +4,7 @@ FILE /throw.kt
THROW type=kotlin.Nothing
CALL 'constructor Throwable()' type=kotlin.Throwable origin=null
FUN public fun testImplicitCast(a: kotlin.Any): kotlin.Unit
VALUE_PARAMETER value-parameter a: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -1,5 +1,6 @@
FILE /tryCatchWithImplicitCast.kt
FUN public fun testImplicitCast(a: kotlin.Any): kotlin.Unit
VALUE_PARAMETER value-parameter a: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -1,5 +1,6 @@
FILE /typeArguments.kt
FUN public fun test1(x: kotlin.Any): kotlin.Boolean
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Any): Boolean'
WHEN type=kotlin.Boolean origin=ANDAND
@@ -1,21 +1,25 @@
FILE /typeOperators.kt
CLASS INTERFACE IThing
FUN public fun test1(x: kotlin.Any): kotlin.Boolean
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Any): Boolean'
TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=IThing
GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null
FUN public fun test2(x: kotlin.Any): kotlin.Boolean
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(Any): Boolean'
TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=IThing
GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null
FUN public fun test3(x: kotlin.Any): IThing
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test3(Any): IThing'
TYPE_OP type=IThing origin=CAST typeOperand=IThing
GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null
FUN public fun test4(x: kotlin.Any): IThing?
VALUE_PARAMETER value-parameter x: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4(Any): IThing?'
TYPE_OP type=IThing? origin=SAFE_CAST typeOperand=IThing
@@ -1,5 +1,6 @@
FILE /varargWithImplicitCast.kt
FUN public fun testScalar(a: kotlin.Any): kotlin.IntArray
VALUE_PARAMETER value-parameter a: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -13,6 +14,7 @@ FILE /varargWithImplicitCast.kt
TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int
GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null
FUN public fun testSpread(a: kotlin.Any): kotlin.IntArray
VALUE_PARAMETER value-parameter a: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
@@ -1,5 +1,6 @@
FILE /variableAsFunctionCall.kt
FUN public fun kotlin.String.k(): () -> kotlin.String
$receiver: VALUE_PARAMETER <receiver: k() on String: () -> String>
BLOCK_BODY
RETURN type=kotlin.Nothing from='k() on String: () -> String'
BLOCK type=() -> kotlin.String origin=LAMBDA
@@ -9,11 +10,13 @@ FILE /variableAsFunctionCall.kt
GET_VAR '<receiver: k() on String: () -> String>' type=kotlin.String origin=null
CALLABLE_REFERENCE '<anonymous>(): String' type=() -> kotlin.String origin=LAMBDA
FUN public fun test1(f: () -> kotlin.Unit): kotlin.Unit
VALUE_PARAMETER value-parameter f: () -> kotlin.Unit
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(() -> Unit): Unit'
CALL 'invoke(): Unit' type=kotlin.Unit origin=INVOKE
$this: GET_VAR 'value-parameter f: () -> Unit' type=() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION
FUN public fun test2(f: kotlin.String.() -> kotlin.Unit): kotlin.Unit
VALUE_PARAMETER value-parameter f: kotlin.String.() -> kotlin.Unit
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(String.() -> Unit): Unit'
CALL 'invoke() on String: Unit' type=kotlin.Unit origin=INVOKE
@@ -26,6 +29,7 @@ FILE /variableAsFunctionCall.kt
$this: CALL 'k() on String: () -> String' type=() -> kotlin.String origin=null
$receiver: CONST String type=kotlin.String value='hello'
FUN public fun test4(ns: kotlin.String?): kotlin.String?
VALUE_PARAMETER value-parameter ns: kotlin.String?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test4(String?): String?'
BLOCK type=kotlin.String? origin=SAFE_CALL
+3
View File
@@ -5,6 +5,7 @@ FILE /when.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN public fun testWithSubject(x: kotlin.Any?): kotlin.String
VALUE_PARAMETER value-parameter x: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='testWithSubject(Any?): String'
BLOCK type=kotlin.String origin=WHEN
@@ -36,6 +37,7 @@ FILE /when.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: CONST String type=kotlin.String value='something'
FUN public fun test(x: kotlin.Any?): kotlin.String
VALUE_PARAMETER value-parameter x: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test(Any?): String'
WHEN type=kotlin.String origin=WHEN
@@ -64,6 +66,7 @@ FILE /when.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: CONST String type=kotlin.String value='something'
FUN public fun testComma(x: kotlin.Int): kotlin.String
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='testComma(Int): String'
BLOCK type=kotlin.String origin=WHEN
@@ -1,5 +1,6 @@
FILE /whenCoercedToUnit.kt
FUN public fun foo(x: kotlin.Int): kotlin.Unit
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
BLOCK type=kotlin.Unit origin=WHEN
VAR IR_TEMPORARY_VARIABLE val tmp0_subject: kotlin.Int
@@ -1,5 +1,6 @@
FILE /whenReturn.kt
FUN public fun toString(grade: kotlin.String): kotlin.String
VALUE_PARAMETER value-parameter grade: kotlin.String
BLOCK_BODY
BLOCK type=kotlin.Unit origin=WHEN
VAR IR_TEMPORARY_VARIABLE val tmp0_subject: kotlin.String