[FIR] Add control flow graph for class initialization
This commit is contained in:
Vendored
+71
-47
@@ -13,65 +13,89 @@ digraph dataFlowInfoFromWhileCondition_kt {
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function test" style="filled" fillcolor=red];
|
||||
3 [label="Const: Null(null)"];
|
||||
4 [label="Variable declaration: lvar a: R|A?|"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
5 [label="Enter while loop"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
6 [label="Enter loop condition"];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
7 [label="Enter ||"];
|
||||
8 [label="Access variable R|<local>/a|"];
|
||||
9 [label="Type operator: (R|<local>/a| is R|B|)"];
|
||||
10 [label="Exit left part of ||"];
|
||||
11 [label="Enter right part of ||"];
|
||||
12 [label="Access variable R|<local>/a|"];
|
||||
13 [label="Type operator: (R|<local>/a| is R|C|)"];
|
||||
14 [label="Exit ||"];
|
||||
}
|
||||
15 [label="Exit loop condition"];
|
||||
}
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
16 [label="Enter loop block"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
17 [label="Enter block"];
|
||||
18 [label="Access variable R|<local>/a|"];
|
||||
19 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
20 [label="Exit block"];
|
||||
}
|
||||
21 [label="Exit loop block"];
|
||||
}
|
||||
22 [label="Exit whileloop"];
|
||||
}
|
||||
23 [label="Exit function test" style="filled" fillcolor=red];
|
||||
2 [label="Enter class A" style="filled" fillcolor=red];
|
||||
3 [label="Exit class A" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
2 -> {3} [color=green];
|
||||
|
||||
subgraph cluster_2 {
|
||||
color=red
|
||||
4 [label="Enter class B" style="filled" fillcolor=red];
|
||||
5 [label="Exit class B" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
4 -> {5} [color=green];
|
||||
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
6 [label="Enter class C" style="filled" fillcolor=red];
|
||||
7 [label="Exit class C" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
6 -> {7} [color=green];
|
||||
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
8 [label="Enter function test" style="filled" fillcolor=red];
|
||||
9 [label="Const: Null(null)"];
|
||||
10 [label="Variable declaration: lvar a: R|A?|"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
11 [label="Enter while loop"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
12 [label="Enter loop condition"];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
13 [label="Enter ||"];
|
||||
14 [label="Access variable R|<local>/a|"];
|
||||
15 [label="Type operator: (R|<local>/a| is R|B|)"];
|
||||
16 [label="Exit left part of ||"];
|
||||
17 [label="Enter right part of ||"];
|
||||
18 [label="Access variable R|<local>/a|"];
|
||||
19 [label="Type operator: (R|<local>/a| is R|C|)"];
|
||||
20 [label="Exit ||"];
|
||||
}
|
||||
21 [label="Exit loop condition"];
|
||||
}
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
22 [label="Enter loop block"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
23 [label="Enter block"];
|
||||
24 [label="Access variable R|<local>/a|"];
|
||||
25 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
26 [label="Exit block"];
|
||||
}
|
||||
27 [label="Exit loop block"];
|
||||
}
|
||||
28 [label="Exit whileloop"];
|
||||
}
|
||||
29 [label="Exit function test" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {10};
|
||||
10 -> {14 11};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {22 16};
|
||||
16 -> {17};
|
||||
15 -> {16};
|
||||
16 -> {20 17};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {6};
|
||||
21 -> {28 22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
27 -> {12};
|
||||
28 -> {29};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user