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

NOP concrete playback to type check during verification mode. #2476

Conversation

YoshikiTakashima
Copy link
Contributor

Description of changes:

This PR adds a NOP concrete playback function so that code inserted by the concrete playback feature that uses concrete_playback function still type checks during verification. Previously, this function was not available during verification, causing type fails during verification after playback code was injected.

Resolved issues:

Resolves #2475

Related RFC:

Call-outs:

@YoshikiTakashima is not sure where the tests should go given that we want to test behavior when the kani is not in playback mode.

Testing:

  • How is this change tested? tests/cargo-kani/simple-lib

  • Is this a refactor change? No

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

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

@YoshikiTakashima YoshikiTakashima requested a review from a team as a code owner May 25, 2023 20:40
Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

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

Thanks @YoshikiTakashima. Do you mind adding a separate test instead?

library/kani/src/lib.rs Outdated Show resolved Hide resolved
@YoshikiTakashima
Copy link
Contributor Author

new tests in 4575586.

@YoshikiTakashima
Copy link
Contributor Author

YoshikiTakashima commented May 25, 2023

Something about this PR seems to be degrading performance. Might need a deep dive into benchcomp.

@celinval
Copy link
Contributor

Something about this PR seems to be degrading performance. Might need a deep dive into benchcomp.

No worries, the test that failed is very flaky. You should be safe.

@YoshikiTakashima YoshikiTakashima enabled auto-merge (squash) May 26, 2023 15:44
@YoshikiTakashima
Copy link
Contributor Author

Rerunning didn't seem to fix it. The performance degradation might be something a bit more permanent...

@YoshikiTakashima YoshikiTakashima merged commit c6e9169 into model-checking:main May 26, 2023
@YoshikiTakashima YoshikiTakashima deleted the yoshi-2475-playback-type-fail branch May 26, 2023 21:19
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.

Kani cannot verify bolero harness after concrete test has been added
2 participants