From 647265d979fb3aca08451eafc7abdb0116ab82db Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 24 Jun 2026 17:38:08 -0400 Subject: [PATCH] docs(audit): re-measure effective codepaths after migration --- .../measure_codepaths.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/tier2/artifacts/code_path_audit_phase_2_20260624/measure_codepaths.py diff --git a/scripts/tier2/artifacts/code_path_audit_phase_2_20260624/measure_codepaths.py b/scripts/tier2/artifacts/code_path_audit_phase_2_20260624/measure_codepaths.py new file mode 100644 index 00000000..02f7eca3 --- /dev/null +++ b/scripts/tier2/artifacts/code_path_audit_phase_2_20260624/measure_codepaths.py @@ -0,0 +1,12 @@ +import sys +sys.path.insert(0, ".") +from src.code_path_audit import build_pcg +from src.code_path_audit_ssdl import compute_effective_codepaths, count_branches_in_function + +pcg_result = build_pcg("src") +pcg = pcg_result.data +metadata_consumers = pcg.consumers.get("Metadata", []) +total = sum(2 ** count_branches_in_function(f, "src") for f in metadata_consumers) +print(f"Effective codepaths: {total:.3e}") +print(f"Baseline (master): 4.014e+22") +print(f"Drop: {(4.014e22 - total) / 4.014e22 * 100:.4f}%")