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
|
<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"/>
<rect x="64.0" y="48.0" width="1792.0" height="24.0" fill="#16245f"/>
<rect x="65.0" y="49.0" width="1790.0" height="534.0" fill="none" stroke="#9aa6d9" stroke-width="2"/>
<rect x="72.0" y="54.0" width="12.0" height="12.0" fill="#e8c46a"/>
<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#eee6d2" xml:space="preserve">list.c · reverse</text>
<text x="1846.0" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">each line, then the instructions it compiled to · lines and addresses in one column</text>
<rect x="66.0" y="76.0" width="1788.0" height="2.0" fill="#3a4a8a"/>
<rect x="66.0" y="78.0" width="1788.0" height="22.0" fill="#16245f"/>
<text x="172.0 184.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">20</text>
<text x="220.0 232.0 244.0 256.0 268.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">while</text>
<text x="292.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text>
<text x="304.0 316.0 328.0 340.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text>
<text x="352.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text>
<text x="376.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">{</text>
<text x="112.0 124.0 136.0 148.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">910</text>
<text x="244.0 256.0 268.0 280.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">test</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rdi</text>
<text x="112.0 124.0 136.0 148.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">913</text>
<text x="244.0 256.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">je</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1001935</text>
<text x="112.0 124.0 136.0 148.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">915</text>
<text x="244.0 256.0 268.0 280.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">push</text>
<text x="328.0 340.0 352.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp</text>
<text x="112.0 124.0 136.0 148.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">916</text>
<text x="244.0 256.0 268.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp, rsp</text>
<text x="112.0 124.0 136.0 148.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">919</text>
<text x="244.0 256.0 268.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, eax</text>
<text x="112.0 124.0 136.0 148.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">91b</text>
<text x="244.0 256.0 268.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">nop</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">[rax + rax]</text>
<text x="112.0 124.0 136.0 148.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">920</text>
<text x="244.0 256.0 268.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rcx, rax</text>
<text x="112.0 124.0 136.0 148.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">923</text>
<text x="244.0 256.0 268.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="287.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, rdi</text>
<rect x="66.0" y="292.0" width="1788.0" height="2.0" fill="#3a4a8a"/>
<rect x="66.0" y="294.0" width="1788.0" height="22.0" fill="#16245f"/>
<rect x="146.0" y="294.0" width="50.0" height="22.0" fill="#e8c46a"/>
<text x="172.0 184.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">21</text>
<text x="220.0 232.0 244.0 256.0 268.0 280.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">struct</text>
<text x="304.0 316.0 328.0 340.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">node</text>
<text x="364.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">*</text>
<text x="376.0 388.0 400.0 412.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text>
<text x="436.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text>
<text x="460.0 472.0 484.0 496.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text>
<text x="508.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-</text>
<text x="520.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">></text>
<text x="532.0 544.0 556.0 568.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text>
<text x="580.0" y="311.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text>
<rect x="66.0" y="316.0" width="1788.0" height="24.0" fill="#222742"/>
<rect x="66.0" y="316.0" width="24.0" height="24.0" fill="#e8c46a"/>
<path d="M84,328 l-10,-6 v12 Z" fill="#050a24"/>
<text x="112.0 124.0 136.0 148.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">926</text>
<text x="244.0 256.0 268.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, [rdi + 8]</text>
<text x="964.0 976.0 988.0 1000.0 1012.0 1024.0 1036.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004098</text>
<rect x="1054.0" y="327.0" width="11.0" height="2.0" fill="#6a7ab8"/>
<path d="M1072,328 l-8,-5 v10 Z" fill="#6a7ab8"/>
<text x="1078.0 1090.0 1102.0 1114.0 1126.0 1138.0 1150.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">1004070</text>
<path d="M1168,328 l8,-5 v10 Z" fill="#6a7ab8"/>
<rect x="1175.0" y="327.0" width="11.0" height="2.0" fill="#6a7ab8"/>
<text x="1192.0" y="335.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">9</text>
<rect x="66.0" y="340.0" width="1788.0" height="2.0" fill="#3a4a8a"/>
<rect x="66.0" y="342.0" width="1788.0" height="22.0" fill="#16245f"/>
<text x="172.0 184.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">22</text>
<text x="220.0 232.0 244.0 256.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text>
<text x="268.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-</text>
<text x="280.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">></text>
<text x="292.0 304.0 316.0 328.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text>
<text x="352.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text>
<text x="376.0 388.0 400.0 412.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">prev</text>
<text x="424.0" y="359.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text>
<text x="112.0 124.0 136.0 148.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">92a</text>
<text x="244.0 256.0 268.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="383.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rax + 8], rcx</text>
<rect x="66.0" y="388.0" width="1788.0" height="2.0" fill="#3a4a8a"/>
<rect x="66.0" y="390.0" width="1788.0" height="22.0" fill="#0a1030"/>
<text x="172.0 184.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">20</text>
<text x="220.0 232.0 244.0 256.0 268.0 280.0 292.0 304.0 316.0 328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0 544.0 556.0 568.0 580.0 592.0 604.0 616.0 628.0 640.0 652.0 664.0" y="407.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">while (head) { again: its second run</text>
<text x="112.0 124.0 136.0 148.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">92e</text>
<text x="244.0 256.0 268.0 280.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">test</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="431.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rdi</text>
<text x="112.0 124.0 136.0 148.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">931</text>
<text x="244.0 256.0 268.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jne</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0" y="455.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1001920</text>
<text x="112.0 124.0 136.0 148.0" y="479.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="479.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">933</text>
<text x="244.0 256.0 268.0" y="479.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">pop</text>
<text x="328.0 340.0 352.0" y="479.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp</text>
<rect x="66.0" y="484.0" width="1788.0" height="2.0" fill="#3a4a8a"/>
<rect x="66.0" y="486.0" width="1788.0" height="22.0" fill="#16245f"/>
<text x="172.0 184.0" y="503.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">26</text>
<text x="220.0 232.0 244.0 256.0 268.0 280.0" y="503.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">return</text>
<text x="304.0 316.0 328.0 340.0" y="503.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">prev</text>
<text x="352.0" y="503.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text>
<text x="112.0 124.0 136.0 148.0" y="527.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="527.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">934</text>
<text x="244.0 256.0 268.0" y="527.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text>
<text x="" y="527.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"></text>
<text x="112.0 124.0 136.0 148.0" y="551.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="551.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">935</text>
<text x="244.0 256.0 268.0" y="551.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text>
<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="551.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, eax</text>
<text x="112.0 124.0 136.0 148.0" y="575.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">1001</text>
<text x="160.0 172.0 184.0" y="575.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">937</text>
<text x="244.0 256.0 268.0" y="575.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text>
<text x="" y="575.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"></text>
<rect x="66.0" y="580.0" width="1788.0" height="2.0" fill="#3a4a8a"/>
<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">Line 20, </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">while (head)</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, comes twice: its test before the body and</tspan></text>
<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">again after it. Lines 23 to 25 have no code of their own: no group.</tspan></text>
</svg>
|