Repository navigation
[AUTOMATED] Keep numeric word indexes separate from pointers - #1990
Conversation
An exact symbol match in a word-addressed space is insufficient to treat an integer as a C object address. Keep typed pointers and proven address uses eligible.
… spaces The address-use requirement also dropped function pointers: on AVR, a callback passed to an undeclared registration function (reg(1, isr_b)) printed as its word address instead of the function's name. A C function pointer on these targets is the entry's word address, so an exact function entry is accepted on the same two readings as the function-entry escape (the reader is not arithmetic and the function reads the value as a number nowhere else). Data symbols still need address-use evidence. 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 cf3dfdd on top of your commit, then merged main (xml.rs 935, stages baseline re-recorded, +4 assertions). The address-use requirement also dropped function pointers in word-addressed code spaces. On AVR ( |
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] Rechecked |
Main moved to 64a81b6 (Noelo-Lab#1990 added a stage). The corpus count auto-merges to 936, and docs/baseline-stages.json is re-recorded on the merged tree: 5,542 assertions, main's 5,540 plus this PR's two new elfv1-symbolextent assertions. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
A CP1600 function returning the number
0x65a7instead returns the address of a global if that global happens to occupy word0x65a7.Before:
return (unsigned short)&cell;. After:return 0x65a7;.Require address-use evidence before inferring a pointer in a word-addressed space. The CP1600 stage case also checks a typed pointer and an indirect load. DecBench (770 binaries) and multi-ISA Debian (146 binaries, 13 ABIs) showed no differences.
Dependency for the Carmel PR (#1936): returning an updated DATA word index must preserve the integer, not take a C object address.
Model:
openai-codex/gpt-6.2-sol