Published March 1, 2026 | Version 1.0.0
Preprint Open

Empirical Validation of Shadow-Price-Guided Inlining in MIR

  • 1. Chokmah LLC

Description

Full experimental validation of dual decomposition protocol for JIT compiler inlining on the MIR lightweight JIT compiler. Implements a three-phase pipeline: Phase 1 synthetic profiling (execution frequencies derived from benchmark structure), Phase 2 shadow-price-guided mutation pass (MIR_CALL → MIR_INLINE promotion), Phase 3 wall-clock benchmarking across five conditions (no inlining, blind inline-all, random 50%, shadow-price, inverted-price). Includes two benchmark suites (3-function and 8-function workloads), raw timing data (20 runs × 5 conditions per benchmark), statistical analysis (Cohen's d effect sizes), and publication-quality figures (PNG + SVG). Key results: P3 (shadow vs. inverted-price) confirmed with d = 2.65–4.42 across both benchmarks; shadow-price matches blind inline-all performance with half the mutations on the 8-function benchmark (4 vs. 8 promotions, d = −0.02); P1 (shadow vs. random) falsified on 3-function benchmark due to fixed RNG seed. Companion to theory paper (DOI: 10.5281/zenodo.18715390) and Paper 1 empirical consistency results (DOI: 10.5281/zenodo.18735516).

Notes (English)

This research was conducted with AI assistance from multiple large language models operating under the author's direction. Anthropic's Claude (Opus) served as the primary research partner for source code analysis, experimental design review, statistical methodology, and manuscript preparation. Anthropic's Claude (Sonnet) provided independent manuscript review, identifying methodological concerns including the fixed-RNG-seed limitation in the random condition, the oracle nature of synthetic profiling, and the distinction between prospective intervention and post-hoc reinterpretation in the Kelly/TCP analogy; these critiques led to substantive revisions in §5.2, §5.4, and §5.6. Google's Gemini ("Nova the Optimal AI") contributed proof-of-concept code generation, MIR IR construction, and engineering brainstorming. Additional AI systems contributed to early-stage ideation and literature review. All experimental decisions, hypothesis formulation, statistical interpretations, and scientific claims are the sole responsibility of the author. AI contributions are disclosed transparently in accordance with scientific integrity norms.

Files

Empirical Validation of Shadow-Price-Guided Inlining in MIR.pdf

Files (2.7 MB)

Name Size Download all
md5:361a01980be5dd0dacc15089d25ff8ca
329.3 kB Preview Download
md5:949f57b4b63b06e40aaa520b0b6579ba
136.1 kB Preview Download
md5:bc9cc7144690c3fdb6bd84cd693e7744
49.8 kB Download
md5:fa4e3518119396e92ed6564597933b2a
147.4 kB Preview Download
md5:39dcc62ed1bb4861ea1e27c41890a9b2
74.4 kB Download
md5:3a02476717fe4dea6a42052b01e2cafa
144.9 kB Preview Download
md5:c37ca5be853c7ce118f0526d7d150971
63.2 kB Download
md5:68a4b2fde3e8115aee6e70188ee704c9
294.5 kB Preview Download
md5:6b1efb7e77072b3253a007c8e5efc418
69.2 kB Download
md5:4b32e967e2535a5de1a9bac4b89ace81
142.2 kB Preview Download
md5:ec8079b944ebdce44165fe62525b77e1
63.0 kB Download
md5:001bd8d80f1cdde0cd92109a4d8db9d1
107.2 kB Preview Download
md5:832b6a3ed156eea6ca359b594745afa4
54.1 kB Download
md5:07e95cb943eb54918c86ee340dbacd64
161.5 kB Preview Download
md5:ec6d900b96c59c13083ab245642bbe47
84.1 kB Download
md5:97200b70bc4e90fab433dded1db10f11
136.4 kB Preview Download
md5:e9aa00179fc934819265b71245e4d049
59.4 kB Download
md5:53b795f41ba410257f9f83981bfbeb72
135.5 kB Preview Download
md5:3a8e61ceb2bcc7cf2cbb7a55b90bb736
66.2 kB Download
md5:9333dba9c8219ed63068a41462fe0e49
218.7 kB Preview Download
md5:e7947becb88081e216b296d17537cb02
125.6 kB Download

Additional details

Identifiers

Other
chokmah-mir-paper2-2026

Related works

Describes
Dataset: 10.5281/zenodo.18890028 (DOI)
Is source of
Software: https://github.com/chokmah-me/mir-num-experiment/tree/master/phase-2-poc (URL)
Is supplemented by
Preprint: 10.5281/zenodo.18715390 (DOI)
Is version of
Preprint: 10.5281/zenodo.18735516 (DOI)

Dates

Created
2026-03-01
Paper 2 data accompanies companion theory paper (Zenodo DOI: 10.5281/zenodo.18715390) and extends Paper 1's consistency validation into productivity validation via end-to-end dual decomposition protocol. Windows-based development, experiments w VirtuaBox Ubuntu with MIR JIT compiler v3.9.5+. Reproducible via GitHub repository.

Software

Repository URL
https://github.com/chokmah-me/mir-num-experiment/
Programming language
C , Python
Development Status
Active