Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/elvis.dot
T
2020-06-19 15:53:00 +03:00

295 lines
9.8 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 function getter" style="filled" fillcolor=red];
3 [label="Exit function getter" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
5 [label="Enter class A" style="filled" fillcolor=red];
4 [label="Exit class A" style="filled" fillcolor=red];
}
5 -> {4} [color=green];
subgraph cluster_3 {
color=red
6 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
8 [label="Enter block"];
subgraph cluster_5 {
color=blue
9 [label="Enter when"];
subgraph cluster_6 {
color=blue
11 [label="Enter when branch condition "];
subgraph cluster_7 {
color=blue
12 [label="Enter when"];
14 [label="Access variable R|<local>/x|"];
15 [label="Enter safe call"];
17 [label="Access variable R|/A.b|"];
16 [label="Exit safe call"];
18 [label="Variable declaration: lval <elvis>: R|kotlin/Boolean?|"];
subgraph cluster_8 {
color=blue
19 [label="Enter when branch condition "];
20 [label="Const: Null(null)"];
21 [label="Operator =="];
22 [label="Exit when branch condition"];
}
subgraph cluster_9 {
color=blue
29 [label="Enter when branch condition else"];
30 [label="Exit when branch condition"];
}
31 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
32 [label="Enter block"];
33 [label="Access variable R|<local>/<elvis>|"];
34 [label="Exit block"];
}
35 [label="Exit when branch result"];
23 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
24 [label="Enter block"];
25 [label="Jump: ^test_1 Unit"];
26 [label="Stub" style="filled" fillcolor=gray];
27 [label="Exit block" style="filled" fillcolor=gray];
}
28 [label="Exit when branch result" style="filled" fillcolor=gray];
13 [label="Exit when"];
}
36 [label="Exit when branch condition"];
}
43 [label="Synthetic else branch"];
37 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/x|"];
40 [label="Function call: R|<local>/x|.R|/A.foo|()"];
41 [label="Exit block"];
}
42 [label="Exit when branch result"];
10 [label="Exit when"];
}
44 [label="Exit block"];
}
7 [label="Exit function test_1" style="filled" fillcolor=red];
}
6 -> {8};
8 -> {9};
9 -> {11};
10 -> {44};
11 -> {12};
12 -> {14};
13 -> {36};
14 -> {15 16};
15 -> {17};
16 -> {18};
17 -> {16};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23 29};
23 -> {24};
24 -> {25};
25 -> {7};
25 -> {26} [style=dotted];
26 -> {27} [style=dotted];
27 -> {28} [style=dotted];
28 -> {13} [style=dotted];
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {13};
36 -> {37 43};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {10};
43 -> {10};
44 -> {7};
subgraph cluster_13 {
color=red
45 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
47 [label="Enter block"];
subgraph cluster_15 {
color=blue
48 [label="Enter when"];
subgraph cluster_16 {
color=blue
50 [label="Enter when branch condition "];
51 [label="Access variable R|<local>/b|"];
52 [label="Type operator: (R|<local>/b| !is R|kotlin/String|)"];
53 [label="Exit when branch condition"];
}
61 [label="Synthetic else branch"];
54 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
55 [label="Enter block"];
56 [label="Const: String()"];
57 [label="Jump: ^test2 String()"];
58 [label="Stub" style="filled" fillcolor=gray];
59 [label="Exit block" style="filled" fillcolor=gray];
}
60 [label="Exit when branch result" style="filled" fillcolor=gray];
49 [label="Exit when"];
}
subgraph cluster_18 {
color=blue
62 [label="Enter when"];
subgraph cluster_19 {
color=blue
64 [label="Enter when branch condition "];
65 [label="Access variable R|<local>/a|"];
66 [label="Type operator: (R|<local>/a| !is R|kotlin/String?|)"];
67 [label="Exit when branch condition"];
}
75 [label="Synthetic else branch"];
68 [label="Enter when branch result"];
subgraph cluster_20 {
color=blue
69 [label="Enter block"];
70 [label="Const: String()"];
71 [label="Jump: ^test2 String()"];
72 [label="Stub" style="filled" fillcolor=gray];
73 [label="Exit block" style="filled" fillcolor=gray];
}
74 [label="Exit when branch result" style="filled" fillcolor=gray];
63 [label="Exit when"];
}
subgraph cluster_21 {
color=blue
76 [label="Enter when"];
78 [label="Access variable R|<local>/a|"];
79 [label="Variable declaration: lval <elvis>: R|kotlin/String?|"];
subgraph cluster_22 {
color=blue
80 [label="Enter when branch condition "];
81 [label="Const: Null(null)"];
82 [label="Operator =="];
83 [label="Exit when branch condition"];
}
subgraph cluster_23 {
color=blue
89 [label="Enter when branch condition else"];
90 [label="Exit when branch condition"];
}
91 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
92 [label="Enter block"];
93 [label="Access variable R|<local>/<elvis>|"];
94 [label="Exit block"];
}
95 [label="Exit when branch result"];
84 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
85 [label="Enter block"];
86 [label="Access variable R|<local>/b|"];
87 [label="Exit block"];
}
88 [label="Exit when branch result"];
77 [label="Exit when"];
}
96 [label="Jump: ^test2 when (lval <elvis>: R|kotlin/String?| = R|<local>/a|) {
==($subj$, Null(null)) -> {
R|<local>/b|
}
else -> {
R|<local>/<elvis>|
}
}
"];
97 [label="Stub" style="filled" fillcolor=gray];
98 [label="Exit block" style="filled" fillcolor=gray];
}
46 [label="Exit function test2" style="filled" fillcolor=red];
}
45 -> {47};
47 -> {48};
48 -> {50};
49 -> {62};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54 61};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {46};
57 -> {58} [style=dotted];
58 -> {59} [style=dotted];
59 -> {60} [style=dotted];
60 -> {49} [style=dotted];
61 -> {49};
62 -> {64};
63 -> {76};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68 75};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {46};
71 -> {72} [style=dotted];
72 -> {73} [style=dotted];
73 -> {74} [style=dotted];
74 -> {63} [style=dotted];
75 -> {63};
76 -> {78};
77 -> {96};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84 89};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {77};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {77};
96 -> {46};
96 -> {97} [style=dotted];
97 -> {98} [style=dotted];
98 -> {46} [style=dotted];
}