Skip to content

Contracts and Harnesses for core::ptr::byte_offset_from - #186

Merged
feliperodri merged 13 commits into
model-checking:mainfrom
stogaru:verify/ptr_const_byte_offset_from
Dec 8, 2024
Merged

feliperodri merged 13 commits into
model-checking:mainfrom
stogaru:verify/ptr_const_byte_offset_from

Conversation

@stogaru

@stogaru stogaru commented Nov 26, 2024

Copy link
Copy Markdown

Towards #76

Changes

  • Adds contracts for byte_offset_from.
  • Adds harnesses for the function verifying:
    • All integer types
    • Tuples (composite types)
    • Unit Type
    • Slices
  • Accomplishes this using a few macros.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@stogaru
stogaru requested a review from a team as a code owner November 26, 2024 19:20
@stogaru

stogaru commented Nov 26, 2024

Copy link
Copy Markdown
Author

@feliperodri FYI

@tautschnig

Copy link
Copy Markdown
Member

@stogaru Please resolve conflicts.

@stogaru
stogaru force-pushed the verify/ptr_const_byte_offset_from branch from fede9f0 to 6aacbb8 Compare November 28, 2024 07:07
@stogaru

stogaru commented Nov 28, 2024

Copy link
Copy Markdown
Author

@tautschnig Conflicts resolved

@stogaru stogaru removed their assignment Nov 28, 2024
Comment thread library/core/src/ptr/mut_ptr.rs Resolved
Comment thread library/core/src/ptr/const_ptr.rs Resolved
@stogaru
stogaru force-pushed the verify/ptr_const_byte_offset_from branch from a9d2ff2 to dbf29ae Compare November 29, 2024 02:47
@feliperodri
feliperodri enabled auto-merge (squash) December 5, 2024 15:25

@carolynzech carolynzech left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trigger merge workflow

@feliperodri
feliperodri disabled auto-merge December 6, 2024 05:20
@feliperodri
feliperodri enabled auto-merge (squash) December 6, 2024 05:20

@feliperodri feliperodri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trigger review

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.

4 participants