Repository navigation
[AUTOMATED] Keep word-addressed stack values numeric without pointer use - #1996
Conversation
Require evidence of a word-space address use before naming an inferred stack-base constant. Cover a CP1600 branch-selected numeric result, retaining explicit pointers and actual memory accesses.
…ters The stack-base guard skipped the function-entry exception that the general word-address rule has: a CP1600 function selecting helper or helper2 into R6 printed v1 = (char *)0x1040 instead of v1 = helper. Both guards now share lacks_word_address_use, which accepts an exact function entry under the function-entry escape's two readings. The selection cases in the stage now run with returndup off. With the return duplicated, each branch returns its constant directly and never passes through R6, so WORD-INDEX Noelo-Lab#5 and Noelo-Lab#6 already passed before the fix. WORD-INDEX Noelo-Lab#7 pins the selected function entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
|
[AUTOMATED] Pushed 34e8dbd on top of your commit, then merged main (xml.rs stays 937; stages baseline re-recorded, +3 assertions).
|
|
[AUTOMATED] No emitted-C regressions found in the MS-DOS A/B ( The 23 images without paired function reports are not covered by the C comparison. The CP1600 stage separately passed 7/7, including the exact-entry case. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
Kuna substitutes C object addresses for numbers selected through CP1600's stack register, even when the function returns an integer and never dereferences either address.
The inferred stack-base type alone no longer qualifies a constant for global-address recovery in a word-addressed space. Explicitly typed pointers and real memory operands retain their names.
The CP1600 stage passed 6/6; compiled C returns
0x65a7or0x65adat-O0and-O2. DecBench (770 binaries) and Debian (146 ELFs across 13 ISAs) showed no A/B differences.Dependency for Carmel (#1936): this keeps numeric stack-address results separate from named DATA objects.
Model:
openai-codex/gpt-6.2-sol