Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/cfg/lambdas.dot
T
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

346 lines
12 KiB
Plaintext
Vendored

digraph lambdas_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter file lambdas.kt" style="filled" fillcolor=red];
1 [label="Exit file lambdas.kt" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter block"];
subgraph cluster_3 {
color=blue
4 [label="Function call arguments enter"];
5 [label="Function call arguments exit"];
}
6 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
7 [label="Exit block"];
}
8 [label="Exit function run" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
subgraph cluster_4 {
color=red
9 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
10 [label="Enter block"];
subgraph cluster_6 {
color=blue
11 [label="Enter when"];
subgraph cluster_7 {
color=blue
12 [label="Enter when branch condition "];
13 [label="Access variable R|<local>/x|"];
14 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
15 [label="Exit when branch condition"];
}
16 [label="Synthetic else branch"];
17 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
18 [label="Enter block"];
subgraph cluster_9 {
color=blue
19 [label="Function call arguments enter"];
20 [label="Postponed enter to lambda"];
subgraph cluster_10 {
color=blue
21 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
22 [label="Enter block"];
subgraph cluster_12 {
color=blue
23 [label="Function call arguments enter"];
24 [label="Access variable R|<local>/x|"];
25 [label="Smart cast: R|<local>/x|"];
26 [label="Function call arguments exit"];
}
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
28 [label="Exit block"];
}
29 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
30 [label="Function call arguments exit"];
}
31 [label="Postponed exit from lambda"];
32 [label="Function call: R|/run|(...)" style="filled" fillcolor=yellow];
33 [label="Exit block"];
}
34 [label="Exit when branch result"];
35 [label="Exit when"];
}
36 [label="Exit block"];
}
37 [label="Exit function test_1" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16 17};
16 -> {35};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21 30 31};
20 -> {21} [style=dashed];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {31};
30 -> {32};
31 -> {20} [color=green style=dashed];
31 -> {32} [label="Postponed"];
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
subgraph cluster_13 {
color=red
38 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
39 [label="Enter block"];
subgraph cluster_15 {
color=blue
40 [label="Enter when"];
subgraph cluster_16 {
color=blue
41 [label="Enter when branch condition "];
42 [label="Access variable R|<local>/x|"];
43 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
44 [label="Exit when branch condition"];
}
45 [label="Synthetic else branch"];
46 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
47 [label="Enter block"];
48 [label="Exit anonymous function expression"];
49 [label="Variable declaration: lval lambda: R|() -> kotlin/Int|"];
50 [label="Exit block"];
}
51 [label="Exit when branch result"];
52 [label="Exit when"];
}
53 [label="Exit block"];
}
54 [label="Exit function test_2" style="filled" fillcolor=red];
}
subgraph cluster_18 {
color=blue
55 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
56 [label="Enter block"];
subgraph cluster_20 {
color=blue
57 [label="Function call arguments enter"];
58 [label="Access variable R|<local>/x|"];
59 [label="Smart cast: R|<local>/x|"];
60 [label="Function call arguments exit"];
}
61 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
62 [label="Exit block"];
}
63 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45 46};
45 -> {52};
46 -> {47};
47 -> {48};
48 -> {49 55};
48 -> {55} [style=dashed];
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
subgraph cluster_21 {
color=red
64 [label="Enter function getInt" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
65 [label="Enter block"];
subgraph cluster_23 {
color=blue
66 [label="Function call arguments enter"];
67 [label="Function call arguments exit"];
}
68 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
69 [label="Const: Int(1)"];
70 [label="Jump: ^getInt Int(1)"];
71 [label="Stub" style="filled" fillcolor=gray];
72 [label="Exit block" style="filled" fillcolor=gray];
}
73 [label="Exit function getInt" style="filled" fillcolor=red];
}
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {73};
70 -> {71} [style=dotted];
71 -> {72} [style=dotted];
72 -> {73} [style=dotted];
subgraph cluster_24 {
color=red
74 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
75 [label="Enter block"];
subgraph cluster_26 {
color=blue
76 [label="Function call arguments enter"];
77 [label="Postponed enter to lambda"];
subgraph cluster_27 {
color=blue
78 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_28 {
color=blue
79 [label="Enter block"];
80 [label="Const: Int(1)"];
81 [label="Jump: ^test_3 Int(1)"];
82 [label="Stub" style="filled" fillcolor=gray];
83 [label="Exit block" style="filled" fillcolor=gray];
}
84 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
}
85 [label="Function call arguments exit"];
}
86 [label="Postponed exit from lambda"];
87 [label="Function call: R|/getInt|(...)" style="filled" fillcolor=yellow];
88 [label="Jump: ^test_3 R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
^test_3 Int(1)
}
)"];
89 [label="Stub" style="filled" fillcolor=gray];
90 [label="Exit block" style="filled" fillcolor=gray];
}
91 [label="Exit function test_3" style="filled" fillcolor=red];
}
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78 85 86};
77 -> {78} [style=dashed];
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {91};
81 -> {82} [style=dotted];
82 -> {83} [style=dotted];
83 -> {84} [style=dotted];
84 -> {86} [style=dotted];
85 -> {87};
86 -> {77} [color=green style=dashed];
86 -> {87} [label="Postponed"];
87 -> {88};
88 -> {91};
88 -> {89} [style=dotted];
89 -> {90} [style=dotted];
90 -> {91} [style=dotted];
subgraph cluster_29 {
color=red
92 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_30 {
color=blue
93 [label="Enter block"];
subgraph cluster_31 {
color=blue
94 [label="Function call arguments enter"];
95 [label="Postponed enter to lambda"];
subgraph cluster_32 {
color=blue
96 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
97 [label="Enter block"];
98 [label="Const: Int(1)"];
99 [label="Jump: ^test_4 Int(1)"];
100 [label="Stub" style="filled" fillcolor=gray];
101 [label="Exit block" style="filled" fillcolor=gray];
}
102 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
}
103 [label="Function call arguments exit"];
}
104 [label="Postponed exit from lambda"];
105 [label="Function call: R|/getInt|(...)" style="filled" fillcolor=yellow];
106 [label="Jump: ^test_4 R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
^test_4 Int(1)
}
)"];
107 [label="Stub" style="filled" fillcolor=gray];
108 [label="Exit block" style="filled" fillcolor=gray];
}
109 [label="Exit function test_4" style="filled" fillcolor=red];
}
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96 103 104};
95 -> {96} [style=dashed];
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {109};
99 -> {100} [style=dotted];
100 -> {101} [style=dotted];
101 -> {102} [style=dotted];
102 -> {104} [style=dotted];
103 -> {105};
104 -> {95} [color=green style=dashed];
104 -> {105} [label="Postponed"];
105 -> {106};
106 -> {109};
106 -> {107} [style=dotted];
107 -> {108} [style=dotted];
108 -> {109} [style=dotted];
}