You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix traverseProjection invariant violations flagged in adversarial review
Three targeted fixes for issues identified during Codex adversarial review:
1. Generalize Range-head descent into a single #projectsHead rule instead of
two specialized Range+Field(Aggregate)/Range+Field(Union) rules. The new
rule separates Range-head descent from scalar projection application,
making the traversal closed under Field, Downcast, Deref, and WrapStruct
projections on Range head elements.
2. Fix from-end ConstantIndex to read getValue(ELEMENTS, MINLEN - OFFSET)
instead of getValue(ELEMENTS, OFFSET), so the read index is consistent
with the write-back context and path reconstruction.
3. Replace ad hoc #consumeNoOpArg rules with delegation to normal operand
evaluation via #discardNoOpResult. This ensures projected Move/Copy
operands in NoOp calls traverse projections correctly and only invalidate
the precise subplace instead of the entire base local.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments