-
Notifications
You must be signed in to change notification settings - Fork 4
feat: model interior borrows for refcell #786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
8a72058
chore: add test for std refcell
Stevengre 9f82eec
chore: add simple test for one struct casting
Stevengre c2d6862
chore: update state without thunk and any modification
Stevengre 28cf9d5
feat: support UnsafeCell cast to Int
Stevengre 93cad6f
chore: new passed prove-rs/local-raw-fail.rs test
Stevengre fa24d9b
fix: closure_access_struct failure
Stevengre ede664c
chore: make format
Stevengre 55237eb
chore: remove passed test expected
Stevengre 21f5034
chore: update expected state
Stevengre 537b584
chore: update test pass status
Stevengre c525218
chore: update test pass status
Stevengre f270fe8
chore: add more test for the semantics
Stevengre c25f259
chore: update test_integration.py
Stevengre 2093f58
feat: support reverse transparent struct cast
Stevengre a313ead
feat: refine transparent alignment handling
Stevengre 1057a44
update expected output
Stevengre d3d93ca
feat: solve interior-mut3-fail.rs
Stevengre 8d95126
feat: provide more information for functions without body
Stevengre 46e791a
feat(not-ready)
Stevengre 4b3ba64
chore: interior-mut shouldn't fail with this pr
Stevengre e319042
chore: add comments
Stevengre 96dc111
feat: support ZSTs
Stevengre e4b482c
chore: interior-mut3 should pass
Stevengre 430dd93
fix: adjust stack projection writes
Stevengre 6cb7e3f
feat: support cast from bytes to int
Stevengre e5f30b7
feat: support ref borrow (need to optimize)
Stevengre 0a78bae
feat: support cast from int to bytes
Stevengre d0c1793
restore stable-mir-json
Stevengre 08389d0
chore: format
Stevengre 2e1aeb1
feat: add #withPointerOffset to support projections' pointer offset
Stevengre 1b24944
feat: enhance interior mutability handling in projections
Stevengre 5ca54b5
refactor: remove unused NormalSym population logic in _functions
Stevengre 4683341
feat: simplify borrow cell increment and decrement logic for interior…
Stevengre a8b3258
feat: add handling for pointer realignment across transparent wrapper…
Stevengre f1c3005
feat: initialize zero-sized locals for borrowing to ensure projection…
Stevengre d94197b
feat: streamline alignment rule for struct types in #alignOf function
Stevengre d45a24a
feat: update expected output for pointer cast length test and symboli…
Stevengre 69a4efd
feat: add comment for pointer transmutation test and correctness check
Stevengre eb83742
feat: add static array checks for transmute operations in MIR execution
Stevengre b13b312
feat: refactor type identification for Ref and RefMut in type metadata
Stevengre d3b81e1
feat: update expected step count in crate2::test_crate1_with test
Stevengre 716dc16
feat: refine drop semantics and enhance comments for clarity
Stevengre 3450bc8
feat: enhance Drop terminator documentation and clarify borrow-aware …
Stevengre 1efd5f7
feat: update expected step count in crate2::main.expected test
Stevengre cd57064
feat: enhance drop semantics to support general drops and improve bor…
Stevengre 0a16989
feat: enhance borrow reference handling and clarify aggregate process…
Stevengre 0b07a30
Update kmir/src/kmir/kdist/mir-semantics/kmir.md
Stevengre d57f4f3
Update kmir/src/kmir/kdist/mir-semantics/kmir.md
Stevengre 541edd4
feat: update expected step count in crate2::test_crate1_with.expected
Stevengre 193bef5
chore: update expected output
Stevengre 8358db0
test: ensure interior mut refcell updates mint and account data
Stevengre 3b3ef6a
docs(rt): Clarify zero sized type limitations
Stevengre 9cc3eaf
moved to "jh/int-bytes-cast"
Stevengre 8a77758
move to `jh/correct-offset`
Stevengre 8e75511
moved to `jh/zero-sized`
Stevengre 4f9fcd9
moved to `jh/interior-mut`
Stevengre 83c924c
moved to `jh/zero-sized`
Stevengre 54ceab5
chore: make ci fail faster
Stevengre 00e2df2
chore: moved to jh/align-transparent-place
Stevengre 55f9281
chore: moved to jh/pointer2int
Stevengre 5c6128e
chore: moved to jh/delete-doc
Stevengre 61c8c69
chore: remove empty lines
Stevengre 8cc88c4
chore: move to jh/align-transparent-place
Stevengre 82392e7
chore: move to jh/align-transparent-place
Stevengre cca1452
chore: move to jh/align-transparent-place
Stevengre 76a081e
chore: move to jh/zero-sized-decode
Stevengre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
File renamed without changes.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
Stringmatching the best way to do this? It genuinely might be but I feel suspicious of thisThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for calling this out. But I don't know if there any other stable way to find this function rather than
String.adtDefis not open and stable to use, I think.