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/23-graph-open.svg | 229 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 229 insertions(+) create mode 100644 design/mock/23-graph-open.svg (limited to 'design/mock/23-graph-open.svg') diff --git a/design/mock/23-graph-open.svg b/design/mock/23-graph-open.svg new file mode 100644 index 0000000..f6154e7 --- /dev/null +++ b/design/mock/23-graph-open.svg @@ -0,0 +1,229 @@ + + + +the map: libc's open as its graph · 19 blocks, the run reached 8 so far; the 11 it never reached are folded into five boxes + + + +disassembly · open · libc.so.6 +no source · 19 blocks · folded: 11 never reached + + + + +1 + + + + +1 + + + + +1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +7ffff7d10ec0 +×1 ++0 +endbr64 + ++4 +push +rbp ++5 +mov +rbp, rsp ++8 +sub +rsp, 0x70 ++c +mov +[rbp - 0x30], rdx ++10 +mov +rax, fs:0x28 ++19 +mov +[rbp - 0x48], rax ++1d +xor +eax, eax ++1f +test +sil, 0x40 ++23 +jne +7ffff7d10f90 + + + +7ffff7d10ee9 +×1 ++29 +mov +eax, esi ++2b +xor +r10d, r10d ++2e +not +eax ++30 +test +eax, 0x410000 ++35 +je +7ffff7d10f90 + + + +7ffff7d10efb +×1 ++3b +mov +r11, fs:0x10 ++44 +movsxd +rdx, esi ++47 +mov +eax, [r11 + 0x308] ++4e +cmp +[rip + 0x11018b] + +, 0 ++55 +jne +7ffff7d10fb0 + + + +7ffff7d10fb0 +×1 ++f0 +mov +rsi, rdi ++f3 +xor +r9d, r9d + ++f6 +xor +r8d, r8d + ++f9 +mov +rdi, 0xffffffffffffff9c + ++100 +mov +eax, 0x101 + + + ++105 +syscall + +openat + nr 257 ++107 +mov +rdx, rax + + + +7ffff7d10fca ++10a +cmp +rax, 0xfffffffffffff000 ++110 +ja +7ffff7d10fe8 + + + +7ffff7d10fd2 ++112 +mov +eax, edx + + + +7ffff7d10fd4 ++114 +mov +rdx, [rbp - 0x48] ++118 +sub +rdx, fs:0x28 ++121 +jne +7ffff7d10fec + + + +7ffff7d10fe3 ++123 +leave + ++124 +ret + + + + + ++d0 to +eb +never reached +the O_CREAT path: the mode from the varargs + + ++5b to +b3 +4 blocks never reached +multi-threaded: a cancellable call + + ++128 to +cd +3 blocks never reached +an error: errno set, -1 returned + + ++136 to +149 +2 blocks never reached +cancelled + + ++12c to +130 +2 blocks never reached +the canary broken + -- cgit v1.3