Files
Brian Norman b55fda0c55 [FIR] Create CFG for files to track top-level property initialization
In order to properly analyze top-level property initialization, a
control-flow graph must be created for FirFiles. This change adds the
foundation for the file CFG and updates body resolve to create the CFG.
Checking the CFG for proper initialization is separated into a following
change to ease code review.

KT-56683
2023-08-31 12:50:52 +00:00

89 lines
2.4 KiB
Plaintext
Vendored

digraph emptyWhen_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter file emptyWhen.kt" style="filled" fillcolor=red];
1 [label="Exit file emptyWhen.kt" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter block"];
subgraph cluster_3 {
color=blue
4 [label="Enter when"];
5 [label="Synthetic else branch"];
6 [label="Exit when"];
}
7 [label="Exit block"];
}
8 [label="Exit function test_1" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
subgraph cluster_4 {
color=red
9 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
10 [label="Enter block"];
subgraph cluster_6 {
color=blue
11 [label="Enter when"];
12 [label="Access variable R|<local>/x|"];
13 [label="Synthetic else branch"];
14 [label="Exit when"];
}
15 [label="Exit block"];
}
16 [label="Exit function test_2" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
subgraph cluster_7 {
color=red
17 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
18 [label="Enter block"];
subgraph cluster_9 {
color=blue
19 [label="Enter when"];
20 [label="Access variable R|<local>/x|"];
21 [label="Variable declaration: lval y: R|kotlin/Int|"];
22 [label="Synthetic else branch"];
23 [label="Exit when"];
}
24 [label="Exit block"];
}
25 [label="Exit function test_3" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
}