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

[WIP] Use kani to test or prove the correctness of core algorithms #379

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jswrenn
Copy link
Collaborator

@jswrenn jswrenn commented Sep 14, 2023

Addresses #378.

This PR is marked as a work-in-progress, because:

@jswrenn
Copy link
Collaborator Author

jswrenn commented Sep 19, 2023

This PR is currently stalled on improving the performance of the harness. The resulting_size computation appears to be the problematic component..

src/lib.rs Outdated
// Test that `validate_cast_and_convert_metadata`
// computed the largest possible value that fits in the
// given range.
// assert!(padded_size(elems + 1) > bytes_len, "{}", "");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Kani finds a counter-example for this assertion, where padded_size(elems + 1) equals bytes_len.

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.

1 participant