You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case: Automatically converting proptests to Kani harnesses allow
us to serve large number of customers like tokio that have proptests
implemented but no Kani harnesses.
Figure out how to hijack proptest import and substitute our own.
See 334ec6e, for the overall import hijacking technique.
Change to kani-driver at a26fbcf makes it purge the old
import. This avoids conflicting imports issue, and allows the
hacked version of proptest to be the only one available.
Modify the proptest macro to build basic Kani harnessing.
Make the corresponding API:
any<T> for primitive T
Arbitrary and Strategy
Ranges of primitive values. Blocked until linking with -L is fixed.
Hacks/should be fixed before merge:
Only hard-coded path works for --extern import.
cargo-kani is not running the recovery part of modifying Cargo.toml.
Activity
[-]Support Primtive Proptests[/-][+]Support Primitive Proptests[/+]YoshikiTakashima commentedon Jul 22, 2022
Replicating linker issue.
First, replicate the kani version.
Then run it on the case that replicates this.
YoshikiTakashima commentedon Jul 22, 2022
Info from deep dive: The following is required for kani to work. Currently, we only provide the
rlib*.rlibsymtab.jsonPossible
--enable-unstable --c-lib <path to gotobinary>wheregotobinaryis*.gotoYoshikiTakashima commentedon Jul 30, 2022
Code changes implemented to link proptest. After cleanup, we can merge.
YoshikiTakashima commentedon Aug 16, 2022
See the following comment for way to integrate proptest w/o significant changes. #1435 (comment)