[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,60 +14,70 @@ digraph secondaryConstructorCfg_kt {
subgraph cluster_1 {
color=red
20 [label="Enter function <init>" style="filled" fillcolor=red];
22 [label="Access variable R|<local>/p0|"];
23 [label="Delegated constructor call: this<R|B|>(...)"];
24 [label="Access variable R|<local>/p1|"];
25 [label="Assignment: R|/B.p3|"];
21 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Enter function getter" style="filled" fillcolor=red];
4 [label="Exit function getter" style="filled" fillcolor=red];
}
20 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {21};
3 -> {4};
subgraph cluster_2 {
color=red
35 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
16 [label="Enter function setter" style="filled" fillcolor=red];
17 [label="Exit function setter" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
14 [label="Enter function getter" style="filled" fillcolor=red];
15 [label="Exit function getter" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red];
}
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red];
}
8 -> {9};
subgraph cluster_3 {
color=red
14 [label="Enter function getter" style="filled" fillcolor=red];
15 [label="Exit function getter" style="filled" fillcolor=red];
}
14 -> {15};
subgraph cluster_4 {
color=red
16 [label="Enter function setter" style="filled" fillcolor=red];
17 [label="Exit function setter" style="filled" fillcolor=red];
}
16 -> {17};
subgraph cluster_5 {
color=red
18 [label="Enter function <init>" style="filled" fillcolor=red];
20 [label="Access variable R|<local>/p0|"];
21 [label="Delegated constructor call: this<R|B|>(...)"];
subgraph cluster_6 {
color=blue
3 [label="Enter function getter" style="filled" fillcolor=red];
4 [label="Exit function getter" style="filled" fillcolor=red];
22 [label="Enter block"];
23 [label="Access variable R|<local>/p1|"];
24 [label="Assignment: R|/B.p3|"];
25 [label="Exit block"];
}
subgraph cluster_7 {
19 [label="Exit function <init>" style="filled" fillcolor=red];
}
18 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {19};
subgraph cluster_7 {
color=red
36 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
5 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/p0|"];
6 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_8 {
subgraph cluster_9 {
color=blue
10 [label="Enter property" style="filled" fillcolor=red];
12 [label="Access variable R|<local>/p0|"];
13 [label="Access variable R|kotlin/String.length|"];
11 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
18 [label="Enter property" style="filled" fillcolor=red];
19 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_10 {
color=blue
26 [label="Enter init block" style="filled" fillcolor=red];
@@ -83,24 +93,18 @@ digraph secondaryConstructorCfg_kt {
}
27 [label="Exit init block" style="filled" fillcolor=red];
}
36 [label="Exit class B" style="filled" fillcolor=red];
35 [label="Exit class B" style="filled" fillcolor=red];
}
35 -> {5} [color=green];
36 -> {5} [color=green];
5 -> {7};
6 -> {10} [color=green];
7 -> {6};
3 -> {4};
10 -> {12};
11 -> {18} [color=green];
11 -> {26} [color=green];
12 -> {13};
13 -> {11};
8 -> {9};
18 -> {19};
19 -> {26} [color=green];
14 -> {15};
16 -> {17};
26 -> {28};
27 -> {36} [color=green];
27 -> {35} [color=green];
28 -> {29};
29 -> {30};
30 -> {31};