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/27-pair-store.svg | 218 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 218 insertions(+) create mode 100644 design/mock/27-pair-store.svg (limited to 'design/mock/27-pair-store.svg') diff --git a/design/mock/27-pair-store.svg b/design/mock/27-pair-store.svg new file mode 100644 index 0000000..637f851 --- /dev/null +++ b/design/mock/27-pair-store.svg @@ -0,0 +1,218 @@ + + + + + + +disassembly +asan · line 4, one turn · 17 instructions +523d +1e +4 +cmp +[rbx + 0x64] + + + + +, 0x20 +523d +22 +jl +523d26 +523d +24 +jmp +523d6c +523d +26 +mov +rax, [rbx + 0x18] +7bfff58f0020 +523d +2a +movsxd +rcx, [rbx + 0x64] + + + + + +523d +2e +add +rax, rcx +rax +7bfff58f0023 + + +"AAA" +523d +31 +mov +[rbx], rax +523d +34 +shr +rax, 3 +rax +0xf7ffeb1e004 +523d +38 +mov +al, [rax + 0x7fff8000] +f807eb16004 + + +0 +523d +3e +mov +[rbx + 0xf], al +523d +41 +cmp +al, 0 +0 + : +0 + + +ZF +523d +43 +je +523d5b +taken + · reads ZF +523d45 +mov +cl, [rbx + 0xf] +523d48 +mov +rax, [rbx] +523d4b +and +rax, 7 +523d4f +cmp +al, cl +523d51 +jl +523d5b +523d53 +mov +rdi, [rbx] +523d56 +call +4e8450 +__asan_report_store1 +523d +5b +mov +rax, [rbx] +523d +5e +mov +[rax] + +, 0x41 +7bfff58f0023 + + +0x41 +65 +523d +61 +mov +eax, [rbx + 0x64] +523d +64 +add +eax, 1 +523d +67 +mov +[rbx + 0x64], eax +523d +6a +jmp +523d1e + + + + + + + + + + + + + + + + + + + + +plain · line 4, one turn · 8 instructions +each row facing its counterpart +4011 +4b +4 +cmp +[rbp - 0x14] + + + + +, 0x20 +4011 +4f +jge +401165 +4011 +51 +movsxd +rax, [rbp - 0x14] + + + + + +rax +3 +4011 +55 +mov +[rbp + rax - 0x10] + +, 0x41 +7fffffffecd3 + + +0x41 +65 +4011 +5a +mov +eax, [rbp - 0x14] +4011 +5d +add +eax, 1 +4011 +60 +mov +[rbp - 0x14], eax +4011 +63 +jmp +40114b +the check: plain has nothing here +Plain: one store. ASan: the address, its shadow byte (addr >> 3 + 7fff8000), +a compare with 0, a branch; the partial check and the report only if it is not 0. + -- cgit v1.3