[FIR] Introduce new algorithm for building CFG for declarations

This commit is contained in:
Dmitriy Novozhilov
2020-06-05 15:47:57 +03:00
parent 950bbfe3a5
commit 87859b0faa
95 changed files with 16070 additions and 13199 deletions
@@ -14,85 +14,91 @@ digraph annotatedLocalClass_kt {
subgraph cluster_1 {
color=red
3 [label="Enter class Ann" style="filled" fillcolor=red];
4 [label="Exit class Ann" style="filled" fillcolor=red];
4 [label="Enter class Ann" style="filled" fillcolor=red];
3 [label="Exit class Ann" style="filled" fillcolor=red];
}
3 -> {4} [color=green];
4 -> {3} [color=green];
subgraph cluster_2 {
color=red
5 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
7 [label="Enter when"];
subgraph cluster_4 {
color=blue
9 [label="Enter when branch condition "];
10 [label="Access variable R|<local>/b|"];
11 [label="Exit when branch condition"];
}
18 [label="Synthetic else branch"];
12 [label="Enter when branch result"];
24 [label="Enter class Local" style="filled" fillcolor=red];
23 [label="Exit class Local" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
7 [label="Enter block"];
subgraph cluster_5 {
color=blue
13 [label="Enter block"];
14 [label="Jump: ^foo Unit"];
15 [label="Stub" style="filled" fillcolor=gray];
16 [label="Exit block" style="filled" fillcolor=gray];
8 [label="Enter when"];
subgraph cluster_6 {
color=blue
10 [label="Enter when branch condition "];
11 [label="Access variable R|<local>/b|"];
12 [label="Exit when branch condition"];
}
19 [label="Synthetic else branch"];
13 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
14 [label="Enter block"];
15 [label="Jump: ^foo Unit"];
16 [label="Stub" style="filled" fillcolor=gray];
17 [label="Exit block" style="filled" fillcolor=gray];
}
18 [label="Exit when branch result" style="filled" fillcolor=gray];
9 [label="Exit when"];
}
17 [label="Exit when branch result" style="filled" fillcolor=gray];
8 [label="Exit when"];
20 [label="Exit local class foo"];
21 [label="Function call: R|/bar|()"];
22 [label="Exit block"];
}
subgraph cluster_6 {
color=blue
19 [label="Enter annotation"];
20 [label="Exit annotation"];
}
21 [label="Exit local class foo"];
22 [label="Function call: R|/bar|()"];
6 [label="Exit function foo" style="filled" fillcolor=red];
}
5 -> {7};
7 -> {9};
8 -> {19};
9 -> {10};
7 -> {8};
8 -> {10};
9 -> {20};
9 -> {25} [color=red];
10 -> {11};
11 -> {12 18};
12 -> {13};
11 -> {12};
12 -> {13 19};
13 -> {14};
14 -> {6};
14 -> {15} [style=dotted];
14 -> {15};
15 -> {6};
15 -> {16} [style=dotted];
16 -> {17} [style=dotted];
17 -> {8} [style=dotted];
18 -> {8};
19 -> {20};
17 -> {18} [style=dotted];
18 -> {9} [style=dotted];
19 -> {9};
20 -> {21};
20 -> {23} [color=red];
21 -> {22};
22 -> {6};
subgraph cluster_7 {
color=red
23 [label="Enter function <init>" style="filled" fillcolor=red];
25 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
24 [label="Exit function <init>" style="filled" fillcolor=red];
}
23 -> {25};
25 -> {24};
24 -> {23} [color=green];
subgraph cluster_8 {
color=red
26 [label="Enter class Local" style="filled" fillcolor=red];
27 [label="Exit class Local" style="filled" fillcolor=red];
25 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
26 [label="Exit function <init>" style="filled" fillcolor=red];
}
26 -> {27} [color=green];
25 -> {27};
27 -> {26};
subgraph cluster_9 {
color=red
28 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
30 [label="Enter block"];
31 [label="Exit block"];
}
29 [label="Exit function bar" style="filled" fillcolor=red];
}
28 -> {29};
28 -> {30};
30 -> {31};
31 -> {29};
}