Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/elvis.dot
T
2021-07-19 13:40:31 +03:00

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