feat(rt): stabilize pointer cast address allocation#1003
Draft
feat(rt): stabilize pointer cast address allocation#1003
Conversation
This was referenced Apr 2, 2026
ba94541 to
3e7d29b
Compare
3e7d29b to
5c19ae0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors the pointer-to-integer work in #1002 into a reviewable red/green history and fixes the remaining symbolic regressions in the address model.
This PR now does four things:
mastercannot prove todayframeId*-failcases into normal passing prove testsImplementation highlights:
<addressMap>/<exposedSet>by stable allocation identity instead of relative stack depthPointerExposeAddressCommit Guide
test(prove): add cross-frame pointer cast reproducermasterfeat(rt): stabilize stack allocation identity for ptr castsfix(rt): recover pointer cast layout from stack slotstest(prove): promote resolved pointer cast regressions*-failexpectationsVerification
Local validation run on the rewritten branch:
uv --directory kmir run pytest src/tests/integration/test_integration.py -v --timeout=600 -k 'alignment-check or interior-mut3 or local-raw or ptr-through-wrapper or ptr-transmute-nonzero or ptr-transmute-two-locals or ptr_offset or raw-ptr-cast or ref-ptr-cast-elem-offset or ref-ptr-cast-elem or ptr-cast-cross-frame-eq'Result:
11 passed, 266 deselectedAdditional proof checks used while validating the migrated regressions:
raw-ptr-cast-fail,ptr-through-wrapper-fail,local-raw-fail,ref-ptr-cast-elem-offset-fail,ref-ptr-cast-elem-fail, andinterior-mut3-failnow each reportProofStatus.PASSEDwithstuck: 0andfailing: 0, which is why they are promoted to normal pass tests in the final commitGitHub Actions on the rewritten history are currently in progress and should be treated as the remaining readiness gate.
Related