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

149 lines
5.0 KiB
Plaintext
Vendored

digraph smartcastFromArgument_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
3 [label="Enter class A" style="filled" fillcolor=red];
2 [label="Exit class A" style="filled" fillcolor=red];
}
3 -> {2} [color=green];
subgraph cluster_2 {
color=red
4 [label="Enter function takeA" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
6 [label="Enter block"];
7 [label="Const: Boolean(true)"];
8 [label="Jump: ^takeA Boolean(true)"];
9 [label="Stub" style="filled" fillcolor=gray];
10 [label="Exit block" style="filled" fillcolor=gray];
}
5 [label="Exit function takeA" style="filled" fillcolor=red];
}
4 -> {6};
6 -> {7};
7 -> {8};
8 -> {5};
8 -> {9} [style=dotted];
9 -> {10} [style=dotted];
10 -> {5} [style=dotted];
subgraph cluster_4 {
color=red
11 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
13 [label="Enter block"];
subgraph cluster_6 {
color=blue
14 [label="Enter when"];
subgraph cluster_7 {
color=blue
16 [label="Enter when branch condition "];
subgraph cluster_8 {
color=blue
17 [label="Enter when"];
19 [label="Access variable R|<local>/a|"];
20 [label="Type operator: (R|<local>/a| as? R|A|)"];
21 [label="Variable declaration: lval <elvis>: R|A?|"];
subgraph cluster_9 {
color=blue
22 [label="Enter when branch condition "];
23 [label="Const: Null(null)"];
24 [label="Operator =="];
25 [label="Exit when branch condition"];
}
subgraph cluster_10 {
color=blue
32 [label="Enter when branch condition else"];
33 [label="Exit when branch condition"];
}
34 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
35 [label="Enter block"];
36 [label="Access variable R|<local>/<elvis>|"];
37 [label="Exit block"];
}
38 [label="Exit when branch result"];
26 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
27 [label="Enter block"];
28 [label="Jump: ^test Unit"];
29 [label="Stub" style="filled" fillcolor=gray];
30 [label="Exit block" style="filled" fillcolor=gray];
}
31 [label="Exit when branch result" style="filled" fillcolor=gray];
18 [label="Exit when"];
}
39 [label="Function call: R|/takeA|(...)"];
40 [label="Exit when branch condition"];
}
47 [label="Synthetic else branch"];
41 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
42 [label="Enter block"];
43 [label="Access variable R|<local>/a|"];
44 [label="Function call: R|<local>/a|.R|/A.foo|()"];
45 [label="Exit block"];
}
46 [label="Exit when branch result"];
15 [label="Exit when"];
}
48 [label="Exit block"];
}
12 [label="Exit function test" style="filled" fillcolor=red];
}
11 -> {13};
13 -> {14};
14 -> {16};
15 -> {48};
16 -> {17};
17 -> {19};
18 -> {39};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26 32};
26 -> {27};
27 -> {28};
28 -> {12};
28 -> {29} [style=dotted];
29 -> {30} [style=dotted];
30 -> {31} [style=dotted];
31 -> {18} [style=dotted];
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {18};
39 -> {40};
40 -> {41 47};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {15};
47 -> {15};
48 -> {12};
}