[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
@@ -5,101 +5,97 @@ digraph thisOfExtensionProperty_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
1 [label="Enter class A" style="filled" fillcolor=red];
0 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {0} [color=green];
subgraph cluster_1 {
color=red
6 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit function getter" style="filled" fillcolor=red];
}
subgraph cluster_3 {
color=blue
4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Exit property" style="filled" fillcolor=red];
}
7 [label="Exit class B" style="filled" fillcolor=red];
2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit function getter" style="filled" fillcolor=red];
}
6 -> {4} [color=green];
4 -> {5};
5 -> {7} [color=green];
2 -> {3};
subgraph cluster_4 {
subgraph cluster_2 {
color=red
19 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
8 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
11 [label="Enter &&"];
12 [label="Access variable this@R|/check_1|"];
13 [label="Type operator: (this@R|/check_1| is R|B|)"];
14 [label="Exit left part of &&"];
15 [label="Enter right part of &&"];
16 [label="Access variable R|/B.b|"];
10 [label="Exit &&"];
}
17 [label="Jump: ^ (this@R|/check_1| is R|B|) && this@R|/check_1|.R|/B.b|"];
18 [label="Stub" style="filled" fillcolor=gray];
9 [label="Exit function getter" style="filled" fillcolor=red];
}
20 [label="Exit property" style="filled" fillcolor=red];
5 [label="Enter class B" style="filled" fillcolor=red];
4 [label="Exit class B" style="filled" fillcolor=red];
}
19 -> {20};
8 -> {11};
10 -> {17};
5 -> {4} [color=green];
subgraph cluster_3 {
color=red
6 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
8 [label="Enter block"];
subgraph cluster_5 {
color=blue
10 [label="Enter &&"];
11 [label="Access variable this@R|/check_1|"];
12 [label="Type operator: (this@R|/check_1| is R|B|)"];
13 [label="Exit left part of &&"];
14 [label="Enter right part of &&"];
15 [label="Access variable R|/B.b|"];
9 [label="Exit &&"];
}
16 [label="Jump: ^ (this@R|/check_1| is R|B|) && this@R|/check_1|.R|/B.b|"];
17 [label="Stub" style="filled" fillcolor=gray];
18 [label="Exit block" style="filled" fillcolor=gray];
}
7 [label="Exit function getter" style="filled" fillcolor=red];
}
6 -> {8};
8 -> {10};
9 -> {16};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {10 15};
15 -> {16};
16 -> {10};
17 -> {9};
13 -> {9 14};
14 -> {15};
15 -> {9};
16 -> {7};
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
18 -> {9} [style=dotted];
18 -> {7} [style=dotted];
subgraph cluster_7 {
subgraph cluster_6 {
color=red
33 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_8 {
19 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
21 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_9 {
21 [label="Enter block"];
subgraph cluster_8 {
color=blue
24 [label="Enter &&"];
25 [label="Access variable this@R|/check_2|"];
26 [label="Type operator: (this@R|/check_2| is R|B|)"];
27 [label="Exit left part of &&"];
28 [label="Enter right part of &&"];
29 [label="Access variable this@R|/check_2|"];
30 [label="Access variable R|/B.b|"];
23 [label="Exit &&"];
23 [label="Enter &&"];
24 [label="Access variable this@R|/check_2|"];
25 [label="Type operator: (this@R|/check_2| is R|B|)"];
26 [label="Exit left part of &&"];
27 [label="Enter right part of &&"];
28 [label="Access variable this@R|/check_2|"];
29 [label="Access variable R|/B.b|"];
22 [label="Exit &&"];
}
31 [label="Jump: ^ (this@R|/check_2| is R|B|) && this@R|/check_2|.R|/B.b|"];
32 [label="Stub" style="filled" fillcolor=gray];
22 [label="Exit function getter" style="filled" fillcolor=red];
30 [label="Jump: ^ (this@R|/check_2| is R|B|) && this@R|/check_2|.R|/B.b|"];
31 [label="Stub" style="filled" fillcolor=gray];
32 [label="Exit block" style="filled" fillcolor=gray];
}
34 [label="Exit property" style="filled" fillcolor=red];
20 [label="Exit function getter" style="filled" fillcolor=red];
}
33 -> {34};
21 -> {24};
23 -> {31};
19 -> {21};
21 -> {23};
22 -> {30};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {23 28};
26 -> {22 27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {23};
31 -> {22};
29 -> {22};
30 -> {20};
30 -> {31} [style=dotted];
31 -> {32} [style=dotted];
32 -> {22} [style=dotted];
32 -> {20} [style=dotted];
}