-
Notifications
You must be signed in to change notification settings - Fork 101
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
[Blocked on #1435] Support proptest arbitrary generation for bool and tuple #1467
[Blocked on #1435] Support proptest arbitrary generation for bool and tuple #1467
Conversation
TOOD: API implementation, BODY1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying my comment from #1435
I don't think we should add the proptest code in our repository. We should probably do one of the following:
- Refactor the changes so we can extend proptest instead of forking from it.
- If we do need to fork proptest, we should create a separate repository with the fork. We should then add a submodule here to this fork.
Feel free to ping me offline if you want to discuss this further or if you have any suggestions.
@@ -80,10 +82,18 @@ impl KaniSession { | |||
}); | |||
} | |||
|
|||
let mut symtabs = glob(&outdir.join("*.symtab.json"))?; | |||
let mut metadata = glob(&outdir.join("*.kani-metadata.json"))?; | |||
if std::env::var("IS_KANI_PROPTEST").is_ok() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a runtime option?
Closing pull request in favor of merging to |
Description of changes:
Added support for arbitrary generation trait, and implemented it for booleans and tuples.
Resolved issues:
Resolves: #1363, PR 2/3
Call-outs:
Testing:
How is this change tested? tests/cargo-kani/proptest/src/arbitrary_boolean.rs
Is this a refactor change? No
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.