Files
Brian Norman b2041e0927 [FIR] Disable data flow from in-place lambdas
There are many complications with the current design of passing data
from within in-place lambdas to surrounding code. Solving these
complications will involve more time to investigation than is available
within the K2 release. So we are disabling passing type statement
information from lambdas for the time being until more time can be
devoted to a more complete solution.

^KT-60958 Fixed
^KT-63530 Fixed
2023-12-14 16:40:27 +00:00

431 lines
15 KiB
Plaintext
Vendored

digraph safeCalls_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter file safeCalls.kt" style="filled" fillcolor=red];
1 [label="Exit file safeCalls.kt" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter block"];
4 [label="Const: String()"];
5 [label="Jump: ^foo String()"];
6 [label="Stub" style="filled" fillcolor=gray];
7 [label="Exit block" style="filled" fillcolor=gray];
}
8 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {8};
5 -> {6} [style=dotted];
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
subgraph cluster_3 {
color=red
9 [label="Enter function let" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
10 [label="Enter block"];
11 [label="Exit block"];
}
12 [label="Exit function let" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
11 -> {12};
subgraph cluster_5 {
color=red
13 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
14 [label="Enter block"];
15 [label="Access variable R|<local>/x|"];
16 [label="Enter safe call"];
subgraph cluster_7 {
color=blue
17 [label="Function call arguments enter"];
18 [label="Access variable R|<local>/x|"];
19 [label="Smart cast: R|<local>/x|"];
20 [label="Access variable R|kotlin/String.length|"];
21 [label="Const: Int(1)"];
22 [label="Equality operator =="];
23 [label="Function call arguments exit"];
}
24 [label="Function call: $subj$.R|/foo|(...)" style="filled" fillcolor=yellow];
25 [label="Exit safe call"];
26 [label="Access variable R|<local>/x|"];
27 [label="Access variable R|kotlin/String.length<Inapplicable(UNSAFE_CALL): kotlin/String.length>#|"];
28 [label="Exit block"];
}
29 [label="Exit function test" style="filled" fillcolor=red];
}
13 -> {14};
14 -> {15};
15 -> {16 25};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
subgraph cluster_8 {
color=red
30 [label="Enter class A" style="filled" fillcolor=red];
31 [label="Exit class A" style="filled" fillcolor=red];
}
30 -> {31} [color=green];
subgraph cluster_9 {
color=red
32 [label="Enter function bar" style="filled" fillcolor=red];
33 [label="Exit function bar" style="filled" fillcolor=red];
}
32 -> {33};
subgraph cluster_10 {
color=red
34 [label="Enter function bool" style="filled" fillcolor=red];
35 [label="Exit function bool" style="filled" fillcolor=red];
}
34 -> {35};
subgraph cluster_11 {
color=red
36 [label="Enter function id" style="filled" fillcolor=red];
37 [label="Exit function id" style="filled" fillcolor=red];
}
36 -> {37};
subgraph cluster_12 {
color=red
38 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
39 [label="Enter block"];
40 [label="Access variable R|<local>/x|"];
41 [label="Type operator: (R|<local>/x| as? R|A|)"];
42 [label="Enter safe call"];
subgraph cluster_14 {
color=blue
43 [label="Function call arguments enter"];
44 [label="Access variable R|<local>/x|"];
45 [label="Smart cast: R|<local>/x|"];
46 [label="Function call arguments exit"];
}
47 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow];
48 [label="Exit safe call"];
49 [label="Exit block"];
}
50 [label="Exit function test_2" style="filled" fillcolor=red];
}
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42 48};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
subgraph cluster_15 {
color=red
51 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
52 [label="Enter block"];
53 [label="Access variable R|<local>/x|"];
54 [label="Type operator: (R|<local>/x| as? R|A|)"];
55 [label="Enter safe call"];
subgraph cluster_17 {
color=blue
56 [label="Function call arguments enter"];
57 [label="Access variable R|<local>/x|"];
58 [label="Smart cast: R|<local>/x|"];
59 [label="Function call arguments exit"];
}
60 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow];
61 [label="Enter safe call"];
subgraph cluster_18 {
color=blue
62 [label="Function call arguments enter"];
subgraph cluster_19 {
color=blue
63 [label="Function call arguments enter"];
64 [label="Access variable R|<local>/x|"];
65 [label="Smart cast: R|<local>/x|"];
66 [label="Function call arguments exit"];
}
67 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=yellow];
68 [label="Function call arguments exit"];
}
69 [label="Function call: $subj$.R|/foo|(...)" style="filled" fillcolor=yellow];
70 [label="Enter safe call"];
subgraph cluster_20 {
color=blue
71 [label="Function call arguments enter"];
72 [label="Postponed enter to lambda"];
subgraph cluster_21 {
color=blue
73 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
74 [label="Enter block"];
subgraph cluster_23 {
color=blue
75 [label="Function call arguments enter"];
76 [label="Access variable R|<local>/x|"];
77 [label="Smart cast: R|<local>/x|"];
78 [label="Function call arguments exit"];
}
79 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=yellow];
80 [label="Exit block"];
}
81 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
82 [label="Function call arguments exit"];
}
83 [label="Postponed exit from lambda"];
84 [label="Function call: $subj$.R|/let|(...)" style="filled" fillcolor=yellow];
85 [label="Exit safe call"];
86 [label="Exit safe call"];
87 [label="Exit safe call"];
subgraph cluster_24 {
color=blue
88 [label="Function call arguments enter"];
89 [label="Access variable R|<local>/x|"];
90 [label="Function call arguments exit"];
}
91 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()" style="filled" fillcolor=yellow];
92 [label="Exit block"];
}
93 [label="Exit function test_3" style="filled" fillcolor=red];
}
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55 85};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61 85};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70 86};
70 -> {71};
71 -> {72};
72 -> {73 82 83};
72 -> {73} [style=dashed];
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
82 -> {84};
83 -> {84} [label="Postponed"];
84 -> {87};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
subgraph cluster_25 {
color=red
94 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_26 {
color=blue
95 [label="Enter block"];
96 [label="Access variable R|<local>/x|"];
97 [label="Enter safe call"];
subgraph cluster_27 {
color=blue
98 [label="Function call arguments enter"];
99 [label="Function call arguments exit"];
}
100 [label="Function call: $subj$.R|/A.id|()" style="filled" fillcolor=yellow];
101 [label="Enter safe call"];
subgraph cluster_28 {
color=blue
102 [label="Function call arguments enter"];
103 [label="Function call arguments exit"];
}
104 [label="Function call: $subj$.R|/A.bool|()" style="filled" fillcolor=yellow];
105 [label="Exit safe call"];
106 [label="Exit safe call"];
subgraph cluster_29 {
color=blue
107 [label="Function call arguments enter"];
108 [label="Access variable R|<local>/x|"];
109 [label="Function call arguments exit"];
}
110 [label="Function call: R|<local>/x|.R|/A.id<Inapplicable(UNSAFE_CALL): /A.id>#|()" style="filled" fillcolor=yellow];
111 [label="Exit block"];
}
112 [label="Exit function test_4" style="filled" fillcolor=red];
}
94 -> {95};
95 -> {96};
96 -> {97 105};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101 105};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {106};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
subgraph cluster_30 {
color=red
113 [label="Enter function boo" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
114 [label="Enter block"];
115 [label="Exit block"];
}
116 [label="Exit function boo" style="filled" fillcolor=red];
}
113 -> {114};
114 -> {115};
115 -> {116};
subgraph cluster_32 {
color=red
117 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
118 [label="Enter block"];
119 [label="Access variable R|<local>/x|"];
120 [label="Enter safe call"];
subgraph cluster_34 {
color=blue
121 [label="Function call arguments enter"];
122 [label="Postponed enter to lambda"];
subgraph cluster_35 {
color=blue
123 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_36 {
color=blue
124 [label="Enter block"];
125 [label="Jump: ^test_5 Unit"];
126 [label="Stub" style="filled" fillcolor=gray];
127 [label="Exit block" style="filled" fillcolor=gray];
}
128 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
}
129 [label="Function call arguments exit"];
}
130 [label="Postponed exit from lambda" style="filled" fillcolor=gray];
131 [label="Function call: $subj$.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
132 [label="Stub" style="filled" fillcolor=gray];
133 [label="Enter safe call" style="filled" fillcolor=gray];
subgraph cluster_37 {
color=blue
134 [label="Function call arguments enter" style="filled" fillcolor=gray];
subgraph cluster_38 {
color=blue
135 [label="Function call arguments enter" style="filled" fillcolor=gray];
136 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
137 [label="Smart cast: R|<local>/x|" style="filled" fillcolor=gray];
138 [label="Function call arguments exit" style="filled" fillcolor=gray];
}
139 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=gray];
140 [label="Function call arguments exit" style="filled" fillcolor=gray];
}
141 [label="Function call: $subj$.R|/boo|(...)" style="filled" fillcolor=gray];
142 [label="Exit safe call"];
143 [label="Exit safe call"];
subgraph cluster_39 {
color=blue
144 [label="Function call arguments enter"];
145 [label="Access variable R|<local>/x|"];
146 [label="Function call arguments exit"];
}
147 [label="Function call: R|<local>/x|.R|/A.id<Inapplicable(UNSAFE_CALL): /A.id>#|()" style="filled" fillcolor=yellow];
148 [label="Exit block"];
}
149 [label="Exit function test_5" style="filled" fillcolor=red];
}
117 -> {118};
118 -> {119};
119 -> {120 142};
120 -> {121};
121 -> {122};
122 -> {123 129};
122 -> {130} [style=dotted];
122 -> {123} [style=dashed];
123 -> {124};
124 -> {125};
125 -> {149};
125 -> {126} [style=dotted];
126 -> {127} [style=dotted];
127 -> {128} [style=dotted];
128 -> {130} [style=dotted];
129 -> {131} [style=dotted];
130 -> {131} [style=dotted label="Postponed"];
131 -> {132} [style=dotted];
132 -> {133 142} [style=dotted];
133 -> {134} [style=dotted];
134 -> {135} [style=dotted];
135 -> {136} [style=dotted];
136 -> {137} [style=dotted];
137 -> {138} [style=dotted];
138 -> {139} [style=dotted];
139 -> {140} [style=dotted];
140 -> {141} [style=dotted];
141 -> {143} [style=dotted];
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
}