Can Large Language Models Understand Intermediate Representations in Compilers?
ELVIA analysis
Independent review pending
Two supported Problems are identified. A Major construct-validity problem affects the execution-reasoning task: on the intended domain of valid reference-program tests, a constant `pass` predictor attains perfect label accuracy without inspecting the intermediate representation. This limits what the reported success rates can establish about execution understanding. A Minor reporting problem concerns inconsistent counts, denominators, and pass rates. Concrete examples of incorrect model reasoning remain informative, and the other three tasks are not invalidated by the shortcut. Historical model identity, evaluation scripts, unmatched completion sets, and missing result payloads are recorded as evidence limits rather than inferred experimental failures.
Problem 1. valid reference assertions admit a perfect label-only shortcut
MajorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
valid reference assertions admit a perfect label-only shortcut.
Valid reference-program unit tests, semantics-preserving compilation on relevant inputs, and quantitative final-label scoring; intended golden-data domain. No global execution validation of all reference programs is claimed.
Proof
Claim and location. Section 3.1, p. 3, describes Task as requiring dynamic interpretation of IR and accurate tracking of state. Section 3.5, p. 5, scores assertion predictions; Section 4.3, pp. 7–8, uses these scores to interpret execution understanding and the source-code/IR gap. Appendix C.4, p. 16, supplies IR and an assertion and requests a pass/fail answer with reasoning. Sections 3.3 and Appendix D identify the inputs as reference C++ programs and their HumanEval unit tests.
Construction and assumptions. Cell of `src/Task4_Execute_Reasoning.ipynb` extracts lines beginning with `assert` from each JSONL record’s `test` field. It does not generate false assertions or mutate the tested reference program. The acquired file contains distinct tasks; that exact line-selection rule yields assertion lines, with at least one per task. This is a static inventory, not an execution audit. The paper’s stated average of assertions and the inventory’s require historical dataset reconciliation; neither number is silently substituted for the other.
The decisive argument assumes that these assertions are valid tests of their canonical reference implementations, that compilation preserves the relevant semantics, and that the quantitative score judges the final pass/fail label. These are the intended golden-data and scoring premises of the published design. No stronger assertion that all programs were independently executed is made.
Decisive argument. Let be test of reference program with ground-truth label Under those premises, for every supplied test. The predictor ignores both inputs yet has Thus both assertion-level accuracy and all-assertions-correct task accuracy can be perfect without any IR understanding. The result is independent of which of the two inconsistent rate definitions in Problem 2 is selected.
Three concrete cases were checked by direct reasoning from the pinned records. In CPP/2, exactly representable. In CPP/121, the odd values at even positions of are and giving the asserted In CPP/149, filtering odd-length strings from leaves only `aa`. These cases agree with the intended positive-test construction; they are not offered as a proof of every program’s correctness.
Alternative readings and counterevidence. An assertion testing that a Boolean function returns false is still a true assertion when its reference implementation is correct. It therefore does not supply a negative label for this task. Requesting a reasoning trace also does not remove () from a label-only score. The notebook’s cells and extract a pass/fail string; the reported quantitative metric does not independently verify every intermediate state.
Conversely, a model that answers incorrectly on a valid positive test has made a real prediction error. The paper’s qualitative examples of missed filtering or incorrect arithmetic remain useful evidence about those particular traces. This review does not claim that the tested models exploited the shortcut, that their recorded scores are fabricated, or that all their qualitative analyses fail. If the actual historical evaluation contains genuinely false oracle labels, its case-level labels and construction must be supplied; the retained construction does not document such a negative-test mechanism. Invalid canonical tests would instead call for an oracle audit.
Core dependency and precise impact. The construction underlies one of four core tasks and the RQ3 interpretation of measured execution reasoning. It demonstrates that high success, or a source-code/IR difference in such success, cannot by itself discriminate instruction-level understanding from a representation-dependent tendency to answer `pass`. The observed positive-case error rates remain descriptive. CFG, decompilation, and summarization results are outside this counterexample. The Major severity attaches to the task’s ability to measure its stated core construct, not to a claimed collapse of the whole study.
Possible revision
Add verified false assertions/counterfactual programs, report balance/constant baseline and independently verify selected execution states. Balanced assertion labels limit constant accuracy to1/2, removing this shortcut only; new measurements needed.
Problem 2. incompatible execution counts and pass-rate definitions
MinorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
incompatible execution counts and pass-rate definitions.
Under Table5 completed-task denominator, full-pass rate is pass/completed; assertion-weighted alternative considered separately.
Proof
Claim and location. Section 3.5, p. 5, defines overall pass rate using correctly predicted assertions across cases. Table 5, p. 7, instead says its denominator is the number of completed tasks and presents full-pass counts. Table 9, p. 17, repeats the counts and rates for three runs. The original pages were visually inspected to exclude an extraction artifact.
Arithmetic under the table definition. For a completed-task denominator, full-pass rate is Independent exact-fraction calculation gives: The first, third, and fourth discrepancies are approximately and percentage points, respectively, far larger than rounding at the displayed precision. Run is a useful countercheck that the ratio interpretation is numerically consistent for an adjacent row. Table 9 also prints as for Llama ordinary rounding to three decimals gives
Alternative reading. An assertion-weighted rate need not equal the proportion of fully correct programs. That reading could explain some numerical differences, but would contradict Table 5’s stated denominator and cannot be reconstructed from its pass/partial counts without per-case assertion totals and correct-label counts. Thus at least one of the definition, counts, or reported rates needs correction; the evidence does not identify the intended replacement for every cell.
Dependency, impact, and correction. These numbers feed Section 4.3’s quantitative comparisons and Appendix E’s stability claim. The appendix’s DeepSeek SC counts exceed Code Llama’s main-table count of whereas the main text calls Code Llama the SC leader. Different runs or metrics might explain this, but the historical mapping is not supplied. Repair requires a case-level ledger and a declared aggregation rule, not choosing whichever number supports a ranking. Under the displayed alternative full-pass counts, the broad SC-over-IR direction still holds; this arithmetic finding alone does not reverse that direction or invalidate the other tasks. Its supported severity is Minor.
Possible revision
Publish case-level ledger, map runs to main tables, declare aggregation denominator and recompute consistently.
Supporting record & provenance
Work status
Current version
Version 1
Minhao Liu · Initial report · Version 1
Independent review pending
Original claim and review scope
Among these, we distinguish between re-execution success (all assertions pass) and re-execution mismatch (at least one assertion fails).
Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 5
Actual review scope
The recorded inspection concerns these source locations: Section 3.1 p. 3 Task4 necessity of dynamic interpretation; Section 3.5 p. 5 metric; Section 4.3 pp. 7-8 RQ3; AppendixC.4/D p. 16; Task4 notebook cells0,4,7; Section 3.5 p. 5 definition; Table 5 p. 7 and Table 9 p. 17, visually checked.