513af2dfbc
Make smart-casts non-transparent expression without delegation to underlying FirQualifiedAccessExpression, as children delegation in fir tree has unclear semantics Remove two different kinds of tree nodes for smart-casts
245 lines
8.2 KiB
Plaintext
Vendored
245 lines
8.2 KiB
Plaintext
Vendored
digraph implicitReceiverAsWhenSubject_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter function test_1" style="filled" fillcolor=red];
|
|
subgraph cluster_1 {
|
|
color=blue
|
|
1 [label="Enter block"];
|
|
subgraph cluster_2 {
|
|
color=blue
|
|
2 [label="Enter when"];
|
|
3 [label="Access variable this@R|/test_1|"];
|
|
subgraph cluster_3 {
|
|
color=blue
|
|
4 [label="Enter when branch condition "];
|
|
5 [label="Exit $subj"];
|
|
6 [label="Type operator: ($subj$ is R|kotlin/collections/List<*>|)"];
|
|
7 [label="Exit when branch condition"];
|
|
}
|
|
subgraph cluster_4 {
|
|
color=blue
|
|
8 [label="Enter when branch condition "];
|
|
9 [label="Exit $subj"];
|
|
10 [label="Type operator: ($subj$ is R|kotlin/String|)"];
|
|
11 [label="Exit when branch condition"];
|
|
}
|
|
subgraph cluster_5 {
|
|
color=blue
|
|
12 [label="Enter when branch condition else"];
|
|
13 [label="Exit when branch condition"];
|
|
}
|
|
14 [label="Enter when branch result"];
|
|
subgraph cluster_6 {
|
|
color=blue
|
|
15 [label="Enter block"];
|
|
16 [label="Const: Int(0)"];
|
|
17 [label="Exit block"];
|
|
}
|
|
18 [label="Exit when branch result"];
|
|
19 [label="Enter when branch result"];
|
|
subgraph cluster_7 {
|
|
color=blue
|
|
20 [label="Enter block"];
|
|
21 [label="Access variable R|kotlin/String.length|"];
|
|
22 [label="Exit block"];
|
|
}
|
|
23 [label="Exit when branch result"];
|
|
24 [label="Enter when branch result"];
|
|
subgraph cluster_8 {
|
|
color=blue
|
|
25 [label="Enter block"];
|
|
26 [label="Access variable this@R|/test_1|"];
|
|
27 [label="Smart cast: this@R|/test_1|"];
|
|
28 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
|
29 [label="Exit block"];
|
|
}
|
|
30 [label="Exit when branch result"];
|
|
31 [label="Exit when"];
|
|
}
|
|
32 [label="Jump: ^test_1 when (this@R|/test_1|) {
|
|
($subj$ is R|kotlin/collections/List<*>|) -> {
|
|
this@R|/test_1|.R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|
|
|
}
|
|
($subj$ is R|kotlin/String|) -> {
|
|
this@R|/test_1|.R|kotlin/String.length|
|
|
}
|
|
else -> {
|
|
Int(0)
|
|
}
|
|
}
|
|
"];
|
|
33 [label="Stub" style="filled" fillcolor=gray];
|
|
34 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
35 [label="Exit function test_1" style="filled" fillcolor=red];
|
|
}
|
|
0 -> {1};
|
|
1 -> {2};
|
|
2 -> {3};
|
|
3 -> {4};
|
|
4 -> {5};
|
|
5 -> {6};
|
|
6 -> {7};
|
|
7 -> {24 8};
|
|
8 -> {9};
|
|
9 -> {10};
|
|
10 -> {11};
|
|
11 -> {19 12};
|
|
12 -> {13};
|
|
13 -> {14};
|
|
14 -> {15};
|
|
15 -> {16};
|
|
16 -> {17};
|
|
17 -> {18};
|
|
18 -> {31};
|
|
19 -> {20};
|
|
20 -> {21};
|
|
21 -> {22};
|
|
22 -> {23};
|
|
23 -> {31};
|
|
24 -> {25};
|
|
25 -> {26};
|
|
26 -> {27};
|
|
27 -> {28};
|
|
28 -> {29};
|
|
29 -> {30};
|
|
30 -> {31};
|
|
31 -> {32};
|
|
32 -> {35};
|
|
32 -> {33} [style=dotted];
|
|
33 -> {34} [style=dotted];
|
|
34 -> {35} [style=dotted];
|
|
|
|
subgraph cluster_9 {
|
|
color=red
|
|
36 [label="Enter function test_2" style="filled" fillcolor=red];
|
|
subgraph cluster_10 {
|
|
color=blue
|
|
37 [label="Enter block"];
|
|
subgraph cluster_11 {
|
|
color=blue
|
|
38 [label="Enter when"];
|
|
39 [label="Access variable this@R|/test_2|"];
|
|
40 [label="Variable declaration: lval x: R|kotlin/Any|"];
|
|
subgraph cluster_12 {
|
|
color=blue
|
|
41 [label="Enter when branch condition "];
|
|
42 [label="Exit $subj"];
|
|
43 [label="Type operator: ($subj$ is R|kotlin/collections/List<*>|)"];
|
|
44 [label="Exit when branch condition"];
|
|
}
|
|
subgraph cluster_13 {
|
|
color=blue
|
|
45 [label="Enter when branch condition "];
|
|
46 [label="Exit $subj"];
|
|
47 [label="Type operator: ($subj$ is R|kotlin/String|)"];
|
|
48 [label="Exit when branch condition"];
|
|
}
|
|
subgraph cluster_14 {
|
|
color=blue
|
|
49 [label="Enter when branch condition else"];
|
|
50 [label="Exit when branch condition"];
|
|
}
|
|
51 [label="Enter when branch result"];
|
|
subgraph cluster_15 {
|
|
color=blue
|
|
52 [label="Enter block"];
|
|
53 [label="Const: Int(0)"];
|
|
54 [label="Exit block"];
|
|
}
|
|
55 [label="Exit when branch result"];
|
|
56 [label="Enter when branch result"];
|
|
subgraph cluster_16 {
|
|
color=blue
|
|
57 [label="Enter block"];
|
|
58 [label="Access variable R|<local>/x|"];
|
|
59 [label="Smart cast: R|<local>/x|"];
|
|
60 [label="Access variable R|kotlin/String.length|"];
|
|
61 [label="Access variable R|kotlin/String.length|"];
|
|
62 [label="Exit block"];
|
|
}
|
|
63 [label="Exit when branch result"];
|
|
64 [label="Enter when branch result"];
|
|
subgraph cluster_17 {
|
|
color=blue
|
|
65 [label="Enter block"];
|
|
66 [label="Access variable R|<local>/x|"];
|
|
67 [label="Smart cast: R|<local>/x|"];
|
|
68 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
|
69 [label="Access variable this@R|/test_2|"];
|
|
70 [label="Smart cast: this@R|/test_2|"];
|
|
71 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
|
72 [label="Exit block"];
|
|
}
|
|
73 [label="Exit when branch result"];
|
|
74 [label="Exit when"];
|
|
}
|
|
75 [label="Jump: ^test_2 when (lval x: R|kotlin/Any| = this@R|/test_2|) {
|
|
($subj$ is R|kotlin/collections/List<*>|) -> {
|
|
R|<local>/x|.R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|
|
|
this@R|/test_2|.R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|
|
|
}
|
|
($subj$ is R|kotlin/String|) -> {
|
|
R|<local>/x|.R|kotlin/String.length|
|
|
this@R|/test_2|.R|kotlin/String.length|
|
|
}
|
|
else -> {
|
|
Int(0)
|
|
}
|
|
}
|
|
"];
|
|
76 [label="Stub" style="filled" fillcolor=gray];
|
|
77 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
78 [label="Exit function test_2" style="filled" fillcolor=red];
|
|
}
|
|
36 -> {37};
|
|
37 -> {38};
|
|
38 -> {39};
|
|
39 -> {40};
|
|
40 -> {41};
|
|
41 -> {42};
|
|
42 -> {43};
|
|
43 -> {44};
|
|
44 -> {64 45};
|
|
45 -> {46};
|
|
46 -> {47};
|
|
47 -> {48};
|
|
48 -> {56 49};
|
|
49 -> {50};
|
|
50 -> {51};
|
|
51 -> {52};
|
|
52 -> {53};
|
|
53 -> {54};
|
|
54 -> {55};
|
|
55 -> {74};
|
|
56 -> {57};
|
|
57 -> {58};
|
|
58 -> {59};
|
|
59 -> {60};
|
|
60 -> {61};
|
|
61 -> {62};
|
|
62 -> {63};
|
|
63 -> {74};
|
|
64 -> {65};
|
|
65 -> {66};
|
|
66 -> {67};
|
|
67 -> {68};
|
|
68 -> {69};
|
|
69 -> {70};
|
|
70 -> {71};
|
|
71 -> {72};
|
|
72 -> {73};
|
|
73 -> {74};
|
|
74 -> {75};
|
|
75 -> {78};
|
|
75 -> {76} [style=dotted];
|
|
76 -> {77} [style=dotted];
|
|
77 -> {78} [style=dotted];
|
|
|
|
}
|