summaryrefslogtreecommitdiff
path: root/design/mock/02-list-insert.svg
blob: 4fa4c247d28239ff74016b3697df08680438e24e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080">
<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs>
<rect width="1920" height="1080" fill="#0a1030"/>
<text x="64.0" y="81.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">Linked lists</text>
<text x="248.2 263.2 278.2 293.2 308.2 323.2 338.2 353.2 368.2 383.2 398.2 413.2 428.2 443.2 458.2 473.2 488.2 503.2 518.2" y="81.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">insert after a node</text>
<text x="1790.9" y="80.0" font-family="Go Medium" font-size="22" fill="#6a7ab8" xml:space="preserve">kernel</text>
<rect x="1767.9" y="66.0" width="14.0" height="14.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<text x="1646.4" y="80.0" font-family="Go Medium" font-size="22" fill="#eee6d2" xml:space="preserve">memory</text>
<rect x="1622.4" y="65.0" width="16.0" height="16.0" fill="#e8c46a"/>
<text x="1547.1" y="80.0" font-family="Go Medium" font-size="22" fill="#6a7ab8" xml:space="preserve">cpu</text>
<rect x="1524.1" y="66.0" width="14.0" height="14.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<text x="1416.1" y="80.0" font-family="Go Medium" font-size="22" fill="#9aa6d9" xml:space="preserve">source</text>
<rect x="1392.1" y="65.0" width="16.0" height="16.0" fill="#9aa6d9"/>
<line x1="64.0" y1="104.0" x2="1856.0" y2="104.0" stroke="#3a4a8a" stroke-width="2"/>
<rect x="64.0" y="120.0" width="728.0" height="48.0" fill="#16245f"/>
<rect x="65.0" y="121.0" width="726.0" height="766.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<line x1="64.0" y1="168.0" x2="792.0" y2="168.0" stroke="#3a4a8a" stroke-width="2"/>
<rect x="79.0" y="135.0" width="18.0" height="18.0" fill="none" stroke="#6a7ab8" stroke-width="2"/>
<text x="112.0" y="154.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">list.c</text>
<text x="112.0" y="218.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">3</text>
<text x="156.0 174.0 192.0 210.0 228.0 246.0" y="218.8" font-family="JetBrains Mono NL" font-size="30" fill="#c0dcff" xml:space="preserve" font-weight="bold">struct</text>
<text x="282.0 300.0 318.0 336.0 354.0 372.0" y="218.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">node {</text>
<text x="112.0" y="266.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">4</text>
<text x="228.0 246.0 264.0 282.0" y="266.8" font-family="JetBrains Mono NL" font-size="30" fill="#c0dcff" xml:space="preserve" font-weight="bold">long</text>
<text x="318.0 336.0 354.0 372.0 390.0 408.0" y="266.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">value;</text>
<text x="112.0" y="314.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">5</text>
<text x="228.0 246.0 264.0 282.0 300.0 318.0" y="314.8" font-family="JetBrains Mono NL" font-size="30" fill="#c0dcff" xml:space="preserve" font-weight="bold">struct</text>
<text x="354.0 372.0 390.0 408.0 426.0 444.0 462.0 480.0 498.0 516.0 534.0" y="314.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">node *next;</text>
<text x="112.0" y="362.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">6</text>
<text x="156.0 174.0" y="362.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">};</text>
<rect x="156.0" y="393.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="170.0" y="393.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="184.0" y="393.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<text x="94.0 112.0" y="450.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">21</text>
<text x="156.0 174.0 192.0 210.0 228.0 246.0 264.0 282.0 300.0 318.0 336.0" y="450.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">n = malloc(</text>
<text x="354.0 372.0 390.0 408.0 426.0 444.0" y="450.8" font-family="JetBrains Mono NL" font-size="30" fill="#c0dcff" xml:space="preserve" font-weight="bold">sizeof</text>
<text x="480.0 498.0 516.0 534.0" y="450.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">*n);</text>
<rect x="66.0" y="466.0" width="6.0" height="44.0" fill="#746235"/>
<text x="94.0 112.0" y="498.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">22</text>
<text x="156.0 174.0 192.0 210.0 228.0 246.0 264.0 282.0 300.0 318.0 336.0 354.0 372.0" y="498.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">n-&gt;value = v;</text>
<rect x="66.0" y="514.0" width="6.0" height="44.0" fill="#ae9350"/>
<text x="94.0 112.0" y="546.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">23</text>
<text x="156.0 174.0 192.0 210.0 228.0 246.0 264.0 282.0 300.0 318.0 336.0 354.0 372.0 390.0 408.0 426.0 444.0 462.0 480.0" y="546.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">n-&gt;next = at-&gt;next;</text>
<rect x="66.0" y="562.0" width="724.0" height="44.0" fill="#4a3d1c"/>
<rect x="66.0" y="562.0" width="74.0" height="44.0" fill="#e8c46a"/>
<text x="94.0 112.0" y="594.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">24</text>
<text x="156.0 174.0 192.0 210.0 228.0 246.0 264.0 282.0 300.0 318.0 336.0 354.0 372.0" y="594.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">at-&gt;next = n;</text>
<text x="94.0 112.0" y="642.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">25</text>
<text x="156.0 174.0 192.0 210.0 228.0 246.0" y="642.8" font-family="JetBrains Mono NL" font-size="30" fill="#c0dcff" xml:space="preserve" font-weight="bold">return</text>
<text x="282.0 300.0" y="642.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">n;</text>
<line x1="84.0" y1="676.0" x2="772.0" y2="676.0" stroke="#3a4a8a" stroke-width="2"/>
<text x="86.0" y="706.0" font-family="Go Medium" font-size="22" fill="#6a7ab8" xml:space="preserve">locals</text>
<rect x="84.0" y="724.0" width="12.0" height="46.0" fill="#8a5e0c"/>
<text x="112.0 130.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">at</text>
<text x="182.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="200.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="218.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="236.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="254.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">5</text>
<text x="272.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">5</text>
<text x="290.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">d</text>
<text x="308.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">4</text>
<text x="326.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">a</text>
<text x="344.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">1</text>
<text x="362.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">c</text>
<text x="380.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">0</text>
<text x="398.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">3</text>
<text x="416.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">2</text>
<text x="434.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">a</text>
<text x="452.0" y="757.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">0</text>
<text x="494.0" y="756.1" font-family="Go" font-size="28" fill="#9aa6d9" xml:space="preserve">node 7</text>
<rect x="84.0" y="776.0" width="12.0" height="46.0" fill="#17707c"/>
<text x="112.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">n</text>
<text x="182.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="200.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="218.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="236.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="254.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">5</text>
<text x="272.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">5</text>
<text x="290.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">d</text>
<text x="308.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">4</text>
<text x="326.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">a</text>
<text x="344.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">1</text>
<text x="362.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">c</text>
<text x="380.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">0</text>
<text x="398.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">3</text>
<text x="416.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">2</text>
<text x="434.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">e</text>
<text x="452.0" y="809.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">0</text>
<text x="494.0" y="808.1" font-family="Go" font-size="28" fill="#9aa6d9" xml:space="preserve">node 9</text>
<text x="112.0" y="861.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">v</text>
<text x="182.0" y="861.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">9</text>
<rect x="824.0" y="120.0" width="1032.0" height="48.0" fill="#16245f"/>
<rect x="825.0" y="121.0" width="1030.0" height="238.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<line x1="824.0" y1="168.0" x2="1856.0" y2="168.0" stroke="#3a4a8a" stroke-width="2"/>
<rect x="839.0" y="135.0" width="18.0" height="18.0" fill="none" stroke="#6a7ab8" stroke-width="2"/>
<text x="872.0" y="154.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">the list</text>
<text x="1840.0" y="152.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">what the code means</text>
<rect x="861.0" y="199.0" width="82.0" height="38.0" fill="none" stroke="#9aa6d9" stroke-width="2"/>
<text x="872.0 887.0 902.0 917.0" y="227.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">head</text>
<path d="M944.0,218.0 L1000.0,218.0" fill="none" stroke="#86b6ff" stroke-width="4" stroke-linejoin="round" stroke-linecap="butt"/>
<path d="M1016.0,218.0 L998.0,226.0 L998.0,210.0 Z" fill="#86b6ff"/>
<rect x="1020.0" y="182.0" width="108.0" height="72.0" fill="#8a5e0c"/>
<text x="1063.5" y="230.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">7</text>
<rect x="1130.0" y="182.0" width="70.0" height="72.0" fill="#ff6a4a"/>
<rect x="1158.0" y="211.0" width="14.0" height="14.0" fill="#050a24"/>
<rect x="1464.0" y="182.0" width="108.0" height="72.0" fill="#16245f"/>
<text x="1497.0 1518.0" y="230.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">12</text>
<rect x="1574.0" y="182.0" width="70.0" height="72.0" fill="#111b4a"/>
<path d="M1588,240 L1630,196" fill="none" stroke="#9aa6d9" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/>
<rect x="1242.0" y="278.0" width="108.0" height="72.0" fill="#17707c"/>
<text x="1285.5" y="326.6" font-family="JetBrains Mono NL" font-size="35" fill="#eee6d2" xml:space="preserve">9</text>
<rect x="1352.0" y="278.0" width="70.0" height="72.0" fill="#5a2218"/>
<rect x="1352.0" y="344.0" width="70.0" height="6.0" fill="#ff6a4a"/>
<rect x="1380.0" y="307.0" width="14.0" height="14.0" fill="#86b6ff"/>
<path d="M1179.0,218.0 L1458.0,218.0" fill="none" stroke="#6a7ab8" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
<path d="M1165.0,232.0 L1165.0,302.0 Q1165.0,314.0 1177.0,314.0 L1222.0,314.0" fill="none" stroke="#86b6ff" stroke-width="4" stroke-linejoin="round" stroke-linecap="butt"/>
<path d="M1238.0,314.0 L1220.0,322.0 L1220.0,306.0 Z" fill="#86b6ff"/>
<path d="M1401.0,314.0 L1506.0,314.0 Q1518.0,314.0 1518.0,302.0 L1518.0,274.0" fill="none" stroke="#86b6ff" stroke-width="4" stroke-linejoin="round" stroke-linecap="butt"/>
<path d="M1518.0,258.0 L1526.0,276.0 L1510.0,276.0 Z" fill="#86b6ff"/>
<text x="1022.0 1037.0" y="284.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">at</text>
<text x="1438.0" y="344.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">n</text>
<text x="1668.0" y="226.6" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">the end</text>
<rect x="824.0" y="384.0" width="1032.0" height="48.0" fill="#16245f"/>
<rect x="825.0" y="385.0" width="1030.0" height="502.0" fill="none" stroke="#9aa6d9" stroke-width="2"/>
<line x1="824.0" y1="432.0" x2="1856.0" y2="432.0" stroke="#9aa6d9" stroke-width="2"/>
<rect x="838.0" y="398.0" width="20.0" height="20.0" fill="#e8c46a"/>
<text x="872.0" y="418.0" font-family="Go Medium" font-size="28" fill="#eee6d2" xml:space="preserve">heap</text>
<text x="1840.0" y="416.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">eight bytes a row, as one number · low addresses on top</text>
<rect x="1208.0" y="450.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1222.0" y="450.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1236.0" y="450.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<text x="1264.0" y="461.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve">malloc's own 16 bytes</text>
<text x="932.0 947.0 962.0 977.0" y="498.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">55d4</text>
<text x="992.0 1007.0 1022.0 1037.0" y="498.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">a1c0</text>
<text x="1052.0 1067.0 1082.0 1097.0" y="498.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">32a0</text>
<rect x="1208.0" y="466.0" width="382.0" height="46.0" fill="#16245f"/>
<text x="1255.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1273.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1291.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1309.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1327.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1345.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1363.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1381.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1399.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1417.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1435.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1453.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1471.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1489.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1507.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1525.0" y="499.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">7</text>
<text x="1610.0 1625.0 1640.0 1655.0 1670.0" y="498.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">value</text>
<text x="1700.0 1715.0 1730.0" y="498.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">= 7</text>
<rect x="862.0" y="469.0" width="50.0" height="40.0" fill="#8a5e0c"/>
<text x="872.0 887.0" y="498.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">at</text>
<rect x="916.0" y="466.0" width="6.0" height="106.0" fill="#8a5e0c"/>
<text x="932.0 947.0 962.0 977.0" y="558.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">55d4</text>
<text x="992.0 1007.0 1022.0 1037.0" y="558.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">a1c0</text>
<text x="1052.0 1067.0 1082.0 1097.0" y="558.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">32a8</text>
<rect x="1208.0" y="526.0" width="382.0" height="46.0" fill="#ff6a4a"/>
<text x="1255.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="1273.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="1291.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="1309.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="1327.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">5</text>
<text x="1345.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">5</text>
<text x="1363.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">d</text>
<text x="1381.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">4</text>
<text x="1399.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">a</text>
<text x="1417.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">1</text>
<text x="1435.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">c</text>
<text x="1453.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="1471.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">3</text>
<text x="1489.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">2</text>
<text x="1507.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">e</text>
<text x="1525.0" y="559.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">0</text>
<text x="1610.0 1625.0 1640.0 1655.0" y="558.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">next</text>
<rect x="1208.0" y="594.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1222.0" y="594.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1236.0" y="594.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<text x="932.0 947.0 962.0 977.0" y="642.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">55d4</text>
<text x="992.0 1007.0 1022.0 1037.0" y="642.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">a1c0</text>
<text x="1052.0 1067.0 1082.0 1097.0" y="642.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">32c0</text>
<rect x="1208.0" y="610.0" width="382.0" height="46.0" fill="#16245f"/>
<text x="1255.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1273.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1291.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1309.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1327.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1345.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1363.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1381.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1399.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1417.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1435.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1453.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1471.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1489.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1507.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1525.0" y="643.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">c</text>
<text x="1610.0 1625.0 1640.0 1655.0 1670.0" y="642.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">value</text>
<text x="1700.0 1715.0 1730.0 1745.0" y="642.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">= 12</text>
<text x="932.0 947.0 962.0 977.0" y="702.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">55d4</text>
<text x="992.0 1007.0 1022.0 1037.0" y="702.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">a1c0</text>
<text x="1052.0 1067.0 1082.0 1097.0" y="702.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">32c8</text>
<rect x="1208.0" y="670.0" width="382.0" height="46.0" fill="#16245f"/>
<text x="1255.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1273.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1291.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1309.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1327.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1345.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1363.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1381.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1399.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1417.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1435.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1453.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1471.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1489.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1507.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1525.0" y="703.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">0</text>
<text x="1610.0 1625.0 1640.0 1655.0" y="702.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">next</text>
<text x="1700.0 1715.0 1730.0 1745.0 1760.0 1775.0" y="702.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">= NULL</text>
<rect x="1208.0" y="738.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1222.0" y="738.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1236.0" y="738.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<text x="932.0 947.0 962.0 977.0" y="786.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">55d4</text>
<text x="992.0 1007.0 1022.0 1037.0" y="786.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">a1c0</text>
<text x="1052.0 1067.0 1082.0 1097.0" y="786.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">32e0</text>
<rect x="1208.0" y="754.0" width="382.0" height="46.0" fill="#16245f"/>
<text x="1255.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1273.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1291.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1309.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1327.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1345.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1363.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1381.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1399.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1417.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1435.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1453.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1471.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1489.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1507.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1525.0" y="787.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">9</text>
<text x="1610.0 1625.0 1640.0 1655.0 1670.0" y="786.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">value</text>
<text x="1700.0 1715.0 1730.0" y="786.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">= 9</text>
<rect x="877.0" y="757.0" width="35.0" height="40.0" fill="#17707c"/>
<text x="887.0" y="786.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">n</text>
<rect x="916.0" y="754.0" width="6.0" height="106.0" fill="#17707c"/>
<text x="932.0 947.0 962.0 977.0" y="846.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">55d4</text>
<text x="992.0 1007.0 1022.0 1037.0" y="846.0" font-family="JetBrains Mono NL" font-size="25" fill="#6a7ab8" xml:space="preserve">a1c0</text>
<text x="1052.0 1067.0 1082.0 1097.0" y="846.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve">32e8</text>
<rect x="1208.0" y="814.0" width="382.0" height="46.0" fill="#5a2218"/>
<rect x="1208.0" y="854.0" width="382.0" height="6.0" fill="#ff6a4a"/>
<text x="1255.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1273.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1291.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1309.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text>
<text x="1327.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">5</text>
<text x="1345.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">5</text>
<text x="1363.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">d</text>
<text x="1381.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">4</text>
<text x="1399.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">a</text>
<text x="1417.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">1</text>
<text x="1435.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">c</text>
<text x="1453.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">0</text>
<text x="1471.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">3</text>
<text x="1489.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">2</text>
<text x="1507.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">c</text>
<text x="1525.0" y="847.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">0</text>
<text x="1610.0 1625.0 1640.0 1655.0" y="846.0" font-family="JetBrains Mono NL" font-size="25" fill="#9aa6d9" xml:space="preserve">next</text>
<path d="M1202.0,549.0 L1190.0,549.0 Q1178.0,549.0 1178.0,561.0 L1178.0,621.0 Q1178.0,633.0 1190.0,633.0 L1204.0,633.0" fill="none" stroke="#6a7ab8" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
<path d="M1202.0,837.0 L1168.0,837.0 Q1156.0,837.0 1156.0,825.0 L1156.0,645.0 Q1156.0,633.0 1168.0,633.0 L1188.0,633.0" fill="none" stroke="#86b6ff" stroke-width="4" stroke-linejoin="round" stroke-linecap="butt"/>
<path d="M1204.0,633.0 L1186.0,641.0 L1186.0,625.0 Z" fill="#86b6ff"/>
<path d="M1202.0,549.0 L1146.0,549.0 Q1134.0,549.0 1134.0,561.0 L1134.0,765.0 Q1134.0,777.0 1146.0,777.0 L1188.0,777.0" fill="none" stroke="#86b6ff" stroke-width="4" stroke-linejoin="round" stroke-linecap="butt"/>
<path d="M1204.0,777.0 L1186.0,785.0 L1186.0,769.0 Z" fill="#86b6ff"/>
<rect x="1204.0" y="522.0" width="390.0" height="54.0" fill="none" stroke="#86b6ff" stroke-width="4"/>
<rect x="1204.0" y="810.0" width="390.0" height="54.0" fill="none" stroke="#86b6ff" stroke-width="4"/>
<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">Inserting moves nothing. One word changes: the </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">next</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2"> field of </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">at</tspan></text>
<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">now holds the address of the new node.</tspan></text>
</svg>