#!/usr/bin/env bash # measure.sh — re-runs cycle 07's measurements. Instruments only, no new ones. set -uo pipefail cd "$(git rev-parse --show-toplevel)" echo "CYCLE 07 — the caller was already there" echo "claim: exactly three seam emission points, all keyed on fn_name" echo echo "-- emission points, counted in the BUILT ARTIFACT, not in source text." echo " (the original assertion grepped codegen.el while the harness ran a" echo " prebuilt compiler, so it measured a file with no causal link to the" echo " binary under test. see notebook v2 E003.)" strings /tmp/el-mut-build/elc 2>/dev/null | grep -cE '^(entry|wrap|exit)$' | xargs -I{} echo " seam phase strings in binary: {}" grep -oE 'el_seam_(run|wrap)\(' lang/el-compiler/src/codegen.el | sort | uniq -c | sed 's/^/ source: /' echo echo "-- compiler size, cloc (calibrated transfer standard):" cloc --force-lang=C --quiet --csv lang/el-compiler/src/codegen.el 2>/dev/null | tail -1 | awk -F, '{print " codegen.el blank "$3" comment "$4" code "$5}'