Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/cfg/flowFromInplaceLambda.dot
T

434 lines
16 KiB
Plaintext
Vendored

digraph flowFromInplaceLambda_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function takeInt" style="filled" fillcolor=red];
1 [label="Exit function takeInt" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function select" style="filled" fillcolor=red];
4 [label="Access variable R|<local>/x|"];
5 [label="Const: Int(0)"];
6 [label="Function call: R|<local>/x|.R|FakeOverride<kotlin/Array.get: R|K|>|(...)"];
7 [label="Jump: ^select R|<local>/x|.R|FakeOverride<kotlin/Array.get: R|K|>|(Int(0))"];
8 [label="Stub" style="filled" fillcolor=gray];
3 [label="Exit function select" style="filled" fillcolor=red];
}
2 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {3};
7 -> {8} [style=dotted];
8 -> {3} [style=dotted];
subgraph cluster_2 {
color=red
9 [label="Enter function id" style="filled" fillcolor=red];
11 [label="Access variable R|<local>/x|"];
12 [label="Jump: ^id R|<local>/x|"];
13 [label="Stub" style="filled" fillcolor=gray];
10 [label="Exit function id" style="filled" fillcolor=red];
}
9 -> {11};
11 -> {12};
12 -> {10};
12 -> {13} [style=dotted];
13 -> {10} [style=dotted];
subgraph cluster_3 {
color=red
14 [label="Enter function materialize" style="filled" fillcolor=red];
16 [label="Const: Null(null)"];
17 [label="Check not null: Null(null)!!"];
18 [label="Jump: ^materialize Null(null)!!"];
19 [label="Stub" style="filled" fillcolor=gray];
15 [label="Exit function materialize" style="filled" fillcolor=red];
}
14 -> {16};
16 -> {17};
17 -> {18};
18 -> {15};
18 -> {19} [style=dotted];
19 -> {15} [style=dotted];
subgraph cluster_4 {
color=red
20 [label="Enter function myRun" style="filled" fillcolor=red];
22 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|R|>|()"];
23 [label="Jump: ^myRun R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|R|>|()"];
24 [label="Stub" style="filled" fillcolor=gray];
21 [label="Exit function myRun" style="filled" fillcolor=red];
}
20 -> {22};
22 -> {23};
23 -> {21};
23 -> {24} [style=dotted];
24 -> {21} [style=dotted];
subgraph cluster_5 {
color=red
25 [label="Enter function test_1" style="filled" fillcolor=red];
27 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
33 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
35 [label="Access variable R|<local>/x|"];
36 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
34 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
30 [label="Call arguments union" style="filled" fillcolor=yellow];
28 [label="Postponed exit from lambda"];
29 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
31 [label="Access variable R|<local>/x|"];
32 [label="Function call: R|/takeInt|(...)"];
26 [label="Exit function test_1" style="filled" fillcolor=red];
}
25 -> {27};
27 -> {33};
27 -> {28} [color=red];
28 -> {29} [color=green];
29 -> {31};
30 -> {29} [color=red];
31 -> {32};
32 -> {26};
33 -> {35};
34 -> {28} [color=green];
34 -> {30} [color=red];
35 -> {36};
36 -> {34};
subgraph cluster_7 {
color=red
37 [label="Enter function test_2" style="filled" fillcolor=red];
39 [label="Postponed enter to lambda"];
subgraph cluster_8 {
color=blue
58 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
60 [label="Access variable R|<local>/y|"];
61 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
62 [label="Access variable R|<local>/x|"];
63 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
59 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
40 [label="Postponed exit from lambda"];
41 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
43 [label="Call arguments union" style="filled" fillcolor=yellow];
42 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
44 [label="Access variable R|<local>/y|"];
45 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
46 [label="Postponed enter to lambda"];
subgraph cluster_9 {
color=blue
64 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
66 [label="Access variable R|<local>/x|"];
67 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
68 [label="Access variable R|<local>/y|"];
69 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
70 [label="Const: Int(1)"];
65 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
47 [label="Postponed exit from lambda"];
48 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
50 [label="Call arguments union" style="filled" fillcolor=yellow];
49 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
51 [label="Variable declaration: lval a: R|kotlin/Int|"];
52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|/takeInt|(...)"];
54 [label="Access variable R|<local>/y|"];
55 [label="Function call: R|/takeInt|(...)"];
56 [label="Access variable R|<local>/a|"];
57 [label="Function call: R|/takeInt|(...)"];
38 [label="Exit function test_2" style="filled" fillcolor=red];
}
37 -> {39};
39 -> {58};
39 -> {40} [color=red];
40 -> {41};
41 -> {43};
42 -> {44};
43 -> {42};
44 -> {45};
45 -> {46};
46 -> {64};
46 -> {47} [color=red];
47 -> {48};
48 -> {50};
49 -> {51};
50 -> {49};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {38};
58 -> {60};
59 -> {40} [color=green];
59 -> {43} [color=red];
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {59};
64 -> {66};
65 -> {47} [color=green];
65 -> {50} [color=red];
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {65};
subgraph cluster_10 {
color=red
71 [label="Enter function test_3" style="filled" fillcolor=red];
73 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=blue
89 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
91 [label="Access variable R|<local>/y|"];
92 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
93 [label="Access variable R|<local>/x|"];
94 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
95 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
90 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
74 [label="Postponed exit from lambda"];
75 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
76 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
77 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
96 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
98 [label="Access variable R|<local>/y|"];
99 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
100 [label="Access variable R|<local>/x|"];
101 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
102 [label="Access variable R|<local>/y|"];
103 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
104 [label="Const: Int(1)"];
97 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
78 [label="Postponed exit from lambda"];
79 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
81 [label="Call arguments union" style="filled" fillcolor=yellow];
80 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
82 [label="Variable declaration: lval a: R|kotlin/Int|"];
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|/takeInt|(...)"];
85 [label="Access variable R|<local>/y|"];
86 [label="Function call: R|/takeInt|(...)"];
87 [label="Access variable R|<local>/a|"];
88 [label="Function call: R|/takeInt|(...)"];
72 [label="Exit function test_3" style="filled" fillcolor=red];
}
71 -> {73};
73 -> {89};
73 -> {74} [color=red];
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {96};
77 -> {78} [color=red];
78 -> {79};
79 -> {81};
80 -> {82};
81 -> {80};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {72};
89 -> {91};
90 -> {74} [color=green];
90 -> {81} [color=red];
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {90};
96 -> {98};
97 -> {78} [color=green];
97 -> {81} [color=red];
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {97};
subgraph cluster_13 {
color=red
105 [label="Enter function test_4" style="filled" fillcolor=red];
107 [label="Postponed enter to lambda"];
subgraph cluster_14 {
color=blue
124 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
126 [label="Access variable R|<local>/y|"];
127 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
128 [label="Access variable R|<local>/x|"];
129 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
125 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
108 [label="Postponed exit from lambda"];
109 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
110 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
111 [label="Access variable R|<local>/y|"];
112 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
113 [label="Postponed enter to lambda"];
subgraph cluster_15 {
color=blue
130 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
132 [label="Access variable R|<local>/x|"];
133 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
134 [label="Access variable R|<local>/y|"];
135 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
136 [label="Const: Int(1)"];
131 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
114 [label="Postponed exit from lambda"];
115 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
116 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
117 [label="Variable declaration: lval a: R|kotlin/Int|"];
118 [label="Access variable R|<local>/x|"];
119 [label="Function call: <Inapplicable(INAPPLICABLE): [/takeInt]>#(...)"];
120 [label="Access variable R|<local>/y|"];
121 [label="Function call: R|/takeInt|(...)"];
122 [label="Access variable R|<local>/a|"];
123 [label="Function call: R|/takeInt|(...)"];
106 [label="Exit function test_4" style="filled" fillcolor=red];
}
105 -> {107};
107 -> {108};
107 -> {124} [color=red];
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
113 -> {130} [color=red];
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {106};
124 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {125};
130 -> {132};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {131};
subgraph cluster_16 {
color=red
137 [label="Enter function test_5" style="filled" fillcolor=red];
139 [label="Postponed enter to lambda"];
subgraph cluster_17 {
color=blue
150 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
152 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
151 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
140 [label="Postponed exit from lambda"];
141 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
142 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
153 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
155 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
154 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
143 [label="Postponed exit from lambda"];
144 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
146 [label="Call arguments union" style="filled" fillcolor=yellow];
145 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
147 [label="Variable declaration: lval x: R|kotlin/Int|"];
148 [label="Access variable R|<local>/x|"];
149 [label="Function call: R|/takeInt|(...)"];
138 [label="Exit function test_5" style="filled" fillcolor=red];
}
137 -> {139};
139 -> {150};
139 -> {140} [color=red];
140 -> {141};
141 -> {142};
142 -> {153};
142 -> {143} [color=red];
143 -> {144};
144 -> {146};
145 -> {147};
146 -> {145};
147 -> {148};
148 -> {149};
149 -> {138};
150 -> {152};
151 -> {140} [color=green];
151 -> {146} [color=red];
152 -> {151};
153 -> {155};
154 -> {143} [color=green];
154 -> {146} [color=red];
155 -> {154};
subgraph cluster_19 {
color=red
156 [label="Enter function test_6" style="filled" fillcolor=red];
158 [label="Postponed enter to lambda"];
subgraph cluster_20 {
color=blue
163 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
165 [label="Postponed enter to lambda"];
subgraph cluster_21 {
color=blue
168 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
170 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
169 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
166 [label="Postponed exit from lambda"];
167 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
164 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
159 [label="Postponed exit from lambda"];
160 [label="Function call: R|/myRun|<R|kotlin/String|>(...)"];
161 [label="Function call: R|/id|<R|kotlin/String|>(...)"];
162 [label="Variable declaration: lval x: R|kotlin/String|"];
157 [label="Exit function test_6" style="filled" fillcolor=red];
}
156 -> {158};
158 -> {159};
158 -> {163} [color=red];
159 -> {160};
160 -> {161};
161 -> {162};
162 -> {157};
163 -> {165};
165 -> {168};
165 -> {166} [color=red];
166 -> {167};
167 -> {164};
168 -> {170};
169 -> {166} [color=green];
170 -> {169};
}