From 6142fa676731e158622ca7956c150c58bc57f1f2 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 10:38:37 -0300 Subject: design: the graph of a function's blocks; two runs as a pair From the user. The disassembly's alternate form at a larger scale is the graph of its basic blocks: a block a box of rows with its offset, lines and visit count; execution flows down and a back edge is the one thing that climbs, in its loop's lane with the turn count; what the run never reached folds away. On the map it takes the disassembly's place; in the working frame a blocks lens draws its shape and the rows are its view. Verbs leave and turn carry the mark along an edge. Two runs of one program share a frame as a pair: the seam is the gutter, the source shared above, rows only one run has and values that differ marked at the seam. The scene it is made for sets a plain build against an ASan one in a stack overflow: the frame beside its shadow bytes, the store beside its check, and the step where they part. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/sort-O0.dis | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 design/mock/sort-O0.dis (limited to 'design/mock/sort-O0.dis') diff --git a/design/mock/sort-O0.dis b/design/mock/sort-O0.dis new file mode 100644 index 0000000..c159f50 --- /dev/null +++ b/design/mock/sort-O0.dis @@ -0,0 +1,61 @@ +0000000000401143 : +sort(): +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:9 + 401143: push rbp + 401144: mov rbp,rsp + 401147: sub rsp,0x18 + 40114b: mov DWORD PTR [rbp-0x14],edi +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:10 + 40114e: mov DWORD PTR [rbp-0x8],0x1 + 401155: jmp 4011e1 +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:11 + 40115a: mov eax,DWORD PTR [rbp-0x8] + 40115d: mov DWORD PTR [rbp-0x4],eax +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:12 + 401160: jmp 4011a2 +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:13 + 401162: mov eax,DWORD PTR [rbp-0x4] + 401165: cdqe + 401167: lea rdx,[rax*4+0x0] + 40116f: lea rax,[rip+0x2eaa] # 404020 + 401176: add rdx,rax + 401179: mov eax,DWORD PTR [rbp-0x4] + 40117c: sub eax,0x1 + 40117f: cdqe + 401181: lea rcx,[rax*4+0x0] + 401189: lea rax,[rip+0x2e90] # 404020 + 401190: add rax,rcx + 401193: mov rsi,rdx + 401196: mov rdi,rax + 401199: call 401116 +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:14 + 40119e: sub DWORD PTR [rbp-0x4],0x1 +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:12 (discriminator 1) + 4011a2: cmp DWORD PTR [rbp-0x4],0x0 + 4011a6: jle 4011dd +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:12 (discriminator 2) + 4011a8: mov eax,DWORD PTR [rbp-0x4] + 4011ab: sub eax,0x1 + 4011ae: cdqe + 4011b0: lea rdx,[rax*4+0x0] + 4011b8: lea rax,[rip+0x2e61] # 404020 + 4011bf: mov edx,DWORD PTR [rdx+rax*1] + 4011c2: mov eax,DWORD PTR [rbp-0x4] + 4011c5: cdqe + 4011c7: lea rcx,[rax*4+0x0] + 4011cf: lea rax,[rip+0x2e4a] # 404020 + 4011d6: mov eax,DWORD PTR [rcx+rax*1] + 4011d9: cmp edx,eax + 4011db: jg 401162 +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:10 (discriminator 1) + 4011dd: add DWORD PTR [rbp-0x8],0x1 +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:10 (discriminator 2) + 4011e1: mov eax,DWORD PTR [rbp-0x8] + 4011e4: cmp eax,DWORD PTR [rbp-0x14] + 4011e7: jl 40115a +/home/goblin/00-projects/0x4200.cafe/01-computeranim/anim/tools/sort.c:17 + 4011ed: nop + 4011ee: nop + 4011ef: leave + 4011f0: ret + -- cgit v1.3