[FIR] Add control flow graph for class initialization
This commit is contained in:
+55
-47
@@ -23,65 +23,71 @@ digraph delayedAssignment_kt {
|
||||
|
||||
subgraph cluster_2 {
|
||||
color=red
|
||||
5 [label="Enter function test" style="filled" fillcolor=red];
|
||||
6 [label="Variable declaration: lval a: R|A?|"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
7 [label="Enter when"];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
8 [label="Enter when branch condition "];
|
||||
9 [label="Access variable R|<local>/b|"];
|
||||
10 [label="Exit when branch condition"];
|
||||
}
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
11 [label="Enter when branch condition else"];
|
||||
12 [label="Exit when branch condition"];
|
||||
}
|
||||
13 [label="Enter when branch result"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
14 [label="Enter block"];
|
||||
15 [label="Const: Null(null)"];
|
||||
16 [label="Assignmenet: R|<local>/a|"];
|
||||
17 [label="Exit block"];
|
||||
}
|
||||
18 [label="Exit when branch result"];
|
||||
19 [label="Enter when branch result"];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
20 [label="Enter block"];
|
||||
21 [label="Function call: R|/A.A|()"];
|
||||
22 [label="Assignmenet: R|<local>/a|"];
|
||||
23 [label="Access variable R|<local>/a|"];
|
||||
24 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
25 [label="Exit block"];
|
||||
}
|
||||
26 [label="Exit when branch result"];
|
||||
27 [label="Exit when"];
|
||||
}
|
||||
28 [label="Access variable R|<local>/a|"];
|
||||
29 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
|
||||
30 [label="Exit function test" style="filled" fillcolor=red];
|
||||
5 [label="Enter class A" style="filled" fillcolor=red];
|
||||
6 [label="Exit class A" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
5 -> {6} [color=green];
|
||||
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
7 [label="Enter function test" style="filled" fillcolor=red];
|
||||
8 [label="Variable declaration: lval a: R|A?|"];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
9 [label="Enter when"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter when branch condition "];
|
||||
11 [label="Access variable R|<local>/b|"];
|
||||
12 [label="Exit when branch condition"];
|
||||
}
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
13 [label="Enter when branch condition else"];
|
||||
14 [label="Exit when branch condition"];
|
||||
}
|
||||
15 [label="Enter when branch result"];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
16 [label="Enter block"];
|
||||
17 [label="Const: Null(null)"];
|
||||
18 [label="Assignmenet: R|<local>/a|"];
|
||||
19 [label="Exit block"];
|
||||
}
|
||||
20 [label="Exit when branch result"];
|
||||
21 [label="Enter when branch result"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
22 [label="Enter block"];
|
||||
23 [label="Function call: R|/A.A|()"];
|
||||
24 [label="Assignmenet: R|<local>/a|"];
|
||||
25 [label="Access variable R|<local>/a|"];
|
||||
26 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
27 [label="Exit block"];
|
||||
}
|
||||
28 [label="Exit when branch result"];
|
||||
29 [label="Exit when"];
|
||||
}
|
||||
30 [label="Access variable R|<local>/a|"];
|
||||
31 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
|
||||
32 [label="Exit function test" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
5 -> {6};
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {10};
|
||||
10 -> {19 11};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
12 -> {21 13};
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18};
|
||||
18 -> {27};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
20 -> {29};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
@@ -91,5 +97,7 @@ digraph delayedAssignment_kt {
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user