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/overflow.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 design/mock/overflow.c (limited to 'design/mock/overflow.c') diff --git a/design/mock/overflow.c b/design/mock/overflow.c new file mode 100644 index 0000000..bbd9a73 --- /dev/null +++ b/design/mock/overflow.c @@ -0,0 +1,10 @@ +// A loop writes 32 bytes into a 16-byte stack buffer. +__attribute__((noinline)) static void fill(void) { + char buf[16]; + for (int i = 0; i < 32; i++) buf[i] = 'A'; +} + +int main(void) { + fill(); + return 0; +} -- cgit v1.3