coolblaze03 commited on
Commit
1dabd6c
·
verified ·
1 Parent(s): 2a52d7d

docs: disclose that the ast.unparse rewrite changes the compiled bytecode on 1 of 383 rows (src/00117.py, MBPP task_id 757) — co_code identical on all 383, set remains sound since reference and .pyc come from the same normalised string

Browse files
Files changed (1) hide show
  1. README.md +15 -0
README.md CHANGED
@@ -98,6 +98,21 @@ Each reference solution was rewritten through `ast.unparse` — normalising away
98
  comments and redundant parentheses — then compiled to a `.pyc` at `optimize=0` and paired with a
99
  disassembly of the resulting code object. Task text and tests are unmodified.
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  ## Harness soundness on this set
102
 
103
  `grade.py --self-test-only`: pre-flight **383/383 = 100%**, mutation kill rate **199/199 = 100%**,
 
98
  comments and redundant parentheses — then compiled to a `.pyc` at `optimize=0` and paired with a
99
  disassembly of the resulting code object. Task text and tests are unmodified.
100
 
101
+ **That rewrite changes the compiled bytecode on 1 of the 383 rows.** CPython 3.12 inlines
102
+ comprehensions (PEP 709) and emits a cleanup entry in the exception table for the inlined scope;
103
+ how the comprehension is *line-wrapped* changes that entry. In `src/00117.py` (MBPP `task_id`
104
+ 757) the original solution wraps a nested comprehension across lines, so its bytecode differs
105
+ from the normalised form shipped here. The instruction stream `co_code` is identical on all 383
106
+ rows; this row differs only in that exception-table entry.
107
+
108
+ The row is a valid decompilation task and the benchmark remains sound: for all 383 rows the
109
+ reference source and the `.pyc` are compiled from **the same** normalised string, which is the
110
+ condition the oracle needs. What the row is not is byte-identical to upstream MBPP — hence this
111
+ note. Re-deriving it from the original would put that solution's tab continuations and trailing
112
+ whitespace into the reference and make the label an unstable target, so it is documented instead.
113
+ Measured with `tools/measure_format_ceiling.py`; the general limit is in
114
+ `../../EVAL.md` §6.
115
+
116
  ## Harness soundness on this set
117
 
118
  `grade.py --self-test-only`: pre-flight **383/383 = 100%**, mutation kill rate **199/199 = 100%**,