[FIR] Add control flow graph for class initialization

This commit is contained in:
Dmitriy Novozhilov
2020-03-27 14:48:08 +03:00
parent ad9e6517c7
commit 8cb6e8f8af
43 changed files with 7687 additions and 7023 deletions
@@ -5,96 +5,111 @@ digraph thisOfExtensionProperty_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function getter" style="filled" fillcolor=red];
1 [label="Exit function getter" style="filled" fillcolor=red];
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1};
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter property" style="filled" fillcolor=red];
3 [label="Exit property" style="filled" fillcolor=red];
2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit function getter" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
5 [label="Enter &&"];
6 [label="Access variable this@R|/check_1|"];
7 [label="Type operator: (this@R|/check_1| is R|B|)"];
8 [label="Exit left part of &&"];
9 [label="Enter right part of &&"];
10 [label="Access variable R|/B.b|"];
11 [label="Exit &&"];
}
12 [label="Jump: ^ (this@R|/check_1| is R|B|) && this@R|/check_1|.R|/B.b|"];
13 [label="Stub" style="filled" fillcolor=gray];
14 [label="Exit function getter" style="filled" fillcolor=red];
4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Exit property" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {11 9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {14};
12 -> {13} [style=dotted];
13 -> {14} [style=dotted];
subgraph cluster_3 {
color=red
6 [label="Enter class B" style="filled" fillcolor=red];
7 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=red
15 [label="Enter property" style="filled" fillcolor=red];
16 [label="Exit property" style="filled" fillcolor=red];
}
15 -> {16};
subgraph cluster_5 {
color=red
17 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_6 {
8 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
18 [label="Enter &&"];
19 [label="Access variable this@R|/check_2|"];
20 [label="Type operator: (this@R|/check_2| is R|B|)"];
21 [label="Exit left part of &&"];
22 [label="Enter right part of &&"];
23 [label="Access variable this@R|/check_2|"];
24 [label="Access variable R|/B.b|"];
25 [label="Exit &&"];
9 [label="Enter &&"];
10 [label="Access variable this@R|/check_1|"];
11 [label="Type operator: (this@R|/check_1| is R|B|)"];
12 [label="Exit left part of &&"];
13 [label="Enter right part of &&"];
14 [label="Access variable R|/B.b|"];
15 [label="Exit &&"];
}
26 [label="Jump: ^ (this@R|/check_2| is R|B|) && this@R|/check_2|.R|/B.b|"];
27 [label="Stub" style="filled" fillcolor=gray];
28 [label="Exit function getter" style="filled" fillcolor=red];
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 function getter" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {15 13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {18};
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
subgraph cluster_6 {
color=red
19 [label="Enter property" style="filled" fillcolor=red];
20 [label="Exit property" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {25 22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {28};
26 -> {27} [style=dotted];
27 -> {28} [style=dotted];
subgraph cluster_7 {
color=red
29 [label="Enter property" style="filled" fillcolor=red];
30 [label="Exit property" style="filled" fillcolor=red];
21 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
22 [label="Enter &&"];
23 [label="Access variable this@R|/check_2|"];
24 [label="Type operator: (this@R|/check_2| is R|B|)"];
25 [label="Exit left part of &&"];
26 [label="Enter right part of &&"];
27 [label="Access variable this@R|/check_2|"];
28 [label="Access variable R|/B.b|"];
29 [label="Exit &&"];
}
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 function getter" style="filled" fillcolor=red];
}
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {29 26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {32};
30 -> {31} [style=dotted];
31 -> {32} [style=dotted];
subgraph cluster_9 {
color=red
33 [label="Enter property" style="filled" fillcolor=red];
34 [label="Exit property" style="filled" fillcolor=red];
}
33 -> {34};
}