Update testData to new format

This commit is contained in:
Dmitry Petrov
2018-01-12 14:19:55 +03:00
parent 4d54036d21
commit fdd000c94f
200 changed files with 7825 additions and 7861 deletions
+3 -3
View File
@@ -2,11 +2,11 @@
// FUN: foo
BB 0
CONTENT
1 FUN public fun foo(arg: kotlin.Int): kotlin.Int
1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags:
2 GET_VAR 'value-parameter arg: Int' type=kotlin.Int origin=null
3 RETURN type=kotlin.Nothing from='foo(Int): Int'
3 RETURN type=kotlin.Nothing from=foo(Int): Int'
OUTGOING -> NONE
Function exit: FUN public fun foo(arg: kotlin.Int): kotlin.Int
Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags:
// END FUN: foo
+3 -3
View File
@@ -2,11 +2,11 @@
// FUN: foo
BB 0
CONTENT
1 FUN public fun foo(): kotlin.Unit
1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
2 GET_OBJECT 'Unit' type=kotlin.Unit
3 RETURN type=kotlin.Nothing from='foo(): Unit'
3 RETURN type=kotlin.Nothing from=foo(): Unit'
OUTGOING -> NONE
Function exit: FUN public fun foo(): kotlin.Unit
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
// END FUN: foo
+9 -9
View File
@@ -2,11 +2,11 @@
// FUN: digitCountInNumber
BB 0
CONTENT
1 FUN public fun digitCountInNumber(n: kotlin.Int, m: kotlin.Int): kotlin.Int
2 CONST Int type=kotlin.Int value='0'
3 VAR var count: kotlin.Int
1 FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:Int flags:
2 CONST Int type=kotlin.Int value=0
3 VAR name:count type:kotlin.Int flags:var
4 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null
5 VAR var number: kotlin.Int
5 VAR name:number type:kotlin.Int flags:var
6 DO_WHILE label=null origin=DO_WHILE_LOOP
OUTGOING -> BB 1
Do..while entry: DO_WHILE label=null origin=DO_WHILE_LOOP
@@ -17,7 +17,7 @@ CONTENT
1 WHEN type=kotlin.Unit origin=null
2 GET_VAR 'value-parameter m: Int' type=kotlin.Int origin=null
3 GET_VAR 'number: Int' type=kotlin.Int origin=null
4 CONST Int type=kotlin.Int value='10'
4 CONST Int type=kotlin.Int value=10
5 CALL 'rem(Int): Int' type=kotlin.Int origin=PERC
OUTGOING -> BB 2
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
@@ -26,7 +26,7 @@ INCOMING <- BB 1
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 GET_VAR 'count: Int' type=kotlin.Int origin=POSTFIX_INCR
2 VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int
2 VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val
3 SET_VAR 'count: Int' type=kotlin.Unit origin=POSTFIX_INCR
4 GET_VAR 'tmp0: Int' type=kotlin.Int origin=null
5 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
@@ -38,7 +38,7 @@ INCOMING <- BB 2
CONTENT
1 SET_VAR 'number: Int' type=kotlin.Unit origin=DIVEQ
2 GET_VAR 'number: Int' type=kotlin.Int origin=null
3 CONST Int type=kotlin.Int value='0'
3 CONST Int type=kotlin.Int value=0
4 CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT
OUTGOING -> BB 4, 5
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -59,9 +59,9 @@ INCOMING <- BB 5
Do..while exit: DO_WHILE label=null origin=DO_WHILE_LOOP
CONTENT
1 GET_VAR 'count: Int' type=kotlin.Int origin=null
2 RETURN type=kotlin.Nothing from='digitCountInNumber(Int, Int): Int'
2 RETURN type=kotlin.Nothing from=digitCountInNumber(Int, Int): Int'
OUTGOING -> NONE
Function exit: FUN public fun digitCountInNumber(n: kotlin.Int, m: kotlin.Int): kotlin.Int
Function exit: FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:Int flags:
// END FUN: digitCountInNumber
+8 -8
View File
@@ -2,14 +2,14 @@
// FUN: factorial
BB 0
CONTENT
1 FUN public fun factorial(i: kotlin.Int): kotlin.Int
2 CONST Int type=kotlin.Int value='1'
3 VAR var result: kotlin.Int
4 CONST Int type=kotlin.Int value='2'
1 FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags:
2 CONST Int type=kotlin.Int value=1
3 VAR name:result type:kotlin.Int flags:var
4 CONST Int type=kotlin.Int value=2
5 GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null
6 CALL 'rangeTo(Int): IntRange' type=kotlin.ranges.IntRange origin=RANGE
7 CALL 'iterator(): IntIterator' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR
8 VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.IntIterator
8 VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.IntIterator flags:val
9 WHILE label=null origin=FOR_LOOP_INNER_WHILE
OUTGOING -> BB 1
While entry: WHILE label=null origin=FOR_LOOP_INNER_WHILE
@@ -26,7 +26,7 @@ INCOMING <- BB 1
CONTENT
1 GET_VAR 'tmp0_iterator: IntIterator' type=kotlin.collections.IntIterator origin=null
2 CALL 'next(): Int' type=kotlin.Int origin=FOR_LOOP_NEXT
3 VAR FOR_LOOP_VARIABLE val j: kotlin.Int
3 VAR FOR_LOOP_VARIABLE name:j type:kotlin.Int flags:val
4 SET_VAR 'result: Int' type=kotlin.Unit origin=MULTEQ
OUTGOING -> BB 1
While entry: WHILE label=null origin=FOR_LOOP_INNER_WHILE
@@ -41,9 +41,9 @@ INCOMING <- BB 3
While exit: WHILE label=null origin=FOR_LOOP_INNER_WHILE
CONTENT
1 GET_VAR 'result: Int' type=kotlin.Int origin=null
2 RETURN type=kotlin.Nothing from='factorial(Int): Int'
2 RETURN type=kotlin.Nothing from=factorial(Int): Int'
OUTGOING -> NONE
Function exit: FUN public fun factorial(i: kotlin.Int): kotlin.Int
Function exit: FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags:
// END FUN: factorial
+10 -10
View File
@@ -2,16 +2,16 @@
// FUN: isPerfect
BB 0
CONTENT
1 FUN public fun isPerfect(n: kotlin.Int): kotlin.Boolean
2 CONST Int type=kotlin.Int value='1'
3 VAR var sum: kotlin.Int
4 CONST Int type=kotlin.Int value='2'
1 FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:Boolean flags:
2 CONST Int type=kotlin.Int value=1
3 VAR name:sum type:kotlin.Int flags:var
4 CONST Int type=kotlin.Int value=2
5 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null
6 CONST Int type=kotlin.Int value='2'
6 CONST Int type=kotlin.Int value=2
7 CALL 'div(Int): Int' type=kotlin.Int origin=DIV
8 CALL 'rangeTo(Int): IntRange' type=kotlin.ranges.IntRange origin=RANGE
9 CALL 'iterator(): IntIterator' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR
10 VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.IntIterator
10 VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.IntIterator flags:val
11 WHILE label=null origin=FOR_LOOP_INNER_WHILE
OUTGOING -> BB 1
While entry: WHILE label=null origin=FOR_LOOP_INNER_WHILE
@@ -28,12 +28,12 @@ INCOMING <- BB 1
CONTENT
1 GET_VAR 'tmp0_iterator: IntIterator' type=kotlin.collections.IntIterator origin=null
2 CALL 'next(): Int' type=kotlin.Int origin=FOR_LOOP_NEXT
3 VAR FOR_LOOP_VARIABLE val m: kotlin.Int
3 VAR FOR_LOOP_VARIABLE name:m type:kotlin.Int flags:val
4 WHEN type=kotlin.Unit origin=null
5 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null
6 GET_VAR 'm: Int' type=kotlin.Int origin=null
7 CALL 'rem(Int): Int' type=kotlin.Int origin=PERC
8 CONST Int type=kotlin.Int value='0'
8 CONST Int type=kotlin.Int value=0
9 CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT
OUTGOING -> BB 3, 4
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -81,9 +81,9 @@ CONTENT
1 GET_VAR 'sum: Int' type=kotlin.Int origin=null
2 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null
3 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
4 RETURN type=kotlin.Nothing from='isPerfect(Int): Boolean'
4 RETURN type=kotlin.Nothing from=isPerfect(Int): Boolean'
OUTGOING -> NONE
Function exit: FUN public fun isPerfect(n: kotlin.Int): kotlin.Boolean
Function exit: FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:Boolean flags:
// END FUN: isPerfect
+3 -3
View File
@@ -2,11 +2,11 @@
// FUN: foo
BB 0
CONTENT
1 FUN public fun foo(): kotlin.Unit
1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
2 GET_OBJECT 'Unit' type=kotlin.Unit
3 RETURN type=kotlin.Nothing from='foo(): Unit'
3 RETURN type=kotlin.Nothing from=foo(): Unit'
OUTGOING -> NONE
Function exit: FUN public fun foo(): kotlin.Unit
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
// END FUN: foo
+5 -5
View File
@@ -2,15 +2,15 @@
// FUN: foo
BB 0
CONTENT
1 FUN public fun foo(arg: kotlin.Int): kotlin.Int
1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags:
2 GET_VAR 'value-parameter arg: Int' type=kotlin.Int origin=null
3 CONST Int type=kotlin.Int value='2'
3 CONST Int type=kotlin.Int value=2
4 CALL 'times(Int): Int' type=kotlin.Int origin=MUL
5 VAR val dbl: kotlin.Int
5 VAR name:dbl type:kotlin.Int flags:val
6 GET_VAR 'dbl: Int' type=kotlin.Int origin=null
7 RETURN type=kotlin.Nothing from='foo(Int): Int'
7 RETURN type=kotlin.Nothing from=foo(Int): Int'
OUTGOING -> NONE
Function exit: FUN public fun foo(arg: kotlin.Int): kotlin.Int
Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags:
// END FUN: foo
+2 -2
View File
@@ -2,9 +2,9 @@
// FUN: foo
BB 0
CONTENT
1 FUN public fun foo(): kotlin.Unit
1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
OUTGOING -> NONE
Function exit: FUN public fun foo(): kotlin.Unit
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
// END FUN: foo
+3 -3
View File
@@ -2,11 +2,11 @@
// FUN: foo
BB 0
CONTENT
1 FUN public fun foo(): kotlin.Unit
1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
2 GET_OBJECT 'Unit' type=kotlin.Unit
3 RETURN type=kotlin.Nothing from='foo(): Unit'
3 RETURN type=kotlin.Nothing from=foo(): Unit'
OUTGOING -> NONE
Function exit: FUN public fun foo(): kotlin.Unit
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
// END FUN: foo
+8 -8
View File
@@ -2,7 +2,7 @@
// FUN: compare
BB 0
CONTENT
1 FUN public fun compare(x: kotlin.Int, y: kotlin.Int): kotlin.Int
1 FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags:
2 WHEN type=kotlin.Int origin=WHEN
3 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
4 GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=null
@@ -23,35 +23,35 @@ INCOMING <- BB 1
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
CONTENT
OUTGOING -> BB 5
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
BB 3
INCOMING <- BB 0
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
CONTENT
1 CONST Int type=kotlin.Int value='1'
1 CONST Int type=kotlin.Int value=1
OUTGOING -> BB 6
When exit: WHEN type=kotlin.Int origin=WHEN
BB 4
INCOMING <- BB 1
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
CONTENT
1 CONST Int type=kotlin.Int value='-1'
1 CONST Int type=kotlin.Int value=-1
OUTGOING -> BB 6
When exit: WHEN type=kotlin.Int origin=WHEN
BB 5
INCOMING <- BB 2
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
CONTENT
1 CONST Int type=kotlin.Int value='0'
1 CONST Int type=kotlin.Int value=0
OUTGOING -> BB 6
When exit: WHEN type=kotlin.Int origin=WHEN
BB 6
INCOMING <- BB 3, 4, 5
When exit: WHEN type=kotlin.Int origin=WHEN
CONTENT
1 RETURN type=kotlin.Nothing from='compare(Int, Int): Int'
1 RETURN type=kotlin.Nothing from=compare(Int, Int): Int'
OUTGOING -> NONE
Function exit: FUN public fun compare(x: kotlin.Int, y: kotlin.Int): kotlin.Int
Function exit: FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags:
// END FUN: compare
+6 -6
View File
@@ -2,24 +2,24 @@
// FUN: empty
BB 0
CONTENT
1 FUN public fun empty(): kotlin.Int
1 FUN name:empty visibility:public modality:FINAL <> () returnType:Int flags:
2 WHEN type=kotlin.Int origin=WHEN
OUTGOING -> BB 1
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
BB 1
INCOMING <- BB 0
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
CONTENT
1 CONST Int type=kotlin.Int value='42'
1 CONST Int type=kotlin.Int value=42
OUTGOING -> BB 2
When exit: WHEN type=kotlin.Int origin=WHEN
BB 2
INCOMING <- BB 1
When exit: WHEN type=kotlin.Int origin=WHEN
CONTENT
1 RETURN type=kotlin.Nothing from='empty(): Int'
1 RETURN type=kotlin.Nothing from=empty(): Int'
OUTGOING -> NONE
Function exit: FUN public fun empty(): kotlin.Int
Function exit: FUN name:empty visibility:public modality:FINAL <> () returnType:Int flags:
// END FUN: empty
+5 -5
View File
@@ -2,7 +2,7 @@
// FUN: max
BB 0
CONTENT
1 FUN public fun max(x: kotlin.Int, y: kotlin.Int): kotlin.Int
1 FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags:
2 WHEN type=kotlin.Int origin=null
3 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
4 GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=null
@@ -14,7 +14,7 @@ INCOMING <- BB 0
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
CONTENT
OUTGOING -> BB 3
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
BB 2
INCOMING <- BB 0
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -24,7 +24,7 @@ OUTGOING -> BB 4
When exit: WHEN type=kotlin.Int origin=null
BB 3
INCOMING <- BB 1
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
CONTENT
1 GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=null
OUTGOING -> BB 4
@@ -33,9 +33,9 @@ BB 4
INCOMING <- BB 2, 3
When exit: WHEN type=kotlin.Int origin=null
CONTENT
1 RETURN type=kotlin.Nothing from='max(Int, Int): Int'
1 RETURN type=kotlin.Nothing from=max(Int, Int): Int'
OUTGOING -> NONE
Function exit: FUN public fun max(x: kotlin.Int, y: kotlin.Int): kotlin.Int
Function exit: FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags:
// END FUN: max
+32 -32
View File
@@ -2,10 +2,10 @@
// FUN: minBiRoot
BB 0
CONTENT
1 FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double
1 FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
2 WHEN type=kotlin.Unit origin=null
3 GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null
4 CONST Double type=kotlin.Double value='0.0'
4 CONST Double type=kotlin.Double value=0.0
OUTGOING -> BB 1, 6
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
BB 1
@@ -14,17 +14,17 @@ INCOMING <- BB 0
CONTENT
1 WHEN type=kotlin.Unit origin=null
2 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null
3 CONST Double type=kotlin.Double value='0.0'
3 CONST Double type=kotlin.Double value=0.0
OUTGOING -> BB 2, 3
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
BB 2
INCOMING <- BB 1
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 CONST Double type=kotlin.Double value='1.0'
2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double'
1 CONST Double type=kotlin.Double value=1.0
2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double'
OUTGOING -> NONE
Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
BB 3
INCOMING <- BB 1
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
@@ -33,10 +33,10 @@ CONTENT
2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS
3 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null
4 CALL 'div(Double): Double' type=kotlin.Double origin=DIV
5 VAR val bc: kotlin.Double
5 VAR name:bc type:kotlin.Double flags:val
6 WHEN type=kotlin.Unit origin=null
7 GET_VAR 'bc: Double' type=kotlin.Double origin=null
8 CONST Double type=kotlin.Double value='0.0'
8 CONST Double type=kotlin.Double value=0.0
9 CALL 'compareTo(Double): Int' type=kotlin.Int origin=LT
OUTGOING -> BB 4, 5
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -44,19 +44,19 @@ BB 4
INCOMING <- BB 3
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
CONTENT
1 CONST Double type=kotlin.Double value='2.0'
2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double'
1 CONST Double type=kotlin.Double value=2.0
2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double'
OUTGOING -> NONE
Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
BB 5
INCOMING <- BB 3
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
CONTENT
1 GET_VAR 'bc: Double' type=kotlin.Double origin=null
2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS
3 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double'
3 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double'
OUTGOING -> NONE
Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
BB 6
INCOMING <- BB 0
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
@@ -64,16 +64,16 @@ CONTENT
1 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null
2 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null
3 CALL 'times(Double): Double' type=kotlin.Double origin=MUL
4 CONST Int type=kotlin.Int value='4'
4 CONST Int type=kotlin.Int value=4
5 GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null
6 CALL 'times(Double): Double' type=kotlin.Double origin=MUL
7 GET_VAR 'value-parameter c: Double' type=kotlin.Double origin=null
8 CALL 'times(Double): Double' type=kotlin.Double origin=MUL
9 CALL 'minus(Double): Double' type=kotlin.Double origin=MINUS
10 VAR val d: kotlin.Double
10 VAR name:d type:kotlin.Double flags:val
11 WHEN type=kotlin.Unit origin=null
12 GET_VAR 'd: Double' type=kotlin.Double origin=null
13 CONST Double type=kotlin.Double value='0.0'
13 CONST Double type=kotlin.Double value=0.0
14 CALL 'compareTo(Double): Int' type=kotlin.Int origin=LT
OUTGOING -> BB 7, 8
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -81,10 +81,10 @@ BB 7
INCOMING <- BB 6
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
CONTENT
1 CONST Double type=kotlin.Double value='3.0'
2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double'
1 CONST Double type=kotlin.Double value=3.0
2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double'
OUTGOING -> NONE
Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
BB 8
INCOMING <- BB 6
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -93,20 +93,20 @@ CONTENT
2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS
3 GET_VAR 'd: Double' type=kotlin.Double origin=null
4 CALL 'plus(Double): Double' type=kotlin.Double origin=PLUS
5 CONST Int type=kotlin.Int value='2'
5 CONST Int type=kotlin.Int value=2
6 GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null
7 CALL 'times(Double): Double' type=kotlin.Double origin=MUL
8 CALL 'div(Double): Double' type=kotlin.Double origin=DIV
9 VAR val y1: kotlin.Double
9 VAR name:y1 type:kotlin.Double flags:val
10 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null
11 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS
12 GET_VAR 'd: Double' type=kotlin.Double origin=null
13 CALL 'minus(Double): Double' type=kotlin.Double origin=MINUS
14 CONST Int type=kotlin.Int value='2'
14 CONST Int type=kotlin.Int value=2
15 GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null
16 CALL 'times(Double): Double' type=kotlin.Double origin=MUL
17 CALL 'div(Double): Double' type=kotlin.Double origin=DIV
18 VAR val y2: kotlin.Double
18 VAR name:y2 type:kotlin.Double flags:val
19 WHEN type=kotlin.Double origin=null
20 GET_VAR 'y1: Double' type=kotlin.Double origin=null
21 GET_VAR 'y2: Double' type=kotlin.Double origin=null
@@ -118,7 +118,7 @@ INCOMING <- BB 8
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
CONTENT
OUTGOING -> BB 11
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
BB 10
INCOMING <- BB 8
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
@@ -128,7 +128,7 @@ OUTGOING -> BB 12
When exit: WHEN type=kotlin.Double origin=null
BB 11
INCOMING <- BB 9
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
CONTENT
1 GET_VAR 'y2: Double' type=kotlin.Double origin=null
OUTGOING -> BB 12
@@ -137,10 +137,10 @@ BB 12
INCOMING <- BB 10, 11
When exit: WHEN type=kotlin.Double origin=null
CONTENT
1 VAR val y3: kotlin.Double
1 VAR name:y3 type:kotlin.Double flags:val
2 WHEN type=kotlin.Double origin=null
3 GET_VAR 'y3: Double' type=kotlin.Double origin=null
4 CONST Double type=kotlin.Double value='0.0'
4 CONST Double type=kotlin.Double value=0.0
5 CALL 'compareTo(Double): Int' type=kotlin.Int origin=LT
OUTGOING -> BB 13, 14
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
@@ -149,17 +149,17 @@ INCOMING <- BB 12
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
CONTENT
OUTGOING -> BB 15
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
BB 14
INCOMING <- BB 12
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
CONTENT
1 CONST Double type=kotlin.Double value='4.0'
1 CONST Double type=kotlin.Double value=4.0
OUTGOING -> BB 16
When exit: WHEN type=kotlin.Double origin=null
BB 15
INCOMING <- BB 13
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
CONTENT
1 GET_VAR 'y3: Double' type=kotlin.Double origin=null
2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS
@@ -169,9 +169,9 @@ BB 16
INCOMING <- BB 14, 15
When exit: WHEN type=kotlin.Double origin=null
CONTENT
1 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double'
1 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double'
OUTGOING -> NONE
Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
// END FUN: minBiRoot
+27 -27
View File
@@ -2,12 +2,12 @@
// FUN: toString
BB 0
CONTENT
1 FUN public fun toString(grade: kotlin.String): kotlin.String
1 FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
2 GET_VAR 'value-parameter grade: String' type=kotlin.String origin=null
3 VAR IR_TEMPORARY_VARIABLE val tmp0_subject: kotlin.String
3 VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.String flags:val
4 WHEN type=kotlin.Nothing origin=WHEN
5 GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null
6 CONST String type=kotlin.String value='A'
6 CONST String type=kotlin.String value=A
OUTGOING -> BB 1, 5
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
BB 1
@@ -15,7 +15,7 @@ INCOMING <- BB 0
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null
2 CONST String type=kotlin.String value='B'
2 CONST String type=kotlin.String value=B
OUTGOING -> BB 2, 6
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
BB 2
@@ -23,7 +23,7 @@ INCOMING <- BB 1
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null
2 CONST String type=kotlin.String value='C'
2 CONST String type=kotlin.String value=C
OUTGOING -> BB 3, 7
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
BB 3
@@ -31,7 +31,7 @@ INCOMING <- BB 2
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null
2 CONST String type=kotlin.String value='D'
2 CONST String type=kotlin.String value=D
OUTGOING -> BB 4, 8
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
BB 4
@@ -39,55 +39,55 @@ INCOMING <- BB 3
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
OUTGOING -> BB 9, 10
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
BB 5
INCOMING <- BB 0
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 CONST String type=kotlin.String value='Excellent'
2 RETURN type=kotlin.Nothing from='toString(String): String'
1 CONST String type=kotlin.String value=Excellent
2 RETURN type=kotlin.Nothing from=toString(String): String'
OUTGOING -> NONE
Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
BB 6
INCOMING <- BB 1
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 CONST String type=kotlin.String value='Good'
2 RETURN type=kotlin.Nothing from='toString(String): String'
1 CONST String type=kotlin.String value=Good
2 RETURN type=kotlin.Nothing from=toString(String): String'
OUTGOING -> NONE
Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
BB 7
INCOMING <- BB 2
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 CONST String type=kotlin.String value='Mediocre'
2 RETURN type=kotlin.Nothing from='toString(String): String'
1 CONST String type=kotlin.String value=Mediocre
2 RETURN type=kotlin.Nothing from=toString(String): String'
OUTGOING -> NONE
Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
BB 8
INCOMING <- BB 3
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
CONTENT
1 CONST String type=kotlin.String value='Fair'
2 RETURN type=kotlin.Nothing from='toString(String): String'
1 CONST String type=kotlin.String value=Fair
2 RETURN type=kotlin.Nothing from=toString(String): String'
OUTGOING -> NONE
Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
BB 9
INCOMING <- BB 4
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
CONTENT
1 CONST String type=kotlin.String value='Failure'
2 RETURN type=kotlin.Nothing from='toString(String): String'
1 CONST String type=kotlin.String value=Failure
2 RETURN type=kotlin.Nothing from=toString(String): String'
OUTGOING -> NONE
Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
BB 10
INCOMING <- BB 4
CONST Boolean type=kotlin.Boolean value='true'
CONST Boolean type=kotlin.Boolean value=true
CONTENT
1 CONST String type=kotlin.String value='???'
2 RETURN type=kotlin.Nothing from='toString(String): String'
1 CONST String type=kotlin.String value=???
2 RETURN type=kotlin.Nothing from=toString(String): String'
OUTGOING -> NONE
Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
// END FUN: toString