forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 54
Contracts and Harnesses for <*const T>::add
, sub
and offset
#166
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
Merged
Merged
Changes from 51 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
500f249
Add verification contract for *const T::add and *const T::add
szlee118 99701ff
Update const_ptr.rs
xsxszab 31c82a9
Merge branch 'model-checking:main' into test
stogaru f84b7a6
Changes generic type to i32 in proof.
stogaru a839820
Remove unneeded file
szlee118 21e0ab8
added comments for function contracts and harnesses
b54ce9e
Merge branch 'main' into verify/ptr_const_offset
stogaru 0c0078f
reverted library code format change and removed unnecessary comments
xsxszab a192129
added macros for verifying all integer types for offset and add
xsxszab 2ef5923
implemented function contract and integer type proofs for fn sub
xsxszab f1602aa
Add verification of slice type proofs for fn offset
szlee118 1b467d5
add TODOs for proof for contracts
xsxszab 9461027
verified *mut T::offset for all integer types
xsxszab 159137b
Add verification of slice type proofs for fn add and sub
szlee118 df56d18
Remove commented code
szlee118 eab0a15
removed unnecessary comments
xsxszab e07040f
reverted changes to mut_ptr.rs
xsxszab 0ff52b5
removed necessary comments
xsxszab ccd5c3c
aligned format for mut_ptr.rs
xsxszab 180a276
aligned format for mut_ptr.rs
xsxszab 6a85e3e
Merge pull request #1 from stogaru/verify/ptr_const_integer_types
xsxszab 6853284
Merge branch 'model-checking:main' into verify/ptr_const_offset
xsxszab fb79caf
Adds proofs for composite type - tuple
stogaru 7d05c96
Change function proof names
stogaru 8e49dcd
Merge pull request #2 from stogaru/verify/ptr_const_composite
stogaru 9af0e39
Merge branch 'verify/ptr_const_offset' into verify/ptr_const_slice_type
szlee118 31532c9
Merge pull request #4 from stogaru/verify/ptr_const_slice_type
szlee118 f9f5371
Added changes for *const T::add & *const::sub verifying unit type
MayureshJoshi25 eab900e
Updated proofs for const ptr (unit type)
MayureshJoshi25 05c0fdd
Merge branch 'verify/ptr_const' into verify/ptr_const_unit_type
stogaru 098f171
Merge pull request #5 from stogaru/verify/ptr_const_unit_type
stogaru 8c75da8
Merge branch 'model-checking:main' into verify/ptr_const
stogaru bd418a4
Generate slice harness for array
szlee118 e05b5f8
Remove redundant declaration
szlee118 b944ec0
Update to offset test_ptr non-deterministically within the allocated …
szlee118 054d887
Update the precondition for offset in harness
szlee118 de6ef30
updated function contracts and proof for contracts for add(), sub() a…
xsxszab 2bc0a0f
Merge branch 'verify/ptr_const' into verify/ptr_const_slice_types
szlee118 554e003
Modify document
szlee118 a69688f
Fix indentation error
szlee118 b18ee62
Merge pull request #14 from stogaru/verify/ptr_const_slice_types
szlee118 3effadd
improved comments and function naming
xsxszab c3cb7fe
fixed a typo
xsxszab 949eb9c
Merge branch 'main' into verify/ptr_const
stogaru cc5d490
updated proofs using pointer generator
xsxszab ef71817
Merge branch 'main' into verify/ptr_const
xsxszab 5edd16e
Reformatted code using rustfmt.
xsxszab dd2a8eb
Reverted unnecessary rustfmt formatting
xsxszab 7b83329
Merge branch 'main' into verify/ptr_const
szlee118 576483f
Resolved compilation error after previous merge.
xsxszab 330f06b
Enhanced comments to clarify proof for contracts.
xsxszab 43a456b
Refactored macro for generating slice type verifications to reduce du…
xsxszab 90fc86a
Fixed proof naming issue in previous commit; Refactored the macro for…
xsxszab 9a2ee76
Formatted code using rustfmt.
xsxszab d783dac
Fixed function naming issues after refactoring.
xsxszab d7ee4d0
Fixed issues in comments
xsxszab 6ee7941
Refactored contracts to improve performance
xsxszab 0573c74
Replaced kani::mem::same_allocation with core::ub_checks::same_alloca…
xsxszab 81afaf9
Rearranged proofs, moving the unit type proof to the top
xsxszab 36ef494
Refactored function contracts for better readability.
xsxszab b213847
Merge branch 'main' into verify/ptr_const
tautschnig 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.