Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/functionCallBound.dot
T
2020-10-12 11:55:05 +03:00

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