Skip to content
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

Contracts and Harnesses for <*const T>::add, sub and offset #166

Merged
merged 61 commits into from
Dec 3, 2024

Conversation

xsxszab
Copy link

@xsxszab xsxszab commented Nov 15, 2024

Towards #76

Summary

  • Adds contracts for <*const T>::add, sub and offset.
  • Adds proof for contracts for above methods, verifying following pointee types:
    • All integer types
    • Tuples (representing composite types)
    • Slices
    • Unit type

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

szlee118 and others added 30 commits September 12, 2024 18:34
Refactors by removing unused crates and importing safety crate
Adds proofs for composite type - tuple
@feliperodri feliperodri removed their assignment Nov 27, 2024
@feliperodri
Copy link

@xsxszab could you solve the conflicts?

@szlee118
Copy link

@feliperodri Conflicts resolved, and I removed the comment stating performance reason improperly.

library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
library/core/src/ptr/const_ptr.rs Outdated Show resolved Hide resolved
@tautschnig tautschnig enabled auto-merge (squash) December 3, 2024 14:20
@tautschnig tautschnig merged commit d0d9de2 into model-checking:main Dec 3, 2024
9 checks passed
tautschnig pushed a commit that referenced this pull request Dec 4, 2024
…et` (#203)

**Summary**

This PR synchronizes updates from PR #166 and applies them to `mut`
function contracts and proof for contracts.
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.

8 participants