Skip to content

fix(pointer-casts): support array-to-wrapper projections#1014

Closed
Stevengre wants to merge 2 commits intomasterfrom
codex/20260403-ptr-wrapper-casts
Closed

fix(pointer-casts): support array-to-wrapper projections#1014
Stevengre wants to merge 2 commits intomasterfrom
codex/20260403-ptr-wrapper-casts

Conversation

@Stevengre
Copy link
Copy Markdown
Contributor

Summary

  • relax transparent-wrapper pointee projection so array-to-wrapper pointer casts can advance
  • cover wrapper, nested-wrapper, and singleton-wrapped-array pointer cast regressions with one shared semantic fix

Test plan

  • cd kmir && uv run pytest src/tests/integration/test_integration.py -k "ptr-cast-array-to-wrapper-fail or ptr-cast-array-to-nested-wrapper-fail or ptr-cast-array-to-singleton-wrapped-array-fail or ptr-through-wrapper-fail or raw-ptr-cast-fail or ref-ptr-cast-elem-fail or ref-ptr-cast-elem-offset-fail or pointer-cast-length-test-fail" -q

@Stevengre
Copy link
Copy Markdown
Contributor Author

Closing: the array-to-wrapper pointer cast regressions this PR targeted are addressed by #1003 (stable address allocation model). The semantic rule changes here had no observable effect on the claimed test cases — all 8 proofs stuck at the same thunk(#cast(...)) point with identical proof trees before and after the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant