[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,10 +14,10 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_1 {
color=red
3 [label="Enter class A" style="filled" fillcolor=red];
4 [label="Exit class A" style="filled" fillcolor=red];
4 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit class A" style="filled" fillcolor=red];
}
3 -> {4} [color=green];
4 -> {3} [color=green];
subgraph cluster_2 {
color=red
@@ -27,14 +27,24 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_3 {
color=blue
13 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
15 [label="Postponed enter to lambda"];
subgraph cluster_4 {
color=blue
17 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
19 [label="Access variable R|<local>/it|"];
18 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
15 [label="Enter block"];
16 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
19 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
21 [label="Enter block"];
22 [label="Access variable R|<local>/it|"];
23 [label="Exit block"];
}
20 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
17 [label="Postponed exit from lambda"];
18 [label="Exit block"];
}
16 [label="Postponed exit from lambda"];
14 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
9 [label="Postponed exit from lambda"];
@@ -55,40 +65,51 @@ digraph postponedLambdaInConstructor_kt {
14 -> {9} [color=green];
14 -> {12} [color=red];
15 -> {16};
15 -> {17} [color=red];
16 -> {14};
17 -> {19};
19 -> {18};
16 -> {17 19};
17 -> {18};
18 -> {14};
19 -> {21};
21 -> {22};
22 -> {23};
23 -> {20};
subgraph cluster_5 {
subgraph cluster_7 {
color=red
25 [label="Enter function foo" style="filled" fillcolor=red];
27 [label="Function call: this@R|/B|.R|/B.foo|()"];
26 [label="Exit function foo" style="filled" fillcolor=red];
24 [label="Enter function getter" style="filled" fillcolor=red];
25 [label="Exit function getter" style="filled" fillcolor=red];
}
25 -> {27};
27 -> {26};
24 -> {25};
subgraph cluster_6 {
subgraph cluster_8 {
color=red
28 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_7 {
29 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
20 [label="Enter function getter" style="filled" fillcolor=red];
21 [label="Exit function getter" style="filled" fillcolor=red];
31 [label="Enter block"];
32 [label="Function call: this@R|/B|.R|/B.foo|()"];
33 [label="Exit block"];
}
subgraph cluster_8 {
color=blue
22 [label="Enter property" style="filled" fillcolor=red];
24 [label="Access variable R|<local>/s|"];
23 [label="Exit property" style="filled" fillcolor=red];
}
29 [label="Exit class B" style="filled" fillcolor=red];
30 [label="Exit function foo" style="filled" fillcolor=red];
}
28 -> {22} [color=green];
22 -> {24};
23 -> {29} [color=green];
24 -> {23};
20 -> {21};
29 -> {31};
31 -> {32};
32 -> {33};
33 -> {30};
subgraph cluster_10 {
color=red
35 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
26 [label="Enter property" style="filled" fillcolor=red];
28 [label="Access variable R|<local>/s|"];
27 [label="Exit property" style="filled" fillcolor=red];
}
34 [label="Exit class B" style="filled" fillcolor=red];
}
35 -> {26} [color=green];
26 -> {28};
27 -> {34} [color=green];
28 -> {27};
}