[FIR] Add control flow graph for class initialization
This commit is contained in:
+53
-38
@@ -21,78 +21,93 @@ digraph safeCalls_kt {
|
||||
|
||||
subgraph cluster_2 {
|
||||
color=red
|
||||
4 [label="Enter function getter" style="filled" fillcolor=red];
|
||||
5 [label="Exit function getter" style="filled" fillcolor=red];
|
||||
4 [label="Enter class A" style="filled" fillcolor=red];
|
||||
5 [label="Exit class A" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
4 -> {5};
|
||||
4 -> {5} [color=green];
|
||||
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
6 [label="Enter property" style="filled" fillcolor=red];
|
||||
7 [label="Exit property" style="filled" fillcolor=red];
|
||||
6 [label="Enter function getter" style="filled" fillcolor=red];
|
||||
7 [label="Exit function getter" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
6 -> {7};
|
||||
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
8 [label="Enter function getter" style="filled" fillcolor=red];
|
||||
9 [label="Exit function getter" style="filled" fillcolor=red];
|
||||
8 [label="Enter property" style="filled" fillcolor=red];
|
||||
9 [label="Exit property" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
8 -> {9};
|
||||
|
||||
subgraph cluster_5 {
|
||||
color=red
|
||||
10 [label="Enter property" style="filled" fillcolor=red];
|
||||
11 [label="Exit property" style="filled" fillcolor=red];
|
||||
10 [label="Enter function getter" style="filled" fillcolor=red];
|
||||
11 [label="Exit function getter" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
10 -> {11};
|
||||
|
||||
subgraph cluster_6 {
|
||||
color=red
|
||||
12 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
13 [label="Access variable R|<local>/x|"];
|
||||
14 [label="Enter safe call"];
|
||||
15 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
|
||||
16 [label="Exit safe call"];
|
||||
17 [label="Enter safe call"];
|
||||
18 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
|
||||
19 [label="Exit safe call"];
|
||||
20 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
12 [label="Enter property" style="filled" fillcolor=red];
|
||||
13 [label="Exit property" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
12 -> {13};
|
||||
13 -> {14 16};
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
16 -> {17 19};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
21 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
22 [label="Access variable R|<local>/x|"];
|
||||
23 [label="Enter safe call"];
|
||||
24 [label="Access variable R|/B.foo|"];
|
||||
25 [label="Exit safe call"];
|
||||
26 [label="Enter safe call"];
|
||||
27 [label="Access variable R|/B.bar|"];
|
||||
28 [label="Exit safe call"];
|
||||
29 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
14 [label="Enter class B" style="filled" fillcolor=red];
|
||||
15 [label="Exit class B" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
|
||||
subgraph cluster_8 {
|
||||
color=red
|
||||
16 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
17 [label="Access variable R|<local>/x|"];
|
||||
18 [label="Enter safe call"];
|
||||
19 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
|
||||
20 [label="Exit safe call"];
|
||||
21 [label="Enter safe call"];
|
||||
22 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
|
||||
23 [label="Exit safe call"];
|
||||
24 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
16 -> {17};
|
||||
17 -> {18 20};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21 23};
|
||||
21 -> {22};
|
||||
22 -> {23 25};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
25 -> {26 28};
|
||||
26 -> {27};
|
||||
|
||||
subgraph cluster_9 {
|
||||
color=red
|
||||
25 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
26 [label="Access variable R|<local>/x|"];
|
||||
27 [label="Enter safe call"];
|
||||
28 [label="Access variable R|/B.foo|"];
|
||||
29 [label="Exit safe call"];
|
||||
30 [label="Enter safe call"];
|
||||
31 [label="Access variable R|/B.bar|"];
|
||||
32 [label="Exit safe call"];
|
||||
33 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
25 -> {26};
|
||||
26 -> {27 29};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30 32};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
32 -> {33};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user