[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
@@ -6,36 +6,57 @@ digraph postponedLambdas_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
2 [label="Enter block"];
3 [label="Exit block"];
}
1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
0 -> {2};
2 -> {3};
3 -> {1};
subgraph cluster_1 {
subgraph cluster_2 {
color=red
2 [label="Enter function test" style="filled" fillcolor=red];
4 [label="Access variable R|<local>/a|"];
5 [label="Postponed enter to lambda"];
subgraph cluster_2 {
4 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
9 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
11 [label="Const: String()"];
10 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
6 [label="Enter block"];
7 [label="Access variable R|<local>/a|"];
8 [label="Postponed enter to lambda"];
subgraph cluster_4 {
color=blue
13 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
15 [label="Enter block"];
16 [label="Const: String()"];
17 [label="Exit block"];
}
14 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
9 [label="Postponed exit from lambda"];
10 [label="Access variable R|<local>/b|"];
11 [label="Function call: R|/foo|(...)"];
12 [label="Exit block"];
}
6 [label="Postponed exit from lambda"];
7 [label="Access variable R|<local>/b|"];
8 [label="Function call: R|/foo|(...)"];
3 [label="Exit function test" style="filled" fillcolor=red];
5 [label="Exit function test" style="filled" fillcolor=red];
}
2 -> {4};
4 -> {5};
5 -> {9};
5 -> {6} [color=red];
4 -> {6};
6 -> {7};
7 -> {8};
8 -> {3};
9 -> {10 11};
10 -> {6} [color=green];
10 -> {9} [color=green style=dashed];
11 -> {10};
8 -> {13};
8 -> {9} [color=red];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {5};
13 -> {14 15};
14 -> {9} [color=green];
14 -> {13} [color=green style=dashed];
15 -> {16};
16 -> {17};
17 -> {14};
}