Update testData for irCfg and sourceRanges tests
This commit is contained in:
+2
-2
@@ -2,11 +2,11 @@
|
||||
// FUN: foo
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags:
|
||||
1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:kotlin.Int flags:
|
||||
2 GET_VAR 'value-parameter arg: Int' type=kotlin.Int origin=null
|
||||
3 RETURN type=kotlin.Nothing from='foo(Int): Int'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags:
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:kotlin.Int flags:
|
||||
|
||||
// END FUN: foo
|
||||
|
||||
|
||||
+2
-2
@@ -2,11 +2,11 @@
|
||||
// FUN: foo
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
|
||||
1 FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
2 GET_OBJECT 'Unit' type=kotlin.Unit
|
||||
3 RETURN type=kotlin.Nothing from='foo(): Unit'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
|
||||
// END FUN: foo
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
// FUN: digitCountInNumber
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:Int flags:
|
||||
1 FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:kotlin.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
|
||||
@@ -60,7 +60,7 @@ CONTENT
|
||||
1 GET_VAR 'count: Int' type=kotlin.Int origin=null
|
||||
2 RETURN type=kotlin.Nothing from='digitCountInNumber(Int, Int): Int'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:Int flags:
|
||||
Function exit: FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:kotlin.Int flags:
|
||||
|
||||
// END FUN: digitCountInNumber
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
// FUN: factorial
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags:
|
||||
1 FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:kotlin.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
|
||||
@@ -43,7 +43,7 @@ CONTENT
|
||||
1 GET_VAR 'result: Int' type=kotlin.Int origin=null
|
||||
2 RETURN type=kotlin.Nothing from='factorial(Int): Int'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags:
|
||||
Function exit: FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:kotlin.Int flags:
|
||||
|
||||
// END FUN: factorial
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
// FUN: isPerfect
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:Boolean flags:
|
||||
1 FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:kotlin.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
|
||||
@@ -81,7 +81,7 @@ CONTENT
|
||||
3 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
4 RETURN type=kotlin.Nothing from='isPerfect(Int): Boolean'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:Boolean flags:
|
||||
Function exit: FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:kotlin.Boolean flags:
|
||||
|
||||
// END FUN: isPerfect
|
||||
|
||||
|
||||
+2
-2
@@ -2,11 +2,11 @@
|
||||
// FUN: foo
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
|
||||
1 FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
2 GET_OBJECT 'Unit' type=kotlin.Unit
|
||||
3 RETURN type=kotlin.Nothing from='foo(): Unit'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
|
||||
// END FUN: foo
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
// FUN: foo
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags:
|
||||
1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:kotlin.Int flags:
|
||||
2 GET_VAR 'value-parameter arg: Int' type=kotlin.Int origin=null
|
||||
3 CONST Int type=kotlin.Int value=2
|
||||
4 CALL 'times(Int): Int' type=kotlin.Int origin=MUL
|
||||
@@ -10,7 +10,7 @@ CONTENT
|
||||
6 GET_VAR 'dbl: Int' type=kotlin.Int origin=null
|
||||
7 RETURN type=kotlin.Nothing from='foo(Int): Int'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags:
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:kotlin.Int flags:
|
||||
|
||||
// END FUN: foo
|
||||
|
||||
|
||||
+2
-2
@@ -2,9 +2,9 @@
|
||||
// FUN: foo
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
|
||||
1 FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
|
||||
// END FUN: foo
|
||||
|
||||
|
||||
+2
-2
@@ -2,11 +2,11 @@
|
||||
// FUN: foo
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
|
||||
1 FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
2 GET_OBJECT 'Unit' type=kotlin.Unit
|
||||
3 RETURN type=kotlin.Nothing from='foo(): Unit'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags:
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
|
||||
|
||||
// END FUN: foo
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
// FUN: compare
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags:
|
||||
1 FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:kotlin.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
|
||||
@@ -49,7 +49,7 @@ INCOMING <- BB 3, 4, 5
|
||||
CONTENT
|
||||
1 RETURN type=kotlin.Nothing from='compare(Int, Int): Int'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags:
|
||||
Function exit: FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:kotlin.Int flags:
|
||||
|
||||
// END FUN: compare
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
// FUN: empty
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:empty visibility:public modality:FINAL <> () returnType:Int flags:
|
||||
1 FUN name:empty visibility:public modality:FINAL <> () returnType:kotlin.Int flags:
|
||||
2 WHEN type=kotlin.Int origin=WHEN
|
||||
OUTGOING -> BB 1
|
||||
CONST Boolean type=kotlin.Boolean value=true
|
||||
@@ -19,7 +19,7 @@ INCOMING <- BB 1
|
||||
CONTENT
|
||||
1 RETURN type=kotlin.Nothing from='empty(): Int'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:empty visibility:public modality:FINAL <> () returnType:Int flags:
|
||||
Function exit: FUN name:empty visibility:public modality:FINAL <> () returnType:kotlin.Int flags:
|
||||
|
||||
// END FUN: empty
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
// FUN: max
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags:
|
||||
1 FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:kotlin.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
|
||||
@@ -34,7 +34,7 @@ INCOMING <- BB 2, 3
|
||||
CONTENT
|
||||
1 RETURN type=kotlin.Nothing from='max(Int, Int): Int'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags:
|
||||
Function exit: FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:kotlin.Int flags:
|
||||
|
||||
// END FUN: max
|
||||
|
||||
|
||||
+6
-6
@@ -2,7 +2,7 @@
|
||||
// FUN: minBiRoot
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
|
||||
1 FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:kotlin.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
|
||||
@@ -24,7 +24,7 @@ CONTENT
|
||||
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 name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
|
||||
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:kotlin.Double flags:
|
||||
BB 3
|
||||
INCOMING <- BB 1
|
||||
CALL 'ieee754equals(Double?, Double?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
@@ -46,7 +46,7 @@ CONTENT
|
||||
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 name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
|
||||
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:kotlin.Double flags:
|
||||
BB 5
|
||||
INCOMING <- BB 3
|
||||
CALL 'less(Double, Double): Boolean' type=kotlin.Boolean origin=LT
|
||||
@@ -55,7 +55,7 @@ CONTENT
|
||||
2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS
|
||||
3 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
|
||||
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:kotlin.Double flags:
|
||||
BB 6
|
||||
INCOMING <- BB 0
|
||||
CALL 'ieee754equals(Double?, Double?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
@@ -82,7 +82,7 @@ CONTENT
|
||||
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 name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
|
||||
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:kotlin.Double flags:
|
||||
BB 8
|
||||
INCOMING <- BB 6
|
||||
CALL 'less(Double, Double): Boolean' type=kotlin.Boolean origin=LT
|
||||
@@ -167,7 +167,7 @@ INCOMING <- BB 14, 15
|
||||
CONTENT
|
||||
1 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags:
|
||||
Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:kotlin.Double flags:
|
||||
|
||||
// END FUN: minBiRoot
|
||||
|
||||
|
||||
+7
-7
@@ -2,7 +2,7 @@
|
||||
// FUN: toString
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
|
||||
1 FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:kotlin.String flags:
|
||||
2 GET_VAR 'value-parameter grade: String' type=kotlin.String origin=null
|
||||
3 VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.String flags:val
|
||||
4 WHEN type=kotlin.Nothing origin=WHEN
|
||||
@@ -47,7 +47,7 @@ CONTENT
|
||||
1 CONST String type=kotlin.String value=Excellent
|
||||
2 RETURN type=kotlin.Nothing from='toString(String): String'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:kotlin.String flags:
|
||||
BB 6
|
||||
INCOMING <- BB 1
|
||||
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
@@ -55,7 +55,7 @@ CONTENT
|
||||
1 CONST String type=kotlin.String value=Good
|
||||
2 RETURN type=kotlin.Nothing from='toString(String): String'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:kotlin.String flags:
|
||||
BB 7
|
||||
INCOMING <- BB 2
|
||||
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
@@ -63,7 +63,7 @@ CONTENT
|
||||
1 CONST String type=kotlin.String value=Mediocre
|
||||
2 RETURN type=kotlin.Nothing from='toString(String): String'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:kotlin.String flags:
|
||||
BB 8
|
||||
INCOMING <- BB 3
|
||||
CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
@@ -71,7 +71,7 @@ CONTENT
|
||||
1 CONST String type=kotlin.String value=Fair
|
||||
2 RETURN type=kotlin.Nothing from='toString(String): String'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:kotlin.String flags:
|
||||
BB 9
|
||||
INCOMING <- BB 4
|
||||
CONST Boolean type=kotlin.Boolean value=true
|
||||
@@ -79,7 +79,7 @@ CONTENT
|
||||
1 CONST String type=kotlin.String value=Failure
|
||||
2 RETURN type=kotlin.Nothing from='toString(String): String'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:kotlin.String flags:
|
||||
BB 10
|
||||
INCOMING <- BB 4
|
||||
CONST Boolean type=kotlin.Boolean value=true
|
||||
@@ -87,7 +87,7 @@ CONTENT
|
||||
1 CONST String type=kotlin.String value=???
|
||||
2 RETURN type=kotlin.Nothing from='toString(String): String'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags:
|
||||
Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:kotlin.String flags:
|
||||
|
||||
// END FUN: toString
|
||||
|
||||
|
||||
Reference in New Issue
Block a user