Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/elvis.dot
T
2023-12-08 14:32:22 +00:00

214 lines
7.0 KiB
Plaintext
Vendored

digraph elvis_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter file elvis.kt" style="filled" fillcolor=red];
1 [label="Exit file elvis.kt" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=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 function foo" style="filled" fillcolor=red];
5 [label="Exit function foo" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
color=red
6 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
7 [label="Enter block"];
subgraph cluster_5 {
color=blue
8 [label="Enter when"];
subgraph cluster_6 {
color=blue
9 [label="Enter when branch condition "];
10 [label="Access variable R|<local>/x|"];
11 [label="Enter safe call"];
12 [label="Access variable R|/A.b|"];
13 [label="Exit safe call"];
14 [label="Exit lhs of ?:"];
15 [label="Enter rhs of ?:"];
16 [label="Jump: ^test_1 Unit"];
17 [label="Stub" style="filled" fillcolor=gray];
18 [label="Lhs of ?: is not null"];
19 [label="Exit ?:"];
20 [label="Exit when branch condition"];
}
21 [label="Synthetic else branch"];
22 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
23 [label="Enter block"];
subgraph cluster_8 {
color=blue
24 [label="Function call arguments enter"];
25 [label="Access variable R|<local>/x|"];
26 [label="Smart cast: R|<local>/x|"];
27 [label="Function call arguments exit"];
}
28 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
29 [label="Exit block"];
}
30 [label="Exit when branch result"];
31 [label="Exit when"];
}
32 [label="Exit block"];
}
33 [label="Exit function test_1" style="filled" fillcolor=red];
}
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11 15};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15 18};
15 -> {16};
16 -> {33};
16 -> {17} [style=dotted];
17 -> {19} [style=dotted];
18 -> {19};
19 -> {20};
20 -> {21 22};
21 -> {31};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
subgraph cluster_9 {
color=red
34 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
35 [label="Enter block"];
subgraph cluster_11 {
color=blue
36 [label="Enter when"];
subgraph cluster_12 {
color=blue
37 [label="Enter when branch condition "];
38 [label="Access variable R|<local>/b|"];
39 [label="Type operator: (R|<local>/b| !is R|kotlin/String|)"];
40 [label="Exit when branch condition"];
}
41 [label="Synthetic else branch"];
42 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
43 [label="Enter block"];
44 [label="Const: String()"];
45 [label="Jump: ^test2 String()"];
46 [label="Stub" style="filled" fillcolor=gray];
47 [label="Exit block" style="filled" fillcolor=gray];
}
48 [label="Exit when branch result" style="filled" fillcolor=gray];
49 [label="Exit when"];
}
subgraph cluster_14 {
color=blue
50 [label="Enter when"];
subgraph cluster_15 {
color=blue
51 [label="Enter when branch condition "];
52 [label="Access variable R|<local>/a|"];
53 [label="Type operator: (R|<local>/a| !is R|kotlin/String?|)"];
54 [label="Exit when branch condition"];
}
55 [label="Synthetic else branch"];
56 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
57 [label="Enter block"];
58 [label="Const: String()"];
59 [label="Jump: ^test2 String()"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray];
}
62 [label="Exit when branch result" style="filled" fillcolor=gray];
63 [label="Exit when"];
}
64 [label="Access variable R|<local>/a|"];
65 [label="Smart cast: R|<local>/a|"];
66 [label="Exit lhs of ?:"];
67 [label="Enter rhs of ?:"];
68 [label="Access variable R|<local>/b|"];
69 [label="Smart cast: R|<local>/b|"];
70 [label="Lhs of ?: is not null"];
71 [label="Exit ?:"];
72 [label="Jump: ^test2 R|<local>/a| ?: R|<local>/b|"];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit block" style="filled" fillcolor=gray];
}
75 [label="Exit function test2" style="filled" fillcolor=red];
}
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41 42};
41 -> {49};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {75};
45 -> {46} [style=dotted];
46 -> {47} [style=dotted];
47 -> {48} [style=dotted];
48 -> {49} [style=dotted];
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55 56};
55 -> {63};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {75};
59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
62 -> {63} [style=dotted];
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67 70};
67 -> {68};
68 -> {69};
69 -> {71};
70 -> {71};
71 -> {72};
72 -> {75};
72 -> {73} [style=dotted];
73 -> {74} [style=dotted];
74 -> {75} [style=dotted];
}