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

166 lines
5.1 KiB
Plaintext
Vendored

digraph functionCallBound_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
1 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {2};
2 -> {1};
subgraph cluster_1 {
color=red
4 [label="Enter class Base" style="filled" fillcolor=red];
3 [label="Exit class Base" style="filled" fillcolor=red];
}
4 -> {3} [color=green];
subgraph cluster_2 {
color=red
5 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Delegated constructor call: super<R|Base|>()"];
6 [label="Exit function <init>" style="filled" fillcolor=red];
}
5 -> {7};
7 -> {6};
subgraph cluster_3 {
color=red
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red];
}
8 -> {9};
subgraph cluster_4 {
color=red
14 [label="Enter class Sub" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
10 [label="Enter property" style="filled" fillcolor=red];
12 [label="Access variable R|<local>/data|"];
11 [label="Exit property" style="filled" fillcolor=red];
}
13 [label="Exit class Sub" style="filled" fillcolor=red];
}
14 -> {10} [color=green];
10 -> {12};
11 -> {13} [color=green];
12 -> {11};
subgraph cluster_6 {
color=red
15 [label="Enter function isOk" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
17 [label="Enter block"];
18 [label="Const: Boolean(true)"];
19 [label="Jump: ^isOk Boolean(true)"];
20 [label="Stub" style="filled" fillcolor=gray];
21 [label="Exit block" style="filled" fillcolor=gray];
}
16 [label="Exit function isOk" style="filled" fillcolor=red];
}
15 -> {17};
17 -> {18};
18 -> {19};
19 -> {16};
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {16} [style=dotted];
subgraph cluster_8 {
color=red
22 [label="Enter function check" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
24 [label="Enter block"];
subgraph cluster_10 {
color=blue
25 [label="Enter when"];
subgraph cluster_11 {
color=blue
27 [label="Enter when branch condition "];
28 [label="Access variable R|<local>/base|"];
29 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
30 [label="Enter safe call"];
32 [label="Function call: $subj$.R|/isOk|()"];
31 [label="Exit safe call"];
33 [label="Const: Boolean(true)"];
34 [label="Operator =="];
35 [label="Exit when branch condition"];
}
subgraph cluster_12 {
color=blue
42 [label="Enter when branch condition else"];
43 [label="Exit when branch condition"];
}
44 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
45 [label="Enter block"];
46 [label="Access variable R|<local>/base|"];
47 [label="Exit block"];
}
48 [label="Exit when branch result"];
36 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
37 [label="Enter block"];
38 [label="Access variable R|<local>/base|"];
39 [label="Access variable R|/Sub.data|"];
40 [label="Exit block"];
}
41 [label="Exit when branch result"];
26 [label="Exit when"];
}
49 [label="Jump: ^check when () {
==((R|<local>/base| as? R|Sub|)?.{ $subj$.R|/isOk|() }, Boolean(true)) -> {
R|<local>/base|.R|/Sub.data|
}
else -> {
R|<local>/base|
}
}
"];
50 [label="Stub" style="filled" fillcolor=gray];
51 [label="Exit block" style="filled" fillcolor=gray];
}
23 [label="Exit function check" style="filled" fillcolor=red];
}
22 -> {24};
24 -> {25};
25 -> {27};
26 -> {49};
27 -> {28};
28 -> {29};
29 -> {30 31};
30 -> {32};
31 -> {33};
32 -> {31};
33 -> {34};
34 -> {35};
35 -> {36 42};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {26};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {26};
49 -> {23};
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
51 -> {23} [style=dotted];
}