[FIR] CFG: drop redundant edges

Edges from class to its functions and nested classes are redundant
and lead to extra resolution work in lazy resolve mode

^KT-59600 Fixed
This commit is contained in:
Dmitrii Gridin
2023-06-23 18:05:09 +02:00
committed by Space Team
parent df28bd1d79
commit 09ca335b7e
53 changed files with 931 additions and 763 deletions
@@ -8,14 +8,13 @@ digraph complex_kt {
0 [label="Enter class AutoCloseable" style="filled" fillcolor=red];
1 [label="Exit class AutoCloseable" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function close" style="filled" fillcolor=red];
3 [label="Exit function close" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -0,0 +1,106 @@
digraph nestedClass_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter class OuterClass" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
1 [label="Enter property" style="filled" fillcolor=red];
2 [label="Const: Int(1)"];
3 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Access variable R|/OuterClass.outerProperty|"];
6 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_3 {
color=blue
7 [label="Enter function <init>" style="filled" fillcolor=red];
8 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
9 [label="Exit function <init>" style="filled" fillcolor=red];
}
10 [label="Exit class OuterClass" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {10} [style=dotted];
0 -> {1 4 7} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4} [color=green];
4 -> {5};
5 -> {6};
6 -> {7} [color=green];
7 -> {8};
8 -> {9};
9 -> {10} [color=green];
subgraph cluster_4 {
color=red
11 [label="Enter function outerFunction" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
12 [label="Enter block"];
13 [label="Exit block"];
}
14 [label="Exit function outerFunction" style="filled" fillcolor=red];
}
11 -> {12};
12 -> {13};
13 -> {14};
subgraph cluster_6 {
color=red
15 [label="Enter class NestedClass" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
16 [label="Enter property" style="filled" fillcolor=red];
17 [label="Const: Int(1)"];
18 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=blue
19 [label="Enter property" style="filled" fillcolor=red];
20 [label="Access variable R|/OuterClass.NestedClass.nestedProperty|"];
21 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
22 [label="Enter function <init>" style="filled" fillcolor=red];
23 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
24 [label="Exit function <init>" style="filled" fillcolor=red];
}
25 [label="Exit class NestedClass" style="filled" fillcolor=red];
}
15 -> {16} [color=green];
15 -> {25} [style=dotted];
15 -> {16 19 22} [style=dashed];
16 -> {17};
17 -> {18};
18 -> {19} [color=green];
19 -> {20};
20 -> {21};
21 -> {22} [color=green];
22 -> {23};
23 -> {24};
24 -> {25} [color=green];
subgraph cluster_10 {
color=red
26 [label="Enter function nestedFUnction" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
27 [label="Enter block"];
28 [label="Exit block"];
}
29 [label="Exit function nestedFUnction" style="filled" fillcolor=red];
}
26 -> {27};
27 -> {28};
28 -> {29};
}
@@ -0,0 +1,32 @@
FILE: nestedClass.kt
public final class OuterClass : R|kotlin/Any| {
public constructor(): R|OuterClass| {
super<R|kotlin/Any|>()
}
public final fun outerFunction(): R|kotlin/Unit| {
}
public final val outerProperty: R|kotlin/Int| = Int(1)
public get(): R|kotlin/Int|
public final val outerProperty2: R|kotlin/Int| = this@R|/OuterClass|.R|/OuterClass.outerProperty|
public get(): R|kotlin/Int|
public final class NestedClass : R|kotlin/Any| {
public constructor(): R|OuterClass.NestedClass| {
super<R|kotlin/Any|>()
}
public final fun nestedFUnction(): R|kotlin/Unit| {
}
public final val nestedProperty: R|kotlin/Int| = Int(1)
public get(): R|kotlin/Int|
public final val nestedProperty2: R|kotlin/Int| = this@R|/OuterClass.NestedClass|.R|/OuterClass.NestedClass.nestedProperty|
public get(): R|kotlin/Int|
}
}
@@ -0,0 +1,12 @@
// !DUMP_CFG
class OuterClass {
fun outerFunction() {}
val outerProperty = 1
val outerProperty2 = outerProperty
class NestedClass {
fun nestedFUnction() {}
val nestedProperty = 1
val nestedProperty2 = nestedProperty
}
}
@@ -64,17 +64,6 @@ digraph postponedLambdaInConstructor_kt {
}
26 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
27 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
28 [label="Enter block"];
29 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
30 [label="Exit block"];
}
31 [label="Exit function foo" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
5 -> {26} [style=dotted];
5 -> {6 9} [style=dashed];
@@ -101,8 +90,18 @@ digraph postponedLambdaInConstructor_kt {
23 -> {24};
24 -> {25};
25 -> {26} [color=green];
26 -> {27} [color=green];
26 -> {27} [style=dashed];
subgraph cluster_9 {
color=red
27 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
28 [label="Enter block"];
29 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
30 [label="Exit block"];
}
31 [label="Exit function foo" style="filled" fillcolor=red];
}
27 -> {28};
28 -> {29};
29 -> {30};
@@ -8,20 +8,20 @@ digraph safeCalls_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_1 {
color=blue
2 [label="Enter function bar" style="filled" fillcolor=red];
3 [label="Exit function bar" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
4 [label="Enter function foo" style="filled" fillcolor=red];
5 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2 4} [color=green];
1 -> {2 4} [style=dashed];
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function bar" style="filled" fillcolor=red];
5 [label="Exit function bar" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
@@ -8,14 +8,13 @@ digraph bangbang_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -8,20 +8,20 @@ digraph booleanOperators_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_1 {
color=blue
2 [label="Enter function bool" style="filled" fillcolor=red];
3 [label="Exit function bool" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
4 [label="Enter function foo" style="filled" fillcolor=red];
5 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2 4} [color=green];
1 -> {2 4} [style=dashed];
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function bool" style="filled" fillcolor=red];
5 [label="Exit function bool" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
@@ -29,14 +29,13 @@ digraph booleanOperators_kt {
6 [label="Enter class B" style="filled" fillcolor=red];
7 [label="Exit class B" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
subgraph cluster_4 {
color=blue
color=red
8 [label="Enter function bar" style="filled" fillcolor=red];
9 [label="Exit function bar" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
7 -> {8} [color=green];
7 -> {8} [style=dashed];
8 -> {9};
subgraph cluster_5 {
@@ -44,14 +43,13 @@ digraph booleanOperators_kt {
10 [label="Enter class C" style="filled" fillcolor=red];
11 [label="Exit class C" style="filled" fillcolor=red];
}
10 -> {11} [color=green];
subgraph cluster_6 {
color=blue
color=red
12 [label="Enter function baz" style="filled" fillcolor=red];
13 [label="Exit function baz" style="filled" fillcolor=red];
}
10 -> {11} [color=green];
11 -> {12} [color=green];
11 -> {12} [style=dashed];
12 -> {13};
subgraph cluster_7 {
@@ -8,14 +8,13 @@ digraph equalsToBoolean_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -8,14 +8,13 @@ digraph jumpFromRhsOfOperator_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -8,14 +8,13 @@ digraph boundSmartcasts_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -23,14 +22,13 @@ digraph boundSmartcasts_kt {
4 [label="Enter class B" style="filled" fillcolor=red];
5 [label="Exit class B" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
subgraph cluster_3 {
color=blue
color=red
6 [label="Enter function bar" style="filled" fillcolor=red];
7 [label="Exit function bar" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
5 -> {6} [color=green];
5 -> {6} [style=dashed];
6 -> {7};
subgraph cluster_4 {
@@ -8,14 +8,13 @@ digraph elvis_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -157,14 +157,13 @@ digraph returns_kt {
53 [label="Enter class A" style="filled" fillcolor=red];
54 [label="Exit class A" style="filled" fillcolor=red];
}
53 -> {54} [color=green];
subgraph cluster_15 {
color=blue
color=red
55 [label="Enter function foo" style="filled" fillcolor=red];
56 [label="Exit function foo" style="filled" fillcolor=red];
}
53 -> {54} [color=green];
54 -> {55} [color=green];
54 -> {55} [style=dashed];
55 -> {56};
subgraph cluster_16 {
@@ -172,14 +171,13 @@ digraph returns_kt {
57 [label="Enter class B" style="filled" fillcolor=red];
58 [label="Exit class B" style="filled" fillcolor=red];
}
57 -> {58} [color=green];
subgraph cluster_17 {
color=blue
color=red
59 [label="Enter function bar" style="filled" fillcolor=red];
60 [label="Exit function bar" style="filled" fillcolor=red];
}
57 -> {58} [color=green];
58 -> {59} [color=green];
58 -> {59} [style=dashed];
59 -> {60};
subgraph cluster_18 {
@@ -187,14 +185,13 @@ digraph returns_kt {
61 [label="Enter class C" style="filled" fillcolor=red];
62 [label="Exit class C" style="filled" fillcolor=red];
}
61 -> {62} [color=green];
subgraph cluster_19 {
color=blue
color=red
63 [label="Enter function baz" style="filled" fillcolor=red];
64 [label="Exit function baz" style="filled" fillcolor=red];
}
61 -> {62} [color=green];
62 -> {63} [color=green];
62 -> {63} [style=dashed];
63 -> {64};
subgraph cluster_20 {
@@ -8,14 +8,13 @@ digraph smartcastFromArgument_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -8,14 +8,13 @@ digraph when_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -23,14 +22,13 @@ digraph when_kt {
4 [label="Enter class B" style="filled" fillcolor=red];
5 [label="Exit class B" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
subgraph cluster_3 {
color=blue
color=red
6 [label="Enter function bar" style="filled" fillcolor=red];
7 [label="Exit function bar" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
5 -> {6} [color=green];
5 -> {6} [style=dashed];
6 -> {7};
subgraph cluster_4 {
@@ -8,14 +8,13 @@ digraph equalsAndIdentity_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -8,14 +8,13 @@ digraph inPlaceLambdas_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -23,14 +22,13 @@ digraph inPlaceLambdas_kt {
4 [label="Enter class B" style="filled" fillcolor=red];
5 [label="Exit class B" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
subgraph cluster_3 {
color=blue
color=red
6 [label="Enter function bar" style="filled" fillcolor=red];
7 [label="Exit function bar" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
5 -> {6} [color=green];
5 -> {6} [style=dashed];
6 -> {7};
subgraph cluster_4 {
@@ -38,24 +38,6 @@ digraph lambdaInWhenBranch_kt {
}
12 [label="Exit class SubClass1" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
13 [label="Enter function copy" style="filled" fillcolor=red];
14 [label="Enter default value of t"];
subgraph cluster_6 {
color=blue
15 [label="Enter default value of t" style="filled" fillcolor=red];
16 [label="Access variable R|/SubClass1.t|"];
17 [label="Exit default value of t" style="filled" fillcolor=red];
}
18 [label="Exit default value of t"];
19 [label="Exit function copy" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
20 [label="Enter function component1" style="filled" fillcolor=red];
21 [label="Exit function component1" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
5 -> {12} [style=dotted];
5 -> {6 9} [style=dashed];
@@ -65,15 +47,33 @@ digraph lambdaInWhenBranch_kt {
9 -> {10};
10 -> {11};
11 -> {12} [color=green];
12 -> {13 20} [color=green];
12 -> {13 20} [style=dashed];
subgraph cluster_5 {
color=red
13 [label="Enter function component1" style="filled" fillcolor=red];
14 [label="Exit function component1" style="filled" fillcolor=red];
}
13 -> {14};
14 -> {15 18};
14 -> {15} [style=dashed];
subgraph cluster_6 {
color=red
15 [label="Enter function copy" style="filled" fillcolor=red];
16 [label="Enter default value of t"];
subgraph cluster_7 {
color=blue
17 [label="Enter default value of t" style="filled" fillcolor=red];
18 [label="Access variable R|/SubClass1.t|"];
19 [label="Exit default value of t" style="filled" fillcolor=red];
}
20 [label="Exit default value of t"];
21 [label="Exit function copy" style="filled" fillcolor=red];
}
15 -> {16};
16 -> {17};
16 -> {17 20};
16 -> {17} [style=dashed];
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
subgraph cluster_8 {
@@ -87,19 +87,18 @@ digraph lambdaInWhenBranch_kt {
}
26 [label="Exit class SubClass2" style="filled" fillcolor=red];
}
subgraph cluster_10 {
color=blue
27 [label="Enter function copy" style="filled" fillcolor=red];
28 [label="Exit function copy" style="filled" fillcolor=red];
}
22 -> {23} [color=green];
22 -> {26} [style=dotted];
22 -> {23} [style=dashed];
23 -> {24};
24 -> {25};
25 -> {26} [color=green];
26 -> {27} [color=green];
26 -> {27} [style=dashed];
subgraph cluster_10 {
color=red
27 [label="Enter function copy" style="filled" fillcolor=red];
28 [label="Exit function copy" style="filled" fillcolor=red];
}
27 -> {28};
subgraph cluster_11 {
@@ -8,14 +8,13 @@ digraph dataFlowInfoFromWhileCondition_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -8,14 +8,13 @@ digraph endlessLoops_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -8,14 +8,13 @@ digraph multipleCasts_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=blue
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {2} [style=dashed];
2 -> {3};
subgraph cluster_2 {
@@ -23,14 +22,13 @@ digraph multipleCasts_kt {
4 [label="Enter class B" style="filled" fillcolor=red];
5 [label="Exit class B" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
subgraph cluster_3 {
color=blue
color=red
6 [label="Enter function foo" style="filled" fillcolor=red];
7 [label="Exit function foo" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
5 -> {6} [color=green];
5 -> {6} [style=dashed];
6 -> {7};
subgraph cluster_4 {
@@ -8,20 +8,20 @@ digraph nullability_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_1 {
color=blue
2 [label="Enter function getA" style="filled" fillcolor=red];
3 [label="Exit function getA" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
4 [label="Enter function foo" style="filled" fillcolor=red];
5 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2 4} [color=green];
1 -> {2 4} [style=dashed];
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function getA" style="filled" fillcolor=red];
5 [label="Exit function getA" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
@@ -29,14 +29,13 @@ digraph nullability_kt {
6 [label="Enter class MyData" style="filled" fillcolor=red];
7 [label="Exit class MyData" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
subgraph cluster_4 {
color=blue
color=red
8 [label="Enter function fs" style="filled" fillcolor=red];
9 [label="Exit function fs" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
7 -> {8} [color=green];
7 -> {8} [style=dashed];
8 -> {9};
subgraph cluster_5 {
@@ -44,14 +43,13 @@ digraph nullability_kt {
10 [label="Enter class Q" style="filled" fillcolor=red];
11 [label="Exit class Q" style="filled" fillcolor=red];
}
10 -> {11} [color=green];
subgraph cluster_6 {
color=blue
color=red
12 [label="Enter function fdata" style="filled" fillcolor=red];
13 [label="Exit function fdata" style="filled" fillcolor=red];
}
10 -> {11} [color=green];
11 -> {12} [color=green];
11 -> {12} [style=dashed];
12 -> {13};
subgraph cluster_7 {
@@ -71,8 +69,18 @@ digraph nullability_kt {
}
21 [label="Exit class QImpl" style="filled" fillcolor=red];
}
14 -> {15} [color=green];
14 -> {21} [style=dotted];
14 -> {15 18} [style=dashed];
15 -> {16};
16 -> {17};
17 -> {18} [color=green];
18 -> {19};
19 -> {20};
20 -> {21} [color=green];
subgraph cluster_10 {
color=blue
color=red
22 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
@@ -84,17 +92,6 @@ digraph nullability_kt {
}
28 [label="Exit function fdata" style="filled" fillcolor=red];
}
14 -> {15} [color=green];
14 -> {21} [style=dotted];
14 -> {15 18} [style=dashed];
15 -> {16};
16 -> {17};
17 -> {18} [color=green];
18 -> {19};
19 -> {20};
20 -> {21} [color=green];
21 -> {22} [color=green];
21 -> {22} [style=dashed];
22 -> {23};
23 -> {24};
24 -> {25};
@@ -120,8 +117,18 @@ digraph nullability_kt {
}
36 [label="Exit class QImplMutable" style="filled" fillcolor=red];
}
29 -> {30} [color=green];
29 -> {36} [style=dotted];
29 -> {30 33} [style=dashed];
30 -> {31};
31 -> {32};
32 -> {33} [color=green];
33 -> {34};
34 -> {35};
35 -> {36} [color=green];
subgraph cluster_15 {
color=blue
color=red
37 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
@@ -133,17 +140,6 @@ digraph nullability_kt {
}
43 [label="Exit function fdata" style="filled" fillcolor=red];
}
29 -> {30} [color=green];
29 -> {36} [style=dotted];
29 -> {30 33} [style=dashed];
30 -> {31};
31 -> {32};
32 -> {33} [color=green];
33 -> {34};
34 -> {35};
35 -> {36} [color=green];
36 -> {37} [color=green];
36 -> {37} [style=dashed];
37 -> {38};
38 -> {39};
39 -> {40};
@@ -163,40 +159,26 @@ digraph nullability_kt {
}
48 [label="Exit class QImplWithCustomGetter" style="filled" fillcolor=red];
}
subgraph cluster_19 {
color=blue
49 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_20 {
color=blue
50 [label="Enter block"];
51 [label="Const: Null(null)"];
52 [label="Jump: ^fdata Null(null)"];
53 [label="Stub" style="filled" fillcolor=gray];
54 [label="Exit block" style="filled" fillcolor=gray];
}
55 [label="Exit function fdata" style="filled" fillcolor=red];
}
subgraph cluster_21 {
color=blue
56 [label="Enter function <getter>" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
57 [label="Enter block"];
58 [label="Const: Null(null)"];
59 [label="Jump: ^ Null(null)"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray];
}
62 [label="Exit function <getter>" style="filled" fillcolor=red];
}
44 -> {45} [color=green];
44 -> {48} [style=dotted];
44 -> {45} [style=dashed];
45 -> {46};
46 -> {47};
47 -> {48} [color=green];
48 -> {49 56} [color=green];
48 -> {49 56} [style=dashed];
subgraph cluster_19 {
color=red
49 [label="Enter function <getter>" style="filled" fillcolor=red];
subgraph cluster_20 {
color=blue
50 [label="Enter block"];
51 [label="Const: Null(null)"];
52 [label="Jump: ^ Null(null)"];
53 [label="Stub" style="filled" fillcolor=gray];
54 [label="Exit block" style="filled" fillcolor=gray];
}
55 [label="Exit function <getter>" style="filled" fillcolor=red];
}
49 -> {50};
50 -> {51};
51 -> {52};
@@ -204,6 +186,20 @@ digraph nullability_kt {
52 -> {53} [style=dotted];
53 -> {54} [style=dotted];
54 -> {55} [style=dotted];
subgraph cluster_21 {
color=red
56 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
57 [label="Enter block"];
58 [label="Const: Null(null)"];
59 [label="Jump: ^fdata Null(null)"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray];
}
62 [label="Exit function fdata" style="filled" fillcolor=red];
}
56 -> {57};
57 -> {58};
58 -> {59};
@@ -14,8 +14,15 @@ digraph implicitReceivers_kt {
}
4 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {4} [style=dotted];
0 -> {1} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4} [color=green];
subgraph cluster_2 {
color=blue
color=red
5 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
@@ -24,14 +31,6 @@ digraph implicitReceivers_kt {
}
8 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {4} [style=dotted];
0 -> {1} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4} [color=green];
4 -> {5} [color=green];
4 -> {5} [style=dashed];
5 -> {6};
6 -> {7};
7 -> {8};
@@ -47,8 +46,15 @@ digraph implicitReceivers_kt {
}
13 [label="Exit class B" style="filled" fillcolor=red];
}
9 -> {10} [color=green];
9 -> {13} [style=dotted];
9 -> {10} [style=dashed];
10 -> {11};
11 -> {12};
12 -> {13} [color=green];
subgraph cluster_6 {
color=blue
color=red
14 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
@@ -57,14 +63,6 @@ digraph implicitReceivers_kt {
}
17 [label="Exit function bar" style="filled" fillcolor=red];
}
9 -> {10} [color=green];
9 -> {13} [style=dotted];
9 -> {10} [style=dashed];
10 -> {11};
11 -> {12};
12 -> {13} [color=green];
13 -> {14} [color=green];
13 -> {14} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {17};
@@ -20,29 +20,6 @@ digraph assignSafeCall_kt {
}
7 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_3 {
color=blue
8 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
9 [label="Enter block"];
10 [label="Exit block"];
}
11 [label="Exit function bar" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
12 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
13 [label="Enter block"];
14 [label="Const: Int(1)"];
15 [label="Jump: ^foo Int(1)"];
16 [label="Stub" style="filled" fillcolor=gray];
17 [label="Exit block" style="filled" fillcolor=gray];
}
18 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {7} [style=dotted];
0 -> {1 4} [style=dashed];
@@ -52,18 +29,41 @@ digraph assignSafeCall_kt {
4 -> {5};
5 -> {6};
6 -> {7} [color=green];
7 -> {8 12} [color=green];
7 -> {8 12} [style=dashed];
subgraph cluster_3 {
color=red
8 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
9 [label="Enter block"];
10 [label="Const: Int(1)"];
11 [label="Jump: ^foo Int(1)"];
12 [label="Stub" style="filled" fillcolor=gray];
13 [label="Exit block" style="filled" fillcolor=gray];
}
14 [label="Exit function foo" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {11};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {18};
15 -> {16} [style=dotted];
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
11 -> {14};
11 -> {12} [style=dotted];
12 -> {13} [style=dotted];
13 -> {14} [style=dotted];
subgraph cluster_5 {
color=red
15 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
16 [label="Enter block"];
17 [label="Exit block"];
}
18 [label="Exit function bar" style="filled" fillcolor=red];
}
15 -> {16};
16 -> {17};
17 -> {18};
subgraph cluster_7 {
color=red
@@ -239,20 +239,20 @@ digraph assignSafeCall_kt {
85 [label="Enter class B" style="filled" fillcolor=red];
86 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_20 {
color=blue
87 [label="Enter function bar" style="filled" fillcolor=red];
88 [label="Exit function bar" style="filled" fillcolor=red];
}
subgraph cluster_21 {
color=blue
89 [label="Enter function foo" style="filled" fillcolor=red];
90 [label="Exit function foo" style="filled" fillcolor=red];
}
85 -> {86} [color=green];
86 -> {87 89} [color=green];
86 -> {87 89} [style=dashed];
subgraph cluster_20 {
color=red
87 [label="Enter function foo" style="filled" fillcolor=red];
88 [label="Exit function foo" style="filled" fillcolor=red];
}
87 -> {88};
subgraph cluster_21 {
color=red
89 [label="Enter function bar" style="filled" fillcolor=red];
90 [label="Exit function bar" style="filled" fillcolor=red];
}
89 -> {90};
subgraph cluster_22 {
@@ -79,26 +79,27 @@ digraph safeCalls_kt {
26 [label="Enter class A" style="filled" fillcolor=red];
27 [label="Exit class A" style="filled" fillcolor=red];
}
26 -> {27} [color=green];
subgraph cluster_7 {
color=blue
28 [label="Enter function id" style="filled" fillcolor=red];
29 [label="Exit function id" style="filled" fillcolor=red];
color=red
28 [label="Enter function bar" style="filled" fillcolor=red];
29 [label="Exit function bar" style="filled" fillcolor=red];
}
28 -> {29};
subgraph cluster_8 {
color=blue
color=red
30 [label="Enter function bool" style="filled" fillcolor=red];
31 [label="Exit function bool" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
32 [label="Enter function bar" style="filled" fillcolor=red];
33 [label="Exit function bar" style="filled" fillcolor=red];
}
26 -> {27} [color=green];
27 -> {28 30 32} [color=green];
27 -> {28 30 32} [style=dashed];
28 -> {29};
30 -> {31};
subgraph cluster_9 {
color=red
32 [label="Enter function id" style="filled" fillcolor=red];
33 [label="Exit function id" style="filled" fillcolor=red];
}
32 -> {33};
subgraph cluster_10 {
@@ -15,14 +15,13 @@ digraph smartCastInInit_kt {
2 [label="Enter class S" style="filled" fillcolor=red];
3 [label="Exit class S" style="filled" fillcolor=red];
}
2 -> {3} [color=green];
subgraph cluster_2 {
color=blue
color=red
4 [label="Enter function foo" style="filled" fillcolor=red];
5 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3} [color=green];
3 -> {4} [color=green];
3 -> {4} [style=dashed];
4 -> {5};
subgraph cluster_3 {
@@ -42,8 +42,16 @@ digraph overridenOpenVal_kt {
}
13 [label="Exit class B" style="filled" fillcolor=red];
}
8 -> {9} [color=green];
8 -> {13} [style=dotted];
8 -> {9} [style=dashed];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13} [color=green];
subgraph cluster_5 {
color=blue
color=red
14 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
@@ -75,15 +83,6 @@ digraph overridenOpenVal_kt {
}
31 [label="Exit function test_1" style="filled" fillcolor=red];
}
8 -> {9} [color=green];
8 -> {13} [style=dotted];
8 -> {9} [style=dashed];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13} [color=green];
13 -> {14} [color=green];
13 -> {14} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {17};
@@ -14,8 +14,15 @@ digraph delayedAssignment_kt {
}
4 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {4} [style=dotted];
0 -> {1} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4} [color=green];
subgraph cluster_2 {
color=blue
color=red
5 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
@@ -24,14 +31,6 @@ digraph delayedAssignment_kt {
}
8 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {4} [style=dotted];
0 -> {1} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4} [color=green];
4 -> {5} [color=green];
4 -> {5} [style=dashed];
5 -> {6};
6 -> {7};
7 -> {8};