From 4862e778af7779bbdb047b9c71adfb62add319b2 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 14:17:43 -0300 Subject: design: the disassembly stays under the source; the graph as a track From the user, on the sort render. Registers a scene never changes fold three to a row, so the stack is twelve to fifteen slots and the disassembly keeps its place under the source with eleven to seventeen rows; a blocks lens has no view. The graph leaves the layered picture of the reverse-engineering tools: blocks are pills on one line in the order they run, a loop an arch over its blocks with the turn count at its centre, every bend a quarter circle; sort's eleven blocks and both loops are seen whole across the band. Sheets 42 and 43 set the layouts and the graph's forms side by side. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/22-graph-sort.svg | 591 ++++++++++++++++++++++-------------------- 1 file changed, 312 insertions(+), 279 deletions(-) (limited to 'design/mock/22-graph-sort.svg') diff --git a/design/mock/22-graph-sort.svg b/design/mock/22-graph-sort.svg index 21d4041..b30ffe4 100644 --- a/design/mock/22-graph-sort.svg +++ b/design/mock/22-graph-sort.svg @@ -1,6 +1,6 @@ - + - + @@ -122,7 +122,7 @@ ] ) { - + 13 swap ( @@ -141,7 +141,7 @@ ] ) ; - + 14 j - @@ -173,281 +173,314 @@ ; 22 } -the map: sort's disassembly as its graph, two columns wide (1024 to 2816), at moment 370 of 465 in sort - - +the map: sort's disassembly as its track, in the second column (1024 to 1904), at the 11th compare + + disassembly · sort -its blocks · visits so far · the edges the run took - - - - -6 - - - - - - - - -11 - - -5 - - -5 - - -×5 - - -×5 - - - -401143 -lines 9 to 10 -×1 -+0 -9 -push -rbp -+1 -mov -rbp, rsp -+4 -sub -rsp, 0x18 -+8 -mov -[rbp - 0x14], edi -+b -10 -mov -[rbp - 8] - - - - -, 1 -+12 -jmp -4011e1 - - - -40115a -lines 11 to 12 -×6 -+17 -11 -mov -eax, [rbp - 8] -+1a -mov -[rbp - 4], eax -+1d -12 -jmp -4011a2 - - - -401162 -lines 13 to 14 -×5 -+1f -13 -mov -eax, [rbp - 4] -+22 -cdqe - -+24 -lea -rdx, [rax*4] -+2c -lea -rax, [rip + 0x2eaa] -+33 -add -rdx, rax -+36 -mov -eax, [rbp - 4] -+39 -sub -eax, 1 -+3c -cdqe - -+3e -lea -rcx, [rax*4] -+46 -lea -rax, [rip + 0x2e90] -+4d -add -rax, rcx -+50 -mov -rsi, rdx -+53 -mov -rdi, rax -+56 -call -401116 - - -swap -+5b -14 -sub -[rbp - 4] - - - - -, 1 - - - -4011a2 -line 12 -×11 -+5f -12 -cmp -[rbp - 4] - - - - -, 0 -+63 -jle -4011dd - - - -4011a8 -line 12 -×11 -+65 -12 -mov -eax, [rbp - 4] -+68 -sub -eax, 1 -+6b -cdqe - -+6d -lea -rdx, [rax*4] -+75 -lea -rax, [rip + 0x2e61] -+7c -mov -edx, [rdx + rax*1] -404030 -◂ -17 -+7f -mov -eax, [rbp - 4] -+82 -cdqe - -+84 -lea -rcx, [rax*4] - -+8c -lea -rax, [rip + 0x2e4a] - -+93 -mov -eax, [rcx + rax*1] -404034 -◂ -5 - -+96 -cmp -edx, eax -17 - : -5 - -zf - sf - of - - - -+98 -jg -401162 -taken - · reads zf sf of - - - -4011dd -line 10 -×5 -+9a -10 -add -[rbp - 8] - - - - -, 1 - - - -4011e1 -line 10 -×6 -+9e -10 -mov -eax, [rbp - 8] -+a1 -cmp -eax, [rbp - 0x14] -+a4 -jl -40115a - - - -4011ed -line 17 -+aa -17 -nop - -+ab -nop - -+ac -leave - -+ad -ret - - - +its blocks · visits · the edges taken · the loops' turns + + + + + + + + + + + + + + + + + + + + + + + + + + +×5 +×5 + + + +401150 +lines 9 to 10 +×1 ++0 +9 +push +rbp ++1 +mov +rbp, rsp ++4 +sub +rsp, 0x10 ++8 +mov +[rbp - 4], edi ++b +10 +mov +[rbp - 8] + + + + +, 1 + + + +401162 +line 10 +×6 ++12 +10 +mov +eax, [rbp - 8] ++15 +cmp +eax, [rbp - 4] ++18 +jge +4011f7 +taken 0 · not 6 + + + +40116e +line 11 +×6 ++1e +11 +mov +eax, [rbp - 8] ++21 +mov +[rbp - 0xc], eax + + + +401174 +line 12 +×11 ++24 +12 +xor +eax, eax ++26 +cmp +[rbp - 0xc] + + + + +, 0 ++2a +mov +[rbp - 0xd], al ++2d +jle +4011a6 +taken 0 · not 11 + + + +40117f +line 12 +×11 ++2f +12 +mov +eax, [rbp - 0xc] ++32 +sub +eax, 1 ++35 +movsxd +rcx, eax ++38 +lea +rax, [rip + 0x2e81] ++3f +mov +eax, [rax + rcx*4] ++42 +movsxd +rdx, [rbp - 0xc] + + + + + ++46 +lea +rcx, [rip + 0x2e73] ++4d +cmp +eax, [rcx + rdx*4] ++50 +setg +al ++53 +mov +[rbp - 0xd], al + + + +4011a6 +line 12 +×11 + ++56 +12 +mov +al, [rbp - 0xd] +7fffffffecd3 +◂ +1 + ++59 +test +al, 1 +1 + : +1 + +zf + + + ++5b +jne +4011af +taken + · reads zf + + + +4011af +lines 12 to 14 +×5 ++5f +13 +mov +eax, [rbp - 0xc] ++62 +sub +eax, 1 ++65 +cdqe + ++67 +lea +rdi, [rip + 0x2e52] ++6e +shl +rax, 2 ++72 +add +rdi, rax ++75 +movsxd +rax, [rbp - 0xc] + + + + + ++79 +lea +rsi, [rip + 0x2e40] ++80 +shl +rax, 2 ++84 +add +rsi, rax ++87 +call +401120 + + +swap ++8c +14 +mov +eax, [rbp - 0xc] ++8f +add +eax, 0xffffffff ++92 +mov +[rbp - 0xc], eax ++95 +12 +jmp +401174 + + + +4011ad +line 12 +×5 ++5d +12 +jmp +4011e7 + + + +4011e7 +line 16 +×5 ++97 +16 +jmp +4011e9 + + + +4011e9 +line 10 +×5 ++99 +10 +mov +eax, [rbp - 8] ++9c +add +eax, 1 ++9f +mov +[rbp - 8], eax ++a2 +jmp +401162 + + + +4011f7 +line 17 ++a7 +17 +add +rsp, 0x10 ++ab +pop +rbp ++ac +ret + + + + +the map's stage ends at 1784 -- cgit v1.3