Preserve padded writes to the first structure field #821
Loading…
Reference in a new issue
No description provided.
Delete branch "padded-first-proof-20261119"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preserve padded writes to the first structure field
A padded assignment to the first character field of a structure could be
emitted as an assignment to the entire structure. That changes the compiler's
write width and can overwrite neighboring fields. After translating the whole
module, the emitter now identifies the narrower field only when the complete
direct write and padding are contained in one statement and the proved fields
cover the structure without gaps or overlaps. Known arrays and layouts with
unproved gaps stay unchanged, and the first field must be larger than half the
structure to rule out a repeated-element layout. A whole-structure assignment
remains whole.
The public first-field control changes from a different IBM i object to a
match; the whole-structure control remains a match. Two constant-index array
controls remain unchanged. The proof also refuses malformed or truncated
instruction sequences.
Gate